mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Show "Last day" if "Last x" is in the menu list
SVN revision: 2169
This commit is contained in:
parent
6cb8827af6
commit
7d482de459
@ -19887,6 +19887,9 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
if (past_n > 0) {
|
if (past_n > 0) {
|
||||||
sprintf(str, loc("Last %d days"), past_n * 2);
|
sprintf(str, loc("Last %d days"), past_n * 2);
|
||||||
rsprintf(" <a href=\"past%d?mode=%s\">%s</a> |\n", past_n * 2, mode, str);
|
rsprintf(" <a href=\"past%d?mode=%s\">%s</a> |\n", past_n * 2, mode, str);
|
||||||
|
} else {
|
||||||
|
sprintf(str, loc("Last day"));
|
||||||
|
rsprintf(" <a href=\"past1?mode=%s\">%s</a> |\n", mode, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (last_n) {
|
if (last_n) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user