commit 077f6c5a028d1105ce638b73bf2571e2df757471 from: Tracey Emery date: Wed Jan 15 22:10:30 2020 UTC add tag action commit - b772de24e109769dd92f3e08be8b310f318a8fc8 commit + 077f6c5a028d1105ce638b73bf2571e2df757471 blob - 231a31485f7e1ba1ef6d22ad62715a94b5e57b10 blob + adcf32bd3bcd3895638285f9de26c835533cd0b1 --- gotweb/files/htdocs/gotweb/gotweb.css +++ gotweb/files/htdocs/gotweb/gotweb.css @@ -481,7 +481,46 @@ body { padding-top: 20px; padding-bottom: 20px; } + +/* tag.tmpl */ +#log_tag_title_wrapper { + clear: left; + float: left; + width: 100%; + background-color: LightSlateGray; + color: #ffffff; +} +#log_tag_title { + padding-left: 10px; + padding-top: 5px; + padding-bottom: 5px; +} +#log_tag_content { + clear: left; + float: left; + width: 100%; +} +#log_tag_row_wrapper { + clear: left; + float: left; + background-color: #f5fcfb; + width: 100%; +} +#log_tag_commit { + clear: left; + float: left; + padding-left: 10px; + padding-top: 5px; + padding-bottom: 2px; +} +#log_tag { + clear: left; + float: left; + padding: 20px; + font-family: monospace; +} + /* tree.tmpl */ #log_tree_title_wrapper { blob - 27dcfcaafd64cc28cd59b839b89538f873700152 blob + 5190de1def1dd4776929abc2a9e0fdac3fee2c4d --- gotweb/gotweb.c +++ gotweb/gotweb.c @@ -833,7 +833,7 @@ gw_parse_querystring(struct trans *gw_trans) action = &gw_query_funcs[i]; if (action->func_name == NULL) continue; -khttp_puts(gw_trans->gw_req, p->parsed.s); + if (strcmp(action->func_name, p->parsed.s) == 0) { gw_trans->action = i; @@ -1302,7 +1302,7 @@ gw_get_repo_log(struct trans *gw_trans, const char *se *commit_diff_disp = NULL, *logbriefs_navs_html = NULL, *log_tree_html = NULL, *log_commit_html = NULL, *log_diff_html = NULL, *commit_tree = NULL, - *commit_tree_disp = NULL; + *commit_tree_disp = NULL, *log_tag_html = NULL; char *commit_log0, *newline; regex_t regex; int have_match; @@ -1674,15 +1674,15 @@ gw_get_repo_log(struct trans *gw_trans, const char *se logbriefs_navs_html = NULL; break; case (LOGTAG): - log_tree_html = strdup("tag log here"); + log_tag_html = strdup("tag log here"); - if ((asprintf(&commit_row, log_tree_row, - gw_html_escape(commit_log), log_tree_html)) == -1) { + if ((asprintf(&commit_row, log_tag_row, + gw_html_escape(commit_log), log_tag_html)) == -1) { error = got_error_from_errno("asprintf"); goto done; } - free(log_tree_html); + free(log_tag_html); break; case (LOGTREE): log_tree_html = strdup("log tree here"); blob - f6dde1056e932bce6e5524e4828d39eb2c40a9a1 blob + 06568cab063765adde50f0bd7a5d3e576b27f6ec --- gotweb/gotweb_ui.h +++ gotweb/gotweb_ui.h @@ -193,6 +193,21 @@ char *logs_navs = "tree"; +/* tag.tmpl */ + +char *log_tag = + "
" \ + "
Tag
" \ + "
%s
"; + +char *log_tag_row = + "
" \ + "
%s
" \ + "
" \ + "
" \ + "
%s
" \ + ""; + /* tree.tmpl */ char *log_tree =