]> Git repositories of Nishi - repoview.git/commitdiff
add stuff
authorNishi <nishi@nishi.boats>
Thu, 22 Aug 2024 07:56:10 +0000 (07:56 +0000)
committerNishi <nishi@nishi.boats>
Thu, 22 Aug 2024 07:56:10 +0000 (07:56 +0000)
git-svn-id: file:///raid/svn-personal/repoview/trunk@63 7e8b2a19-8934-dd40-8cb3-db22cdd5a80f

CGI/theme/modern.c

index 92b4c6d78fbefc51215583e4172c7599169cc1dd..e883c2ba85037da16ac619593e4c528a303328ac 100644 (file)
@@ -623,7 +623,19 @@ void render_page(void) {
                                char* showreadme = rv_get_readme(repouser);
                                desc = html_escape_nl_to_br(showreadme);
                                add_data(&title, " - ");
+#ifdef USE_MYPAGE
+                               add_data(&title, "<a href=\"");
+                               add_data(&title, INSTANCE_ROOT);
+                               add_data(&title, "/?page=person&username=");
+                               char* esc = url_escape(ruser);
+                               add_data(&title, esc);
+                               free(esc);
+                               add_data(&title, "\">");
+#endif
                                add_data(&title, showuser);
+#ifdef USE_MYPAGE
+                               add_data(&title, "</a>");
+#endif
                                add_data(&title, "/");
                                add_data(&title, showrepo);
                                free(showuser);