summaryrefslogtreecommitdiffabout
path: root/ui-commit.c
authorLars Hjemli <hjemli@gmail.com>2007-07-22 22:11:15 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-07-22 22:27:32 (UTC)
commiteb45342e735818b3c68cbab9b61b23e79ae74418 (patch) (unidiff)
tree43fed08927a2118a22cf686ee58b8d464233cd5d /ui-commit.c
parent1d4aaff696ee1b9085dda0f0f3d84d9d20d96db0 (diff)
downloadcgit-eb45342e735818b3c68cbab9b61b23e79ae74418.zip
cgit-eb45342e735818b3c68cbab9b61b23e79ae74418.tar.gz
cgit-eb45342e735818b3c68cbab9b61b23e79ae74418.tar.bz2
cgit_print_snapshot_links: use url to specify snapshot name
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-commit.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-commit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 50e9e11..90e09ed 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -187,25 +187,26 @@ void cgit_print_commit(char *hex)
187 } 187 }
188 html("<tr><th>parent</th>" 188 html("<tr><th>parent</th>"
189 "<td colspan='2' class='sha1'>"); 189 "<td colspan='2' class='sha1'>");
190 cgit_commit_link(sha1_to_hex(p->item->object.sha1), NULL, NULL, 190 cgit_commit_link(sha1_to_hex(p->item->object.sha1), NULL, NULL,
191 cgit_query_head, sha1_to_hex(p->item->object.sha1)); 191 cgit_query_head, sha1_to_hex(p->item->object.sha1));
192 html(" ("); 192 html(" (");
193 cgit_diff_link("diff", NULL, NULL, cgit_query_head, hex, 193 cgit_diff_link("diff", NULL, NULL, cgit_query_head, hex,
194 sha1_to_hex(p->item->object.sha1), NULL); 194 sha1_to_hex(p->item->object.sha1), NULL);
195 html(")</td></tr>"); 195 html(")</td></tr>");
196 } 196 }
197 if (cgit_repo->snapshots) { 197 if (cgit_repo->snapshots) {
198 html("<tr><th>download</th><td colspan='2' class='sha1'>"); 198 html("<tr><th>download</th><td colspan='2' class='sha1'>");
199 cgit_print_snapshot_links(cgit_query_repo,hex,cgit_repo->snapshots); 199 cgit_print_snapshot_links(cgit_query_repo, cgit_query_head,
200 hex, cgit_repo->snapshots);
200 html("</td></tr>"); 201 html("</td></tr>");
201 } 202 }
202 html("</table>\n"); 203 html("</table>\n");
203 html("<div class='commit-subject'>"); 204 html("<div class='commit-subject'>");
204 html_txt(info->subject); 205 html_txt(info->subject);
205 html("</div>"); 206 html("</div>");
206 html("<div class='commit-msg'>"); 207 html("<div class='commit-msg'>");
207 html_txt(info->msg); 208 html_txt(info->msg);
208 html("</div>"); 209 html("</div>");
209 if (!(commit->parents && commit->parents->next && commit->parents->next->next)) { 210 if (!(commit->parents && commit->parents->next && commit->parents->next->next)) {
210 html("<div class='diffstat-header'>Diffstat</div>"); 211 html("<div class='diffstat-header'>Diffstat</div>");
211 html("<table class='diffstat'>"); 212 html("<table class='diffstat'>");