]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Add config param 'index-info'
[ps-cgit] / ui-shared.c
index e4bb98fdc8b75755ed2841db087f6282b87f721d..14180105116cd27dca0d366bca7a39b531b4e08b 100644 (file)
@@ -272,6 +272,9 @@ void cgit_object_link(struct object *obj)
        } else if (obj->type == OBJ_TREE) {
                page = "tree";
                arg = "id";
+       } else if (obj->type == OBJ_TAG) {
+               page = "tag";
+               arg = "id";
        } else {
                page = "blob";
                arg = "id";
@@ -417,9 +420,14 @@ void cgit_print_pageheader(char *title, int show_search)
                        html_hidden("id", cgit_query_sha1);
                if (cgit_query_sha2)
                        html_hidden("id2", cgit_query_sha2);
-               html("<input type='text' name='q' value='");
+               html("<select name='qt'>");
+               html_option("grep", "log msg", cgit_query_grep);
+               html_option("author", "author", cgit_query_grep);
+               html_option("committer", "committer", cgit_query_grep);
+               html("</select>");
+               html("<input class='txt' type='text' name='q' value='");
                html_attr(cgit_query_search);
-               html("'/></form>");
+               html("'/><input class='btn' type='submit' value='...'/></form>");
        }
        html("</td></tr>");
        html("<tr><td id='content' colspan='2'>");