cleanup shortlog css
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
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(®ex);
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>";