about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobin Redeker <elmex@ta-sa.org>2009-01-11 16:25:01 +0100
committerLars Hjemli <hjemli@gmail.com>2009-01-11 16:39:43 +0100
commit372b4041bd117cf073082559e1f0160d75f57374 (patch)
treec4843a6edef658da195d662cc54ae09b257b9753
parentMerge branch 'stable' (diff)
downloadcgit-pink-372b4041bd117cf073082559e1f0160d75f57374.tar.gz
cgit-pink-372b4041bd117cf073082559e1f0160d75f57374.zip
Make all tags viewable
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r--ui-refs.c2
-rw-r--r--ui-tag.c11
2 files changed, 11 insertions, 2 deletions
diff --git a/ui-refs.c b/ui-refs.c
index c35e694..25da00a 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -139,7 +139,7 @@ static int print_tag(struct refinfo *ref)
 		if (!header)
 			print_tag_header();
 		html("<tr><td>");
-		html_txt(name);
+		cgit_tag_link(name, NULL, NULL, ctx.qry.head, name);
 		html("</td><td>");
 		if (ctx.repo->snapshots && (ref->object->type == OBJ_COMMIT))
 			print_tag_downloads(ctx.repo, name);
diff --git a/ui-tag.c b/ui-tag.c
index 54b9f4c..0e056e0 100644
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -75,6 +75,15 @@ void cgit_print_tag(char *revname)
 		html("</td></tr>\n");
 		html("</table>\n");
 		print_tag_content(info->msg);
-	}
+	} else {
+		html("<table class='commit-info'>\n");
+		htmlf("<tr><td>Tag name</td><td>");
+		html_txt(revname);
+		html("</td></tr>\n");
+		html("<tr><td>Tagged object</td><td>");
+		cgit_object_link(obj);
+		html("</td></tr>\n");
+		html("</table>\n");
+        }
 	return;
 }
Remove old commandsJune McEnroe 2018-04-20Clean up pteeJune McEnroe 2018-04-20Uncommitted changes from months ago :(June McEnroe 2018-02-25Remove winchJune McEnroe 2018-02-25Echo at end of outputJune McEnroe 2018-02-25Add stopJune McEnroe 2018-02-25Switch back to static window sizingJune McEnroe 2018-02-25Add missing includeJune McEnroe 2018-02-25Define rules for multi-object binariesJune McEnroe 2018-02-25Rewrite everythingJune McEnroe 2018-02-22Hardcode path lengths in setupJune McEnroe 2018-02-22Add setup, start commandJune McEnroe 2018-02-22Indent list of streamsJune McEnroe 2018-02-22Add welcome message to ssh-commandJune McEnroe 2018-02-22Sleep before truncationJune McEnroe 2018-02-22List streams if none givenJune McEnroe 2018-02-22Set ForceCommand ssh-commandJune McEnroe 2018-02-22Rename command to ssh-commandJune McEnroe 2018-02-22Add command.shJune McEnroe 2018-02-22Factor out STREAM_SIZE for ingest and broadcastJune McEnroe 2018-02-22Handle EINTR from keventJune McEnroe 2018-02-22Include libutil in chroot.tarJune McEnroe