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.
Commit
472f9411eec4b5fc763662f6c1441601054bca88
Parent
4f0f99224563183…
2 files changed
+3
-1
+1
+3
-1
| --- src/descendants.c | ||
| +++ src/descendants.c | ||
| @@ -269,11 +269,13 @@ | ||
| 269 | 269 | ** This routine is called while for each check-in that is rendered by |
| 270 | 270 | ** the "leaves" page. Add some additional hyperlink to show the |
| 271 | 271 | ** ancestors of the leaf. |
| 272 | 272 | */ |
| 273 | 273 | 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 | + } | |
| 275 | 277 | } |
| 276 | 278 | |
| 277 | 279 | /* |
| 278 | 280 | ** WEBPAGE: leaves |
| 279 | 281 | ** |
| 280 | 282 |
| --- 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 @@ | ||
| 491 | 491 | |
| 492 | 492 | login_check_credentials(); |
| 493 | 493 | if( !g.okRead ){ |
| 494 | 494 | login_needed(); |
| 495 | 495 | } |
| 496 | + login_anonymous_available(); | |
| 496 | 497 | style_header("Tags"); |
| 497 | 498 | style_submenu_element("Timeline", "Timeline", "tagtimeline"); |
| 498 | 499 | @ <h2>Non-propagating tags:</h2> |
| 499 | 500 | db_prepare(&q, |
| 500 | 501 | "SELECT substr(tagname,5)" |
| 501 | 502 |
| --- 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 |