commit - 575ccdcfa027a0819df9f362eaf787142709ce2e
commit + df7661fbe80cd534a2bddad93e4d4279dd51558e
blob - 8becda7103c167cf7ff999d841b159142d15372c
blob + 1cff3e763111d70c8c50d451db284e850f8bd147
--- 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>