Fossil SCM

Do not hyperlink the "All Messages" entry in the log summary if there are no error log messages.

drh 2025-03-17 11:42 trunk
Commit a97225d7fc4bf0c7d4b9be1b5c702fae51733be9e77319cdd83685d6b0d1e3fc
1 file changed +5 -1
--- src/security_audit.c
+++ src/security_audit.c
@@ -980,10 +980,14 @@
980980
@ <td><a href="./errorlog?y=64/">Other</a></td>
981981
}else{
982982
@ <td>Other</td>
983983
}
984984
@ <tr><td align="right">%d(nTotal)</td>
985
- @ <td><a href="./errorlog">All Messages</a></td>
985
+ if( nTotal>0 ){
986
+ @ <td><a href="./errorlog">All Messages</a></td>
987
+ }else{
988
+ @ <td>All Messages</td>
989
+ }
986990
@ </table>
987991
}
988992
style_finish_page();
989993
}
990994
--- src/security_audit.c
+++ src/security_audit.c
@@ -980,10 +980,14 @@
980 @ <td><a href="./errorlog?y=64/">Other</a></td>
981 }else{
982 @ <td>Other</td>
983 }
984 @ <tr><td align="right">%d(nTotal)</td>
985 @ <td><a href="./errorlog">All Messages</a></td>
 
 
 
 
986 @ </table>
987 }
988 style_finish_page();
989 }
990
--- src/security_audit.c
+++ src/security_audit.c
@@ -980,10 +980,14 @@
980 @ <td><a href="./errorlog?y=64/">Other</a></td>
981 }else{
982 @ <td>Other</td>
983 }
984 @ <tr><td align="right">%d(nTotal)</td>
985 if( nTotal>0 ){
986 @ <td><a href="./errorlog">All Messages</a></td>
987 }else{
988 @ <td>All Messages</td>
989 }
990 @ </table>
991 }
992 style_finish_page();
993 }
994

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button