[PATCH v2 4/4] templates: Don't show forced filters

Stephen Finucane stephen at that.guru
Sun Sep 30 07:26:10 AEST 2018


No point in showing a filter that you can't change.

Signed-off-by: Stephen Finucane <stephen at that.guru>
---
 patchwork/templates/patchwork/filters.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/patchwork/templates/patchwork/filters.html b/patchwork/templates/patchwork/filters.html
index 9b0c4cb2..41ed2c26 100644
--- a/patchwork/templates/patchwork/filters.html
+++ b/patchwork/templates/patchwork/filters.html
@@ -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">
-- 
2.17.1



More information about the Patchwork mailing list