commit - d0bb0ed648b2dd60e628937450cbaf9200beb9a6
commit + d0b9836b2ff0ddbe37b3dea6be10afdb14b65175
blob - 9e76331c9d3706b7909ec6ab013b194bc66801cc
blob + bbcaa81e086ae388fea68770a80f18d48f3b28df
--- gotwebd/pages.tmpl
+++ gotwebd/pages.tmpl
struct querystring *qs = c->t->qs;
struct gotweb_url url;
const char *folder = qs->folder;
+ const char *action = "tree";
char *t, *s = NULL, *dir = NULL;
char ch;
url.path = qs->path;
url.commit = qs->commit;
+ if (qs->action != TREE && qs->action != BLOB) {
+ action = gotweb_action_name(qs->action);
+ url.action = qs->action;
+ }
+
if (folder && *folder != '\0') {
while (*folder == '/')
folder++;
}
!}
{{ " / " }}
- <a href="{{ render gotweb_render_url(c, &url) }}">tree</a>
+ <a href="{{ render gotweb_render_url(c, &url) }}">{{ action }}</a>
{{ " / " }}
{{ if dir }}
{{ while (s = nextsep(s, &t)) != NULL }}
{{ qs->path }}
</a>
{{ end }}
- {{ if qs->action == TREE || qs->action == BLOB }}
- {{ render breadcumbs(tp) }}
- {{ else if qs->action != INDEX }}
+ {{ if qs->action == SUMMARY || qs->action == DIFF ||
+ qs->action == TAG || qs->action == TAGS }}
{{ " / " }}{{ gotweb_action_name(qs->action) }}
+ {{ else if qs->action != INDEX}}
+ {{ render breadcumbs(tp) }}
{{ end }}
</div>
</nav>