summaryrefslogtreecommitdiff
path: root/ui-shared.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui-shared.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 224e5f3..76cd00d 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -577,15 +577,20 @@ void add_hidden_formfields(int incl_head, int incl_search, char *page)
}
}
+const char *fallback_cmd = "repolist";
+
char *hc(struct cgit_cmd *cmd, const char *page)
{
- return (strcmp(cmd->name, page) ? NULL : "active");
+ return (strcmp(cmd ? cmd->name : fallback_cmd, page) ? NULL : "active");
}
void cgit_print_pageheader(struct cgit_context *ctx)
{
struct cgit_cmd *cmd = cgit_get_cmd(ctx);
+ if (!cmd && ctx->repo)
+ fallback_cmd = "summary";
+
html("<table id='header'>\n");
html("<tr>\n");
html("<td class='logo' rowspan='2'><a href='");
03-09 15:52:00 +0100'>2013-03-09Update radicale ebuildRené 'Necoro' Neumann2-3/+4 2013-01-17Minted is in portage nowRené Neumann2-20/+0 2012-11-26No need for special cairo versionRené Neumann6-290/+0 2012-10-07Rename cgit's 'sendfile' branch to 'necoro'René 'Necoro' Neumann2-2/+2 2012-10-01Switch to hgRené 'Necoro' Neumann4-7/+6 2012-10-01Keyword cgit-9999René Neumann2-2/+2 2012-10-01CGit updateRené Neumann4-32/+60 2012-09-25subtle-contrib ebuildRené 'Necoro' Neumann2-0/+32 2012-09-20Subtle live ebuildRené 'Necoro' Neumann2-0/+82 2012-09-11Fix copyright -- be in line with sunriseRené 'Necoro' Neumann2-2/+2 2012-09-09Bump radicale to version 0.7.1René 'Necoro' Neumann2-3/+9 2012-07-13FixRené Neumann2-3/+3 2012-07-13Better log handling of radicaleRené Neumann3-4/+4 2012-07-13Remove live ebuild of radicaleRené Neumann3-43/+0 2012-07-13Bump radicale to 0.7René Neumann2-5/+11 2012-05-07add epatch_user to cairoRené Neumann2-1/+2 2012-05-07Cairo from portage treeRené Neumann6-309/+63 2012-02-18Removed outdated packagesRené 'Necoro' Neumann19-883/+0 2012-02-17MltonRené Neumann2-0/+62 2012-02-17Removed virtualboxRené Neumann21-993/+0 2012-01-30BumpRené 'Necoro' Neumann1-3/+3 2012-01-30BumpRené 'Necoro' Neumann1-0/+0 2012-01-30Apply changes from bugs.gentoo.orgRené 'Necoro' Neumann2-1/+19 2012-01-11diffarrayRené Neumann3-0/+37 2012-01-10Remove patched dovecot. Changes are upstreamRené 'Necoro' Neumann8-907/+0 2012-01-10Remove emacs variant -- this is now tracked in patchesRené 'Necoro' Neumann3-363/+0 2011-11-06amd64 for fcgi-cgiRené 'Necoro' Neumann2-2/+2 2011-11-06Forgot dovecot init-fileRené 'Necoro' Neumann1-0/+1