List for cgit developers and users
 help / color / mirror / Atom feed
From: aklhfex at gmail.com (Chris Mayo)
Subject: [PATCH 4/5] ui-log,ui-refs: ensure there are cells for each column
Date: Mon, 18 Feb 2019 20:46:43 +0000	[thread overview]
Message-ID: <20190218204644.440-5-aklhfex@gmail.com> (raw)
In-Reply-To: <20190218204644.440-1-aklhfex@gmail.com>

Signed-off-by: Chris Mayo <aklhfex at gmail.com>
---
 ui-log.c  | 4 ++++
 ui-refs.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ui-log.c b/ui-log.c
index cce4d5a..d6c46f2 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -480,6 +480,10 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern
 		html("<th class='left'>Lines</th>");
 		columns++;
 	}
+	for (i = 0; i < 5 - columns;) {
+		html("<th>");
+		i++;
+	}
 	html("</tr>\n");
 
 	if (ofs<0)
diff --git a/ui-refs.c b/ui-refs.c
index 2ec3858..30b54fb 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -211,7 +211,7 @@ void cgit_print_refs(void)
 		cgit_print_tags(0);
 	else {
 		cgit_print_branches(0);
-		html("<tr class='nohover'><td colspan='5'>&nbsp;</td></tr>");
+		html("<tr class='nohover'><td>&nbsp;</td><td><td><td><td></tr>");
 		cgit_print_tags(0);
 	}
 	html("</table>");
-- 
2.20.1



  parent reply	other threads:[~2019-02-18 20:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18 20:46 [PATCH 0/5] SVG diffstat graphs and HTML5 aklhfex
2019-02-18 20:46 ` [PATCH 1/5] ui-diff: use SVG for diffstat graphs aklhfex
2019-02-18 20:46 ` [PATCH 2/5] Replace table summary attribute with aria-label aklhfex
2019-02-18 20:46 ` [PATCH 3/5] Replace self-closing syntax on non-void elements aklhfex
2019-02-18 20:46 ` aklhfex [this message]
     [not found]   ` <CAGFiPxeyoWYT44SUOo-isKeErvYu-c4J78HtWnwse3ueKQV0fA@mail.gmail.com>
     [not found]     ` <CAGFiPxfmGgy0OVCnxNs6aY5RG9XNQGohOerv2Xu0GhV2KHpG5g@mail.gmail.com>
2019-02-18 21:15       ` [PATCH 4/5] ui-log, ui-refs: ensure there are cells for each column 1melissadenee
2019-02-18 20:46 ` [PATCH 5/5] ui-shared: add encoding declaration aklhfex

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190218204644.440-5-aklhfex@gmail.com \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).