Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(505)

Side by Side Diff: appengine/swarming/templates/user_tasks.html

Issue 2012843003: Remove use of search API; effectively remove support to search for task by name. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% extends "swarming/base.html" %} 1 {% extends "swarming/base.html" %}
2 2
3 3
4 {% block headers %} 4 {% block headers %}
5 <style> 5 <style>
6 h1 { 6 h1 {
7 margin-top: 10px; 7 margin-top: 10px;
8 margin-bottom: 10px; 8 margin-bottom: 10px;
9 } 9 }
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 <input type="submit" value="Set limit"> 134 <input type="submit" value="Set limit">
135 <p> 135 <p>
136 <table class=layout_table title="Select order and filter"> 136 <table class=layout_table title="Select order and filter">
137 <thead> 137 <thead>
138 <tr> 138 <tr>
139 <td align=center>Sort</td> 139 <td align=center>Sort</td>
140 <td></td> 140 <td></td>
141 <td>State (total last 24h)</td> 141 <td>State (total last 24h)</td>
142 <td></td> 142 <td></td>
143 <td>Search by tag</td> 143 <td>Search by tag</td>
144 <td>Search by task name</td>
145 </tr> 144 </tr>
146 </thead> 145 </thead>
147 <tbody> 146 <tbody>
148 <tr> 147 <tr>
149 <td> 148 <td>
150 {% for key, name, item_title in sort_choices %} 149 {% for key, name, item_title in sort_choices %}
151 <label title="{{item_title}}"> 150 <label title="{{item_title}}">
152 <input type="radio" name="sort" value="{{key}}" 151 <input type="radio" name="sort" value="{{key}}"
153 onchange="update_sort()" 152 onchange="update_sort()"
154 {% if sort == key %}checked{%endif%}> 153 {% if sort == key %}checked{%endif%}>
(...skipping 20 matching lines...) Expand all
175 <td> 174 <td>
176 <div title="Task tags uses whole tag search ONLY. Using it resets sort t o 'Created' and the task state filter to 'All'."> 175 <div title="Task tags uses whole tag search ONLY. Using it resets sort t o 'Created' and the task state filter to 'All'.">
177 Task tags<br> 176 Task tags<br>
178 (whole tag only, 1 per line) 177 (whole tag only, 1 per line)
179 <br> 178 <br>
180 <textarea id="task_tag" name="task_tag" rows="3" cols="30">{{task_tag} }</textarea> 179 <textarea id="task_tag" name="task_tag" rows="3" cols="30">{{task_tag} }</textarea>
181 <br> 180 <br>
182 <input type="submit" value="Search"> 181 <input type="submit" value="Search">
183 </div> 182 </div>
184 </td> 183 </td>
185 <td>
186 <div title="Task name uses whole word search ONLY. Using it resets sort to 'Created' and the task state filter to 'All'.">
187 Task name<br>
188 (whole word only)
189 <br>
190 <input type="text" name="task_name" value="{{task_name}}">
191 <br>
192 <input type="submit" value="Search">
193 </div>
194 </td>
195 </tr> 184 </tr>
196 <tbody> 185 <tbody>
197 </table> 186 </table>
198 </form> 187 </form>
199 <br> 188 <br>
200 189
201 190
202 {% macro total_pending_star() %} 191 {% macro total_pending_star() %}
203 {% if has_pending %}*{% endif %} 192 {% if has_pending %}*{% endif %}
204 {% endmacro %} 193 {% endmacro %}
205 194
206 195
207 {% macro total_running_star() %} 196 {% macro total_running_star() %}
208 {% if has_running %}*{% endif %} 197 {% if has_running %}*{% endif %}
209 {% endmacro %} 198 {% endmacro %}
210 199
211 200
212 {% macro next_page_link() %} 201 {% macro next_page_link() %}
213 {% if cursor %} 202 {% if cursor %}
214 <p> 203 <p>
215 {% if task_tag %} 204 {% if task_tag %}
216 <a href="/user/tasks?limit={{limit}}&state={{state}}&task_tag={{task_tag|urlen code}}&cursor={{cursor|urlencode}}">Next page</a> 205 <a href="/user/tasks?limit={{limit}}&state={{state}}&task_tag={{task_tag|urlen code}}&cursor={{cursor|urlencode}}">Next page</a>
217 {% elif task_name %}
218 <a href="/user/tasks?limit={{limit}}&state={{state}}&task_name={{task_name|url encode}}&cursor={{cursor|urlencode}}">Next page</a>
219 {% else %} 206 {% else %}
220 <a href="/user/tasks?limit={{limit}}&state={{state}}&sort={{sort}}&cursor={{cu rsor|urlencode}}">Next page</a> 207 <a href="/user/tasks?limit={{limit}}&state={{state}}&sort={{sort}}&cursor={{cu rsor|urlencode}}">Next page</a>
221 {% endif %} 208 {% endif %}
222 {% endif %} 209 {% endif %}
223 {% endmacro %} 210 {% endmacro %}
224 211
225 212
226 {% if tasks %} 213 {% if tasks %}
227 <table id="request-table" class="alterning_background" 214 <table id="request-table" class="alterning_background"
228 summary="This table lists all test requests"> 215 summary="This table lists all test requests">
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 </tfoot> 356 </tfoot>
370 {% else %} 357 {% else %}
371 {{ next_page_link() }} 358 {{ next_page_link() }}
372 {% endif %} 359 {% endif %}
373 </table> 360 </table>
374 {% else %} 361 {% else %}
375 No data to show for this selection. 362 No data to show for this selection.
376 {% endif %} 363 {% endif %}
377 364
378 {% endblock %} 365 {% endblock %}
OLDNEW
« no previous file with comments | « appengine/swarming/server/task_scheduler_test.py ('k') | appengine/swarming/test_env_handlers.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698