]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
templates: Don't show forced filters
authorStephen Finucane <stephen@that.guru>
Sat, 29 Sep 2018 21:08:35 +0000 (22:08 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 13 Oct 2018 16:22:10 +0000 (17:22 +0100)
No point in showing a filter that you can't change.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/templates/patchwork/partials/filters.html

index 9b0c4cb2ea15f4c5f6fad1a67b4d4acb54697866..41ed2c268e460ca7c974039e2975906e40b5d382 100644 (file)
@@ -143,12 +143,14 @@ $(document).ready(function() {
  <div id="filterform" style="padding-top: 1em; display: none">
   <form class="form-horizontal" method="get">
    {% for filter in filters.available_filters %}
+   {% if not filter.forced %}
    <div class="form-group">
     <label class="col-sm-2 control-label">{{ filter.name }}</label>
     <div class="col-sm-5">
       {{ filter.form }}
     </div>
    </div>
+   {% endif %}
    {% endfor %}
    <div class="form-group">
     <div class="col-sm-offset-2 col-sm-5">