Fossil SCM
Add the Access-Log submenu button to the User List page.
Commit
e60a021167ceb530fde310a0e93840875c0a33f8
Parent
01b1319931e2821…
1 file changed
+2
-1
+2
-1
| --- src/setup.c | ||
| +++ src/setup.c | ||
| @@ -153,10 +153,11 @@ | ||
| 153 | 153 | login_needed(0); |
| 154 | 154 | return; |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | style_submenu_element("Add", "Add User", "setup_uedit"); |
| 158 | + style_submenu_element("Log", "Access Log", "access_log"); | |
| 158 | 159 | style_submenu_element("Help", "Help", "setup_ulist_notes"); |
| 159 | 160 | style_header("User List"); |
| 160 | 161 | @ <table border=1 cellpadding=2 cellspacing=0 class='userTable'> |
| 161 | 162 | @ <thead><tr><th>UID <th>Category <th>Capabilities <th>Info <th>Last Change</tr></thead> |
| 162 | 163 | @ <tbody> |
| @@ -197,11 +198,11 @@ | ||
| 197 | 198 | db_finalize(&s); |
| 198 | 199 | @ </tbody></table> |
| 199 | 200 | @ <div class='section'>Users</div> |
| 200 | 201 | @ <table border=1 cellpadding=2 cellspacing=0 class='userTable' id='userlist'> |
| 201 | 202 | @ <thead><tr> |
| 202 | - @ <th>ID<th>Login<th>Caps<th>Info<th>Chng<th>Expire</tr></thead> | |
| 203 | + @ <th>ID<th>Login<th>Caps<th>Info<th>Date<th>Expire</tr></thead> | |
| 203 | 204 | @ <tbody> |
| 204 | 205 | db_prepare(&s, |
| 205 | 206 | "SELECT uid, login, cap, info, date(mtime,'unixepoch'), lower(login) AS sortkey, " |
| 206 | 207 | " CASE WHEN info LIKE '%%expires 20%%'" |
| 207 | 208 | " THEN substr(info,instr(lower(info),'expires')+8,10)" |
| 208 | 209 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -153,10 +153,11 @@ | |
| 153 | login_needed(0); |
| 154 | return; |
| 155 | } |
| 156 | |
| 157 | style_submenu_element("Add", "Add User", "setup_uedit"); |
| 158 | style_submenu_element("Help", "Help", "setup_ulist_notes"); |
| 159 | style_header("User List"); |
| 160 | @ <table border=1 cellpadding=2 cellspacing=0 class='userTable'> |
| 161 | @ <thead><tr><th>UID <th>Category <th>Capabilities <th>Info <th>Last Change</tr></thead> |
| 162 | @ <tbody> |
| @@ -197,11 +198,11 @@ | |
| 197 | db_finalize(&s); |
| 198 | @ </tbody></table> |
| 199 | @ <div class='section'>Users</div> |
| 200 | @ <table border=1 cellpadding=2 cellspacing=0 class='userTable' id='userlist'> |
| 201 | @ <thead><tr> |
| 202 | @ <th>ID<th>Login<th>Caps<th>Info<th>Chng<th>Expire</tr></thead> |
| 203 | @ <tbody> |
| 204 | db_prepare(&s, |
| 205 | "SELECT uid, login, cap, info, date(mtime,'unixepoch'), lower(login) AS sortkey, " |
| 206 | " CASE WHEN info LIKE '%%expires 20%%'" |
| 207 | " THEN substr(info,instr(lower(info),'expires')+8,10)" |
| 208 |
| --- src/setup.c | |
| +++ src/setup.c | |
| @@ -153,10 +153,11 @@ | |
| 153 | login_needed(0); |
| 154 | return; |
| 155 | } |
| 156 | |
| 157 | style_submenu_element("Add", "Add User", "setup_uedit"); |
| 158 | style_submenu_element("Log", "Access Log", "access_log"); |
| 159 | style_submenu_element("Help", "Help", "setup_ulist_notes"); |
| 160 | style_header("User List"); |
| 161 | @ <table border=1 cellpadding=2 cellspacing=0 class='userTable'> |
| 162 | @ <thead><tr><th>UID <th>Category <th>Capabilities <th>Info <th>Last Change</tr></thead> |
| 163 | @ <tbody> |
| @@ -197,11 +198,11 @@ | |
| 198 | db_finalize(&s); |
| 199 | @ </tbody></table> |
| 200 | @ <div class='section'>Users</div> |
| 201 | @ <table border=1 cellpadding=2 cellspacing=0 class='userTable' id='userlist'> |
| 202 | @ <thead><tr> |
| 203 | @ <th>ID<th>Login<th>Caps<th>Info<th>Date<th>Expire</tr></thead> |
| 204 | @ <tbody> |
| 205 | db_prepare(&s, |
| 206 | "SELECT uid, login, cap, info, date(mtime,'unixepoch'), lower(login) AS sortkey, " |
| 207 | " CASE WHEN info LIKE '%%expires 20%%'" |
| 208 | " THEN substr(info,instr(lower(info),'expires')+8,10)" |
| 209 |