Commit cdb914e5a0f172fb2b47056756c143dace8f1977

Tracey Emery 2020-01-15T22:10:30

cleanup shortlog css

diff --git a/gotweb/files/htdocs/gotweb/gotweb.css b/gotweb/files/htdocs/gotweb/gotweb.css
index fc42567..6593c76 100644
--- a/gotweb/files/htdocs/gotweb/gotweb.css
+++ b/gotweb/files/htdocs/gotweb/gotweb.css
@@ -193,58 +193,73 @@ body {
 #shortlog_wrapper {
 	clear: left;
 	float: left;
-	width: 95%;
+	width: 100%;
+}
+#shortlog_age {
 	padding-left: 10px;
 	padding-top: 5px;
 	padding-bottom: 5px;
-}
-#shortlog_age {
 	float: left;
-	width: 6.5em;
+	width: 7.5em;
+	overflow: auto;
 }
 #shortlog_author {
 	float: left;
+	padding-top: 5px;
+	padding-bottom: 5px;
 	width: 8.5em;
 	font-style: italic;
+	overflow: auto;
 }
 #shortlog_log {
 	float: left;
-	width: 75%;
+	padding-right: 10px;
+	padding-top: 5px;
+	padding-bottom: 5px;
+	width: 65%;
 }
 #tags_wrapper {
 	clear: left;
 	float: left;
-	padding-left: 10px;
-	padding-top: 5px;
-	padding-bottom: 5px;
+	width: 100%;
 }
 #tags_age {
 	float: left;
-	width: 6.5em;
+	width: 7.5em;
+	padding-left: 10px;
+	padding-top: 5px;
+	padding-bottom: 5px;
 }
 #tag {
 	float: left;
 	width: 8.5em;
 	font-style: italic;
+	padding-top: 5px;
+	padding-bottom: 5px;
 }
 #tag_name {
 	float: left;
-	font-weight: bold;
+	padding-right: 10px;
+	padding-top: 5px;
+	padding-bottom: 5px;
 }
 #heads_wrapper {
 	clear: left;
 	float: left;
-	padding-left: 10px;
-	padding-top: 5px;
-	padding-bottom: 5px;
+	width: 100%;
 }
 #heads_age {
 	float: left;
-	width: 6.5em;
+	width: 7.5em;
+	padding-left: 10px;
+	padding-top: 5px;
+	padding-bottom: 5px;
 }
 #head {
 	float: left;
-	font-weight: bold;
+	padding-right: 10px;
+	padding-top: 5px;
+	padding-bottom: 5px;
 }
 
 /* index.tmpl */
diff --git a/gotweb/gotweb.c b/gotweb/gotweb.c
index 6f259c4..0ba9cc1 100644
--- a/gotweb/gotweb.c
+++ b/gotweb/gotweb.c
@@ -1290,6 +1290,8 @@ gw_get_repo_shortlog(struct trans *gw_trans, const char *search_pattern)
 				continue;
 		}
 
+		got_ref_list_free(&refs);
+
 		/* commit id */
 		error = got_object_id_str(&id_str, id);
 		if (error)
@@ -1342,7 +1344,8 @@ gw_get_repo_shortlog(struct trans *gw_trans, const char *search_pattern)
 			return NULL;
 	}
 
-	got_ref_list_free(&refs);
+	if (search_pattern)
+		regfree(&regex);
 	return shortlog;
 done:
 	if (repo)
diff --git a/gotweb/gotweb_ui.h b/gotweb/gotweb_ui.h
index 3aef0f4..4a71063 100644
--- a/gotweb/gotweb_ui.h
+++ b/gotweb/gotweb_ui.h
@@ -128,7 +128,7 @@ char *shortlog_row =
 
 char *shortlog_navs =
 	"<a href='?path=%s&action=commit&commit=%s'>commit</a> | " \
-	"<a href='?path=%s&action=commitdiff&commit=%s'>commit diff</a> | " \
+	"<a href='?path=%s&action=commitdiff&commit=%s'>diff</a> | " \
 	"<a href='?path=%s&action=tree&commit=%s'>tree</a> | " \
 	"<a href='?path=%s&action=snapshot&commit=%s'>snapshot</a>";