mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-10 18:23:28 +00:00
Made 'main tab' work with top level groups
SVN revision: 787
This commit is contained in:
parent
4f0338be73
commit
712c8dc8d0
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.260 2004/02/18 18:13:22 midas
|
||||||
|
Made 'main tab' work with top level groups
|
||||||
|
|
||||||
Revision 1.259 2004/02/18 14:18:10 midas
|
Revision 1.259 2004/02/18 14:18:10 midas
|
||||||
Fixed synchronization problems with other language
|
Fixed synchronization problems with other language
|
||||||
|
|
||||||
@ -5230,9 +5233,13 @@ void show_standard_title(char *logbook, char *text, int printable)
|
|||||||
for (level = 0;; level++) {
|
for (level = 0;; level++) {
|
||||||
rsprintf("<tr><td class=\"tabs\">\n");
|
rsprintf("<tr><td class=\"tabs\">\n");
|
||||||
|
|
||||||
if (level == 0 && getcfg("global", "main tab", str))
|
if (level == 0 && getcfg("global", "main tab", str) && !getcfg_topgroup())
|
||||||
rsprintf("<span class=\"ltab\"><a href=\"../\">%s</a></span>\n", str);
|
rsprintf("<span class=\"ltab\"><a href=\"../\">%s</a></span>\n", str);
|
||||||
|
|
||||||
|
if (level == 1 && getcfg("global", "main tab", str) && getcfg_topgroup())
|
||||||
|
rsprintf("<span class=\"ltab\"><a href=\"../%s/\">%s</a></span>\n",
|
||||||
|
getcfg_topgroup(), str);
|
||||||
|
|
||||||
/* iterate through members of this group */
|
/* iterate through members of this group */
|
||||||
for (i = 0; i < pnode->n_members; i++) {
|
for (i = 0; i < pnode->n_members; i++) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user