Fossil

Check-in [9812c6c5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add "Generate RSS feed for timeline" option to Timeline preferences. Don't output RSS when it's turned off.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9812c6c5ab480ecfa65389a6b0c94e9ca51d9ca6
User & Date: dmitry 2009-10-15 17:20:00
Context
2009-10-17
11:14
Add note to index.wiki check-in: e4c8ef43 user: dmitry tags: trunk
2009-10-15
17:20
Add "Generate RSS feed for timeline" option to Timeline preferences. Don't output RSS when it's turned off. check-in: 9812c6c5 user: dmitry tags: trunk
17:19
Fix not using wiki markup when displaying new ticket title in timeline. (Related to [d6bfe8d9a8], which fixes ticket [218153bb7c3]). check-in: 2f92617b user: dmitry tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/rss.c.

42
43
44
45
46
47
48





49
50
51
52
53
54
55
}

/*
** WEBPAGE: timeline.rss
*/

void page_timeline_rss(void){





  Stmt q;
  int nLine=0;
  char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
  Blob bSQL;
  const char *zType = PD("y","all"); /* Type of events.  All if NULL */
  const char zSQL1[] =
    @ SELECT







>
>
>
>
>







42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
}

/*
** WEBPAGE: timeline.rss
*/

void page_timeline_rss(void){

  // Do not output RSS if it's turned off in Timeline preferences
	if (!db_get_boolean("timeline-generate-rss", 1))
		return;

  Stmt q;
  int nLine=0;
  char *zPubDate, *zProjectName, *zProjectDescr, *zFreeProjectName=0;
  Blob bSQL;
  const char *zType = PD("y","all"); /* Type of events.  All if NULL */
  const char zSQL1[] =
    @ SELECT

Changes to src/setup.c.

782
783
784
785
786
787
788



789
790
791
792
793
794
795
  @ <hr>
  entry_attribute("Max timeline comment length", 6, 
                  "timeline-max-comment", "tmc", "0");
  @ <p>The maximum length of a comment to be displayed in a timeline.
  @ "0" there is no length limit.</p>

  @ <hr>



  @ <p><input type="submit"  name="submit" value="Apply Changes"></p>
  @ </form>
  db_end_transaction(0);
  style_footer();
}

/*







>
>
>







782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
  @ <hr>
  entry_attribute("Max timeline comment length", 6, 
                  "timeline-max-comment", "tmc", "0");
  @ <p>The maximum length of a comment to be displayed in a timeline.
  @ "0" there is no length limit.</p>

  @ <hr>
  onoff_attribute("Generate RSS feed for timeline",
                  "timeline-generate-rss", "tgr", 1);
  @ <hr>
  @ <p><input type="submit"  name="submit" value="Apply Changes"></p>
  @ </form>
  db_end_transaction(0);
  style_footer();
}

/*