]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Merge branch 'stable'
[ps-cgit] / ui-shared.c
index c99bcecdf7905fa373d8839d83e3935d9c30faeb..ae29615a32d04ac8c3e933815e61b64543fdecee 100644 (file)
@@ -349,6 +349,11 @@ void cgit_commit_link(char *name, const char *title, const char *class,
                htmlf("%d", ctx.qry.context);
                delim = "&";
        }
                htmlf("%d", ctx.qry.context);
                delim = "&";
        }
+       if (ctx.qry.ignorews) {
+               html(delim);
+               html("ignorews=1");
+               delim = "&";
+       }
        html("'>");
        html_txt(name);
        html("</a>");
        html("'>");
        html_txt(name);
        html("</a>");
@@ -397,6 +402,11 @@ void cgit_diff_link(const char *name, const char *title, const char *class,
                htmlf("%d", ctx.qry.context);
                delim = "&amp;";
        }
                htmlf("%d", ctx.qry.context);
                delim = "&amp;";
        }
+       if (ctx.qry.ignorews) {
+               html(delim);
+               html("ignorews=1");
+               delim = "&amp;";
+       }
        html("'>");
        html_txt(name);
        html("</a>");
        html("'>");
        html_txt(name);
        html("</a>");
@@ -830,6 +840,7 @@ void cgit_print_pageheader(struct cgit_context *ctx)
                html_option("grep", "log msg", ctx->qry.grep);
                html_option("author", "author", ctx->qry.grep);
                html_option("committer", "committer", ctx->qry.grep);
                html_option("grep", "log msg", ctx->qry.grep);
                html_option("author", "author", ctx->qry.grep);
                html_option("committer", "committer", ctx->qry.grep);
+               html_option("range", "range", ctx->qry.grep);
                html("</select>\n");
                html("<input class='txt' type='text' size='10' name='q' value='");
                html_attr(ctx->qry.search);
                html("</select>\n");
                html("<input class='txt' type='text' size='10' name='q' value='");
                html_attr(ctx->qry.search);