]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
ui-shared: show repo owner along with description
[ps-cgit] / ui-shared.c
index 8a00099fdf10bc9871742c6eb561ab450c83a2b6..209af6ee3acabfc77abc11dd641f2e5d09047ce7 100644 (file)
@@ -437,6 +437,11 @@ void cgit_print_docstart(struct cgit_context *ctx)
        html("<link rel='stylesheet' type='text/css' href='");
        html_attr(ctx->cfg.css);
        html("'/>\n");
        html("<link rel='stylesheet' type='text/css' href='");
        html_attr(ctx->cfg.css);
        html("'/>\n");
+       if (ctx->cfg.favicon) {
+               html("<link rel='shortcut icon' href='");
+               html_attr(ctx->cfg.favicon);
+               html("'/>\n");
+       }
        html("</head>\n");
        html("<body>\n");
 }
        html("</head>\n");
        html("<body>\n");
 }
@@ -567,12 +572,12 @@ void cgit_print_pageheader(struct cgit_context *ctx)
                html_txt(ctx->cfg.root_title);
        html("</td></tr>\n");
 
                html_txt(ctx->cfg.root_title);
        html("</td></tr>\n");
 
-       html("<tr><td class='sub'");
+       html("<tr><td class='sub'>");
        if (ctx->repo) {
        if (ctx->repo) {
-               html(" colspan='2'>");
                html_txt(ctx->repo->desc);
                html_txt(ctx->repo->desc);
+               html("</td><td class='sub right'>");
+               html_txt(ctx->repo->owner);
        } else {
        } else {
-               html(">");
                if (ctx->cfg.root_desc)
                        html_txt(ctx->cfg.root_desc);
                else if (ctx->cfg.index_info)
                if (ctx->cfg.root_desc)
                        html_txt(ctx->cfg.root_desc);
                else if (ctx->cfg.index_info)