Differences From Artifact [8a6b412c54]:
- File src/finfo.c — part of check-in [942b2076c6] at 2020-11-07 13:25:35 on branch default-css-cleanups — Rename the "style_body_and_footer()" interface to "style_finish_page()" and add a more detailed header comment to the implementation. (user: drh size: 32592) [more...]
To Artifact [371fc85a4a]:
- File src/finfo.c — part of check-in [8ac0830bfc] at 2020-12-22 11:58:34 on branch body-feature-class — Calling the new style_set_current_feature() function to override the new TH1 variable $current_feature for Fossil UI pages where the page name isn't what we want used as the "body" CSS class. For the most part, this matches the value currently being passed to style_finish_page(), but a few have changed with the benefit of hindsight. Not all calls to style_finish_page() have a corresponding call to the new function since the default value for $current_page now suffices. (user: wyoung size: 32630)
| ︙ | |||
777 778 779 780 781 782 783 784 785 786 787 788 789 790 | 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 | + |
void mlink_page(void){
const char *zFName = P("name");
const char *zCI = P("ci");
Stmt q;
login_check_credentials();
if( !g.perm.Admin ){ login_needed(g.anon.Admin); return; }
style_set_current_feature("finfo");
style_header("MLINK Table");
if( zFName==0 && zCI==0 ){
@ <span class='generalError'>
@ Requires either a name= or ci= query parameter
@ </span>
}else if( zFName ){
int fnid = db_int(0,"SELECT fnid FROM filename WHERE name=%Q",zFName);
|
| ︙ |