about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui-repolist.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 2ce0d6a..d341193 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -20,7 +20,8 @@ void cgit_print_repolist(struct cacheitem *item)
 	html("<tr class='nohover'>"
 	     "<th class='left'>Name</th>"
 	     "<th class='left'>Description</th>"
-	     "<th class='left'>Owner</th></tr>\n");
+	     "<th class='left'>Owner</th>"
+	     "<th class='left'>Links</th></tr>\n");
 
 	for (i=0; i<cgit_repolist.count; i++) {
 		repo = &cgit_repolist.repos[i];
@@ -32,6 +33,19 @@ void cgit_print_repolist(struct cacheitem *item)
 		html_txt(repo->desc);
 		html("</td><td>");
 		html_txt(repo->owner);
+		html("</td><td>");
+		html_link_open(cgit_pageurl(repo->name, "commit", NULL),
+			       "Commit: display last commit", NULL);
+		html("C</a> ");
+		html_link_open(cgit_pageurl(repo->name, "diff", NULL),
+			       "Diff: see changes introduced by last commit", NULL);
+		html("D</a> ");
+		html_link_open(cgit_pageurl(repo->name, "log", NULL),
+			       "Log: show history of the main branch", NULL);
+		html("L</a> ");
+		html_link_open(cgit_pageurl(repo->name, "tree", NULL),
+			       "Tree: browse the files in the main branch", NULL);
+		html("T</a>");
 		html("</td></tr>\n");
 	}
 	html("</table>");
2020-02-12Move catgirl up the pageJune McEnroe 2020-02-12Update catgirl pty grabJune McEnroe 2020-02-12Link to cgit /about pages where appropriateJune McEnroe 2020-02-11Separate LINKS from BINS for html to workJune McEnroe 2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe