Fossil SCM
fix [3b1533a090eebd09da7121ab3fc9e3f6a7fbd6f5] - add "Sync now" to Admin page
Commit
fc23960258211b5bc752a82c429d5fb3f3286b67
Parent
b8d812efb91513b…
1 file changed
+12
+12
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -86,10 +86,12 @@ | ||
| 86 | 86 | "Show artifacts that are shunned by this repository"); |
| 87 | 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | 88 | "A record of received artifacts and their sources"); |
| 89 | 89 | setup_menu_entry("Stats", "stat", |
| 90 | 90 | "Display repository statistics"); |
| 91 | + setup_menu_entry("Sync now", "setup_sync", | |
| 92 | + "Sync this repository with the 'remote-url' it was set up with"); | |
| 91 | 93 | @ </table> |
| 92 | 94 | |
| 93 | 95 | style_footer(); |
| 94 | 96 | } |
| 95 | 97 | |
| @@ -1137,5 +1139,15 @@ | ||
| 1137 | 1139 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1138 | 1140 | @ </p> |
| 1139 | 1141 | style_footer(); |
| 1140 | 1142 | db_end_transaction(0); |
| 1141 | 1143 | } |
| 1144 | + | |
| 1145 | +/* | |
| 1146 | +** WEBPAGE: setup_sync | |
| 1147 | +*/ | |
| 1148 | +void setup_sync(void){ | |
| 1149 | + sync_cmd(); | |
| 1150 | + style_header("Synchronized"); | |
| 1151 | + @ <p>The project has been synchronized</p> | |
| 1152 | + style_footer(); | |
| 1153 | +} | |
| 1142 | 1154 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -86,10 +86,12 @@ | |
| 86 | "Show artifacts that are shunned by this repository"); |
| 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | "A record of received artifacts and their sources"); |
| 89 | setup_menu_entry("Stats", "stat", |
| 90 | "Display repository statistics"); |
| 91 | @ </table> |
| 92 | |
| 93 | style_footer(); |
| 94 | } |
| 95 | |
| @@ -1137,5 +1139,15 @@ | |
| 1137 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1138 | @ </p> |
| 1139 | style_footer(); |
| 1140 | db_end_transaction(0); |
| 1141 | } |
| 1142 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -86,10 +86,12 @@ | |
| 86 | "Show artifacts that are shunned by this repository"); |
| 87 | setup_menu_entry("Log", "rcvfromlist", |
| 88 | "A record of received artifacts and their sources"); |
| 89 | setup_menu_entry("Stats", "stat", |
| 90 | "Display repository statistics"); |
| 91 | setup_menu_entry("Sync now", "setup_sync", |
| 92 | "Sync this repository with the 'remote-url' it was set up with"); |
| 93 | @ </table> |
| 94 | |
| 95 | style_footer(); |
| 96 | } |
| 97 | |
| @@ -1137,5 +1139,15 @@ | |
| 1139 | @ changing the logo to provoke your browser to reload the new logo image. |
| 1140 | @ </p> |
| 1141 | style_footer(); |
| 1142 | db_end_transaction(0); |
| 1143 | } |
| 1144 | |
| 1145 | /* |
| 1146 | ** WEBPAGE: setup_sync |
| 1147 | */ |
| 1148 | void setup_sync(void){ |
| 1149 | sync_cmd(); |
| 1150 | style_header("Synchronized"); |
| 1151 | @ <p>The project has been synchronized</p> |
| 1152 | style_footer(); |
| 1153 | } |
| 1154 |