Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Change the /test-version webpage into a supported /version webpage. Add a link from /stat. |
|---|---|
| Timelines: | family | ancestors | descendants | both | stat-update |
| Files: | files | file ages | folders |
| SHA1: |
57fea3151ed8ede350b4e8174634b0a4 |
| User & Date: | drh 2016-11-15 21:47:15.190 |
Context
|
2016-11-16
| ||
| 14:47 | Change the /test-version webpage into /version. Link it to /stat. check-in: 286effd5e9 user: drh tags: trunk | |
|
2016-11-15
| ||
| 21:47 | Change the /test-version webpage into a supported /version webpage. Add a link from /stat. Closed-Leaf check-in: 57fea3151e user: drh tags: stat-update | |
| 02:50 | Add script to automate updating common command list in man page, and use it to update the man page check-in: 42d6c86fa1 user: andygoth tags: trunk | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
1009 1010 1011 1012 1013 1014 1015 |
verify_all_options();
get_version_blob(&versionInfo, verboseFlag);
fossil_print("%s", blob_str(&versionInfo));
}
/*
| | > | 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 |
verify_all_options();
get_version_blob(&versionInfo, verboseFlag);
fossil_print("%s", blob_str(&versionInfo));
}
/*
** WEBPAGE: version
**
** Show the version information for Fossil.
**
** Query parameters:
**
** verbose Show all available details.
*/
void test_version_page(void){
Blob versionInfo;
int verboseFlag;
login_check_credentials();
if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
verboseFlag = P("verbose")!=0;
style_header("Version Information");
style_submenu_element("Stat", "stat");
get_version_blob(&versionInfo, verboseFlag);
@ <blockquote><pre>
@ %h(blob_str(&versionInfo))
@ </pre></blockquote>
style_footer();
}
|
| ︙ | ︙ |
Changes to src/stat.c.
| ︙ | ︙ | |||
176 177 178 179 180 181 182 |
if( p ){
@ <tr><th>Parent Project ID:</th>
@ <td>%h(p) %h(db_get("parent-project-name",""))</td></tr>
}
/* @ <tr><th>Server ID:</th><td>%h(db_get("server-code",""))</td></tr> */
@ <tr><th>Fossil Version:</th><td>
@ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
| | | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 |
if( p ){
@ <tr><th>Parent Project ID:</th>
@ <td>%h(p) %h(db_get("parent-project-name",""))</td></tr>
}
/* @ <tr><th>Server ID:</th><td>%h(db_get("server-code",""))</td></tr> */
@ <tr><th>Fossil Version:</th><td>
@ %h(MANIFEST_DATE) %h(MANIFEST_VERSION)
@ (%h(RELEASE_VERSION)) <a href='version?verbose=1'>(details)</a>
@ </td></tr>
@ <tr><th>SQLite Version:</th><td>%.19s(sqlite3_sourceid())
@ [%.10s(&sqlite3_sourceid()[20])] (%s(sqlite3_libversion()))</td></tr>
@ <tr><th>Schema Version:</th><td>%h(g.zAuxSchema)</td></tr>
@ <tr><th>Repository Rebuilt:</th><td>
@ %h(db_get_mtime("rebuilt","%Y-%m-%d %H:%M:%S","Never"))
@ By Fossil %h(db_get("rebuilt","Unknown"))</td></tr>
|
| ︙ | ︙ |