@@ -61,23 +61,17 @@ <h1>Advisory To-Dos</h1>
6161 </ form >
6262
6363 < div class ="box ">
64- <!-- <div class="column has-text-right">
65- <p class="has-text-weight-semibold">
66- {{ active_pipeline_count|default:0 }} active pipeline{{ active_pipeline_count|default:0|pluralize }},
67- {{ disabled_pipeline_count|default:0 }} disabled pipeline{{ disabled_pipeline_count|default:0|pluralize }}
68- </p>
69- </div> -->
7064 < table class ="table is-striped is-hoverable is-fullwidth ">
7165 < thead >
7266 < tr >
7367 < th colspan ="4 ">
7468 < div class ="box is-small ">
7569 < div class ="columns is-vcentered ">
76- < div class ="column has-text-centered " style ="flex: 0 0 15 %; font-weight: bold; "> CVE </ div >
77- < div class ="column has-text-centered " style ="flex: 0 0 20%; font-weight: bold; "> Aliases </ div >
78- < div class ="column has-text-centered " style ="flex: 0 0 15 %; font-weight: bold; "> Resolved</ div >
79- < div class ="column has-text-centered " style ="flex: 0 0 10%; font-weight: bold; "> # Advisories</ div >
80- < div class ="column has-text-centered " style ="flex: 0 0 40%; font-weight: bold; "> Issue</ div >
70+ < div class ="column has-text-left " style ="flex: 0 0 20 %; font-weight: bold; "> Aliases </ div >
71+ < div class ="column has-text-left " style ="flex: 0 0 20%; font-weight: bold; "> Date </ div >
72+ < div class ="column has-text-left " style ="flex: 0 0 10 %; font-weight: bold; "> Resolved</ div >
73+ < div class ="column has-text-left " style ="flex: 0 0 10%; font-weight: bold; "> # Advisories</ div >
74+ < div class ="column has-text-left " style ="flex: 0 0 40%; font-weight: bold; "> Issue Type </ div >
8175 </ div >
8276 </ div >
8377 </ th >
@@ -88,11 +82,11 @@ <h1>Advisory To-Dos</h1>
8882 < input type ="hidden " name ="search " value ="{{ form.search.value|default:'' }} ">
8983
9084 < div class ="columns is-vcentered px-1 ">
91- < div class ="column has-text-centered " style ="flex: 0 0 15 %; "> </ div >
92- < div class ="column has-text-centered " style ="flex: 0 0 20%; "> </ div >
85+ < div class ="column has-text-left " style ="flex: 0 0 20 %; "> </ div >
86+ < div class ="column has-text-left " style ="flex: 0 0 20%; "> </ div >
9387
94- < div class ="column has-text-centered " style ="flex: 0 0 15 %; ">
95- < div class ="select is-fullwidth ">
88+ < div class ="column " style ="flex: 0 0 10 %; ">
89+ < div class ="select is-half ">
9690 < select name ="resolved " onchange ="this.form.submit() ">
9791 {% for val, label in form.fields.resolved.choices %}
9892 < option value ="{{ val }} "
@@ -104,10 +98,10 @@ <h1>Advisory To-Dos</h1>
10498 </ div >
10599 </ div >
106100
107- < div class ="column has-text-centered " style ="flex: 0 0 10%; "> </ div >
101+ < div class ="column has-text-left " style ="flex: 0 0 10%; "> </ div >
108102
109- < div class ="column has-text-centered " style ="flex: 0 0 40%; ">
110- < div class ="select is-fullwidth ">
103+ < div class ="column " style ="flex: 0 0 40%; ">
104+ < div class ="select is-half ">
111105 < select name ="issue_type " onchange ="this.form.submit() ">
112106 {% for val, label in form.fields.issue_type.choices %}
113107 < option value ="{{ val }} "
@@ -128,25 +122,31 @@ <h1>Advisory To-Dos</h1>
128122 {% for todo in todo_list %}
129123 < tr >
130124 < td colspan ="4 ">
131- < a href ="{% url 'todo-detail' todo_id=todo.todo_id %} " class ="has-text-info ">
132- < div class ="columns px-1 is-vcentered ">
133- < div class ="column has-text-centered " style ="flex: 0 0 15%; ">
134- {{ todo.alias }}
135- </ div >
136- < div class ="column has-text-centered " style ="flex: 0 0 20%; ">
137- {{ todo.oldest_advisory_date|default:"NA" }}
138- </ div >
139- < div class ="column has-text-centered has-text-grey " style ="flex: 0 0 15%; ">
140- {{ todo.is_resolved|yesno:"Yes,No" }}
141- </ div >
142- < div class ="column has-text-centered has-text-grey " style ="flex: 0 0 10%; ">
143- {{ todo.advisories.all|length }}
144- </ div >
145- < div class ="column has-text-centered has-text-grey " style ="flex: 0 0 40%; ">
146- {{ todo.get_issue_type_display }}
125+ {% with supported_curation="CONFLICTING_FIXED_BY_PACKAGES CONFLICTING_AFFECTED_PACKAGES CONFLICTING_AFFECTED_AND_FIXED_BY_PACKAGES" %}
126+ {% if todo.issue_type in supported_curation.split %}
127+ < a href ="{% url 'todo-detail' todo_id=todo.todo_id %} " class ="has-text-info ">
128+ {% endif %}
129+ < div class ="columns px-1 is-vcentered ">
130+ < div class ="column has-text-left " style ="flex: 0 0 20%; ">
131+ {{ todo.alias }}
132+ </ div >
133+ < div class ="column has-text-left " style ="flex: 0 0 20%; ">
134+ {{ todo.oldest_advisory_date|default:"NA" }}
135+ </ div >
136+ < div class ="column has-text-centered has-text-grey " style ="flex: 0 0 10%; ">
137+ {{ todo.is_resolved|yesno:"Yes,No" }}
138+ </ div >
139+ < div class ="column has-text-centered has-text-grey " style ="flex: 0 0 10%; ">
140+ {{ todo.advisories_count }}
141+ </ div >
142+ < div class ="column has-text-left has-text-grey " style ="flex: 0 0 40%; ">
143+ {{ todo.get_issue_type_display }}
144+ </ div >
147145 </ div >
148- </ div >
149- </ a >
146+ {% if todo.issue_type in supported_curation.split %}
147+ </ a >
148+ {% endif %}
149+ {% endwith %}
150150 </ td >
151151 </ tr >
152152 {% empty %}
0 commit comments