From mboxrd@z Thu Jan 1 00:00:00 1970
From: william.bell at frog.za.net (William Bell)
Date: Tue, 18 Sep 2012 06:07:47 +0200
Subject: [PATCH] fix HTML validation bug,
input tags should be between paragraphs
In-Reply-To: <504CE2DD.7070205@frog.za.net>
References: <504CE2DD.7070205@frog.za.net>
Message-ID: <5057F393.2010803@frog.za.net>
Also did not go through.
-------- Original Message --------
Subject: fix validation bug, input tags should be between paragraphs
Date: Sun, 09 Sep 2012 20:41:33 +0200
From: William Bell
To: cgit at hjemli.net
From 99f97a61be09bdbfb19fec05824468b21f1ac1a5 Mon Sep 17 00:00:00 2001
From: William Bell
Date: Fri, 7 Sep 2012 01:00:50 +0200
Subject: [PATCH] fix validation bug
input tags should be between paragraphs
---
ui-diff.c | 4 ++--
ui-shared.c | 12 ++++++------
ui-stats.c | 10 +++++-----
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/ui-diff.c b/ui-diff.c
index c6bad63..0922217 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -312,7 +312,7 @@ void cgit_print_diff_ctrls()
html("");
html("
diff options");
- html("
");
+ html("");
html("
");
}
diff --git a/ui-shared.c b/ui-shared.c
index 43166af..ddbf632 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -848,13 +848,13 @@ static void print_header(struct cgit_context *ctx)
html(" : ");
cgit_summary_link(ctx->repo->name, ctx->repo->name, NULL, NULL);
html("");
- html("");
+ html("");
} else
html_txt(ctx->cfg.root_title);
html(" | \n");
@@ -906,7 +906,7 @@ void cgit_print_pageheader(struct cgit_context *ctx)
if (ctx->cfg.virtual_root)
html_url_path(cgit_fileurl(ctx->qry.repo, "log",
ctx->qry.vpath, NULL));
- html("'>\n");
+ html("'>\n");
cgit_add_hidden_formfields(1, 0, "log");
html("
\n");
} else {
site_link(NULL, "index", NULL, hc(ctx, "repolist"), NULL,
NULL, 0);
if (ctx->cfg.root_readme)
@@ -928,10 +928,10 @@ void cgit_print_pageheader(struct cgit_context *ctx)
html("
\n");
html("");
}
html("\n");
diff --git a/ui-stats.c b/ui-stats.c
index 59f4c1e..ce1438f 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -23,21 +23,21 @@ static void trunc_week(struct tm *tm)
{
time_t t = timegm(tm);
t -= ((tm->tm_wday + 6) % 7) * DAY_SECS;
- gmtime_r(&t, tm);
+ gmtime_r(&t, tm);
}
static void dec_week(struct tm *tm)
{
time_t t = timegm(tm);
t -= WEEK_SECS;
- gmtime_r(&t, tm);
+ gmtime_r(&t, tm);
}
static void inc_week(struct tm *tm)
{
time_t t = timegm(tm);
t += WEEK_SECS;
- gmtime_r(&t, tm);
+ gmtime_r(&t, tm);
}
static char *pretty_week(struct tm *tm)
@@ -389,7 +389,7 @@ void cgit_show_stats(struct cgit_context *ctx)
html("");
html("
stat options");
- html("
");
+ html("");
html("
");
htmlf("Commits per author per %s", period->name);
if (ctx->qry.path) {
--
1.7.9.5