| | @@ -64,12 +64,12 @@ |
| 64 | 64 | "Grant privileges to individual users."); |
| 65 | 65 | setup_menu_entry("Access", "setup_access", |
| 66 | 66 | "Control access settings."); |
| 67 | 67 | setup_menu_entry("Configuration", "setup_config", |
| 68 | 68 | "Configure the WWW components of the repository"); |
| 69 | | - setup_menu_entry("Behavior", "setup_behavior", |
| 70 | | - "Configure the version control part of the repository"); |
| 69 | + setup_menu_entry("Settings", "setup_settings", |
| 70 | + "Web interface to the \"fossil settings\" command"); |
| 71 | 71 | setup_menu_entry("Timeline", "setup_timeline", |
| 72 | 72 | "Timeline display preferences"); |
| 73 | 73 | setup_menu_entry("Tickets", "tktsetup", |
| 74 | 74 | "Configure the trouble-ticketing system for this repository"); |
| 75 | 75 | setup_menu_entry("Skins", "setup_skin", |
| | @@ -855,43 +855,51 @@ |
| 855 | 855 | db_end_transaction(0); |
| 856 | 856 | style_footer(); |
| 857 | 857 | } |
| 858 | 858 | |
| 859 | 859 | /* |
| 860 | | -** WEBPAGE: setup_behavior |
| 860 | +** WEBPAGE: setup_settings |
| 861 | 861 | */ |
| 862 | | -void setup_behavior(void){ |
| 863 | | - int i; |
| 864 | | - struct stControlSettings const * azSet; |
| 862 | +void setup_settings(void){ |
| 863 | + struct stControlSettings const *pSet; |
| 865 | 864 | |
| 866 | 865 | login_check_credentials(); |
| 867 | 866 | if( !g.okSetup ){ |
| 868 | 867 | login_needed(); |
| 869 | 868 | } |
| 870 | 869 | |
| 871 | | - style_header("SCM Behavior"); |
| 872 | | - db_begin_transaction(); |
| 873 | | - @ <form action="%s(g.zBaseURL)/setup_behavior" method="post"><div> |
| 874 | | - login_insert_csrf_secret(); |
| 875 | | - for (azSet=ctrlSettings;azSet->name;azSet++) { |
| 876 | | - if (azSet->width==0) { |
| 877 | | - /* found boolean attribute */ |
| 878 | | - onoff_attribute(azSet->name, azSet->name, azSet->var?azSet->var:azSet->name, (azSet->def[0]=='1')?1:0); |
| 879 | | - @ <hr /> |
| 880 | | - } |
| 881 | | - } |
| 882 | | - for (azSet=ctrlSettings;azSet->name;azSet++) { |
| 883 | | - if (azSet->width!=0) { |
| 884 | | - entry_attribute(azSet->name, azSet->width, azSet->name, azSet->var?azSet->var:azSet->name, (char*)azSet->def); |
| 885 | | - @ <hr /> |
| 886 | | - } |
| 887 | | - } |
| 888 | | - @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 889 | | - @ <hr /> |
| 890 | | - @ These settings work in the same way, as the <kbd>set</kbd> commandline:<br> |
| 891 | | - @ <pre>%s(zHelp_setting_cmd)</pre> |
| 892 | | - @ </div></form> |
| 870 | + style_header("Settings"); |
| 871 | + db_begin_transaction(); |
| 872 | + @ <p>This page provides a simple interface to the "fossil setting" command. |
| 873 | + @ See the "fossil help setting" output below for further information on |
| 874 | + @ the meaning of each setting.</p><hr /> |
| 875 | + @ <form action="%s(g.zBaseURL)/setup_settings" method="post"><div> |
| 876 | + @ <table border="0"><tr><td valign="top"> |
| 877 | + login_insert_csrf_secret(); |
| 878 | + for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 879 | + if( pSet->width==0 ){ |
| 880 | + onoff_attribute(pSet->name, pSet->name, |
| 881 | + pSet->var!=0 ? pSet->var : pSet->name, |
| 882 | + pSet->def[0]=='1'); |
| 883 | + @ <br /> |
| 884 | + } |
| 885 | + } |
| 886 | + @ </td><td width="30"></td><td valign="top"> |
| 887 | + for(pSet=ctrlSettings; pSet->name!=0; pSet++){ |
| 888 | + if( pSet->width!=0 ){ |
| 889 | + entry_attribute(pSet->name, /*pSet->width*/ 40, pSet->name, |
| 890 | + pSet->var!=0 ? pSet->var : pSet->name, |
| 891 | + (char*)pSet->def); |
| 892 | + @ <br /> |
| 893 | + } |
| 894 | + } |
| 895 | + @ </tr></table> |
| 896 | + @ <p><input type="submit" name="submit" value="Apply Changes" /></p> |
| 897 | + @ </div></form> |
| 898 | + @ <hr /><p> |
| 899 | + @ These settings work in the same way, as the <kbd>set</kbd> commandline:<br> |
| 900 | + @ <pre>%s(zHelp_setting_cmd)</pre></p> |
| 893 | 901 | db_end_transaction(0); |
| 894 | 902 | style_footer(); |
| 895 | 903 | } |
| 896 | 904 | |
| 897 | 905 | /* |
| 898 | 906 | |