Fossil SCM

Add the "hyperlinks are disabled" warning to the taglist page. Disable hyperlinks on the leaves page when hyperlinks are suppose to be disabled.

drh 2009-01-29 03:04 UTC trunk
Commit 472f9411eec4b5fc763662f6c1441601054bca88
2 files changed +3 -1 +1
--- src/descendants.c
+++ src/descendants.c
@@ -269,11 +269,13 @@
269269
** This routine is called while for each check-in that is rendered by
270270
** the "leaves" page. Add some additional hyperlink to show the
271271
** ancestors of the leaf.
272272
*/
273273
static void leaves_extra(int rid){
274
- @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">[timeline]</a>
274
+ if( g.okHistory ){
275
+ @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">[timeline]</a>
276
+ }
275277
}
276278
277279
/*
278280
** WEBPAGE: leaves
279281
**
280282
--- src/descendants.c
+++ src/descendants.c
@@ -269,11 +269,13 @@
269 ** This routine is called while for each check-in that is rendered by
270 ** the "leaves" page. Add some additional hyperlink to show the
271 ** ancestors of the leaf.
272 */
273 static void leaves_extra(int rid){
274 @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">[timeline]</a>
 
 
275 }
276
277 /*
278 ** WEBPAGE: leaves
279 **
280
--- src/descendants.c
+++ src/descendants.c
@@ -269,11 +269,13 @@
269 ** This routine is called while for each check-in that is rendered by
270 ** the "leaves" page. Add some additional hyperlink to show the
271 ** ancestors of the leaf.
272 */
273 static void leaves_extra(int rid){
274 if( g.okHistory ){
275 @ <a href="%s(g.zBaseURL)/timeline?p=%d(rid)">[timeline]</a>
276 }
277 }
278
279 /*
280 ** WEBPAGE: leaves
281 **
282
+1
--- src/tag.c
+++ src/tag.c
@@ -491,10 +491,11 @@
491491
492492
login_check_credentials();
493493
if( !g.okRead ){
494494
login_needed();
495495
}
496
+ login_anonymous_available();
496497
style_header("Tags");
497498
style_submenu_element("Timeline", "Timeline", "tagtimeline");
498499
@ <h2>Non-propagating tags:</h2>
499500
db_prepare(&q,
500501
"SELECT substr(tagname,5)"
501502
--- src/tag.c
+++ src/tag.c
@@ -491,10 +491,11 @@
491
492 login_check_credentials();
493 if( !g.okRead ){
494 login_needed();
495 }
 
496 style_header("Tags");
497 style_submenu_element("Timeline", "Timeline", "tagtimeline");
498 @ <h2>Non-propagating tags:</h2>
499 db_prepare(&q,
500 "SELECT substr(tagname,5)"
501
--- src/tag.c
+++ src/tag.c
@@ -491,10 +491,11 @@
491
492 login_check_credentials();
493 if( !g.okRead ){
494 login_needed();
495 }
496 login_anonymous_available();
497 style_header("Tags");
498 style_submenu_element("Timeline", "Timeline", "tagtimeline");
499 @ <h2>Non-propagating tags:</h2>
500 db_prepare(&q,
501 "SELECT substr(tagname,5)"
502

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button