Fossil SCM
The environment variable FOSSIL_REPOLIST_TITLE, if it exists, provides an alternative name to the "Repository List" page that comes up for the "fossil all ui" or "fossil ui /" commands.
Commit
14e1581c2c02cc7ff5ab98f70fb7cb4207fe57fda76a3d3b0f06c7033a3b23dc
Parent
87c14ba6d35e147…
1 file changed
+3
-2
+3
-2
| --- src/repolist.c | ||
| +++ src/repolist.c | ||
| @@ -316,20 +316,21 @@ | ||
| 316 | 316 | style_header("Repository List"); |
| 317 | 317 | @ %s(blob_str(&html)) |
| 318 | 318 | style_table_sorter(); |
| 319 | 319 | style_finish_page(); |
| 320 | 320 | }else{ |
| 321 | + const char *zTitle = PD("FOSSIL_REPOLIST_TITLE","Repository List"); | |
| 321 | 322 | /* If no repositories were found that had the "repolist_skin" |
| 322 | 323 | ** property set, then use a default skin */ |
| 323 | 324 | @ <html> |
| 324 | 325 | @ <head> |
| 325 | 326 | @ <base href="%s(g.zBaseURL)/"> |
| 326 | 327 | @ <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 327 | - @ <title>Repository List</title> | |
| 328 | + @ <title>%h(zTitle)</title> | |
| 328 | 329 | @ </head> |
| 329 | 330 | @ <body> |
| 330 | - @ <h1 align="center">Fossil Repositories</h1> | |
| 331 | + @ <h1 align="center">%h(zTitle)</h1> | |
| 331 | 332 | @ %s(blob_str(&html)) |
| 332 | 333 | @ <script>%s(builtin_text("sorttable.js"))</script> |
| 333 | 334 | @ </body> |
| 334 | 335 | @ </html> |
| 335 | 336 | } |
| 336 | 337 |
| --- src/repolist.c | |
| +++ src/repolist.c | |
| @@ -316,20 +316,21 @@ | |
| 316 | style_header("Repository List"); |
| 317 | @ %s(blob_str(&html)) |
| 318 | style_table_sorter(); |
| 319 | style_finish_page(); |
| 320 | }else{ |
| 321 | /* If no repositories were found that had the "repolist_skin" |
| 322 | ** property set, then use a default skin */ |
| 323 | @ <html> |
| 324 | @ <head> |
| 325 | @ <base href="%s(g.zBaseURL)/"> |
| 326 | @ <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 327 | @ <title>Repository List</title> |
| 328 | @ </head> |
| 329 | @ <body> |
| 330 | @ <h1 align="center">Fossil Repositories</h1> |
| 331 | @ %s(blob_str(&html)) |
| 332 | @ <script>%s(builtin_text("sorttable.js"))</script> |
| 333 | @ </body> |
| 334 | @ </html> |
| 335 | } |
| 336 |
| --- src/repolist.c | |
| +++ src/repolist.c | |
| @@ -316,20 +316,21 @@ | |
| 316 | style_header("Repository List"); |
| 317 | @ %s(blob_str(&html)) |
| 318 | style_table_sorter(); |
| 319 | style_finish_page(); |
| 320 | }else{ |
| 321 | const char *zTitle = PD("FOSSIL_REPOLIST_TITLE","Repository List"); |
| 322 | /* If no repositories were found that had the "repolist_skin" |
| 323 | ** property set, then use a default skin */ |
| 324 | @ <html> |
| 325 | @ <head> |
| 326 | @ <base href="%s(g.zBaseURL)/"> |
| 327 | @ <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 328 | @ <title>%h(zTitle)</title> |
| 329 | @ </head> |
| 330 | @ <body> |
| 331 | @ <h1 align="center">%h(zTitle)</h1> |
| 332 | @ %s(blob_str(&html)) |
| 333 | @ <script>%s(builtin_text("sorttable.js"))</script> |
| 334 | @ </body> |
| 335 | @ </html> |
| 336 | } |
| 337 |