about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-04-15 00:00:11 +0200
committerLars Hjemli <hjemli@gmail.com>2008-04-15 00:00:11 +0200
commit3cfcb086abfc2e94426623b487a47a8b5cc57b7e (patch)
tree3ec281d445d710647bca817cac93cc794093b569
parentFix search in repo index even if caching is enabled (diff)
downloadcgit-pink-3cfcb086abfc2e94426623b487a47a8b5cc57b7e.tar.gz
cgit-pink-3cfcb086abfc2e94426623b487a47a8b5cc57b7e.zip
Cleanup page header
Fix some invalid html, remove dead code.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--ui-shared.c21
1 files changed, 4 insertions, 17 deletions
diff --git a/ui-shared.c b/ui-shared.c
index bb08c4a..8a804c2 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -484,15 +484,10 @@ void cgit_print_pageheader(struct cgit_context *ctx)
 		html_attr(cgit_rooturl());
 	html("'><img src='");
 	html_attr(ctx->cfg.logo);
-	html("'/></a></td>\n");
+	html("' alt='cgit logo'/></a></td>\n");
 
 	html("<td class='main'>");
 	if (ctx->repo) {
-/*
-		html("<a href='");
-		html_attr(cgit_rooturl());
-		html("'>index</a> : ");
-*/
 		reporevlink(NULL, ctx->repo->name, NULL, hc(cmd, "summary"),
 			    ctx->qry.head, NULL, NULL);
 		html(" : ");
@@ -507,25 +502,17 @@ void cgit_print_pageheader(struct cgit_context *ctx)
 		html("</form>");
 	} else
 		html_txt(ctx->cfg.root_title);
-	html("</td>\n");
+	html("</td></tr>\n");
 
 	html("<tr><td class='sub'");
 	if (ctx->repo) {
 		html(" colspan='2'>");
 		html_txt(ctx->repo->desc);
-	}
-/*
-	else if (ctx->cfg.root_subtitle)
-		html_txt(ctx->cfg.root_subtitle);
-*/
-	else {
+	} else {
 		html(">");
 		html_txt("a fast webinterface for the git dscm");
 	}
-	html("</td></tr>\n");
-
-	html("</tr>\n");
-	html("</table>\n");
+	html("</td></tr></table>\n");
 
 	html("<table class='tabs'><tr><td>\n");
 	if (ctx->repo) {
mit/torus.h?h=v2&id=7bac64b1b3d8a0ab763aa584e3b085b45ae082b7&follow=1'>Pack message type enumsJune McEnroe 2018-03-05Undef COLOR_ constants in torus.hJune McEnroe 2018-03-05Generate tagsJune McEnroe 2017-10-03Simplify Makefile with pattern ruleJune McEnroe 2017-09-27Remove leading blank linesJune McEnroe 2017-09-27Add merge.c to READMEJune McEnroe 2017-09-03Assert client coords are valid after movementJune McEnroe 2017-09-03Relicense AGPLJune McEnroe 2017-09-01Revert "Add client readOnly mode"June McEnroe 2017-09-01Remove clientRemove call from clientCastJune McEnroe 2017-09-01Add client readOnly modeJune McEnroe 2017-08-31Clean up merge toolJune McEnroe 2017-08-31Choose B for tiles with equal modify timesJune McEnroe 2017-08-31Add quick data file merge toolJune McEnroe 2017-08-30Use only foreground color for selecting spawnJune McEnroe 2017-08-29Add four additional spawnsJune McEnroe 2017-08-28Add respawningJune McEnroe 2017-08-26Move license above includesJune McEnroe 2017-08-26Snapshot metadataJune McEnroe 2017-08-26Add meta.c to READMEJune McEnroe 2017-08-26Use MakefileJune McEnroe