Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | <div class="list"> |
| 2 | |
| 3 | <div class="button_set"> |
| 4 | <a class="choice_chip" href="[if-any is_hotlist][else]list[end]?can=[can]&q=[query]&colspec=[format "url"][colspec][end]&groupby=[format "url"][groupby][end]&sort=[format "url"][sortspec][end]&x=[grid_x_attr]&y=[grid_y_attr]&cells=[grid_cell_mode]">List</a><span |
| 5 | class="choice_chip active_choice">Grid</span> |
| 6 | <a class="choice_chip" href="[if-any is_hotlist][else]list[end]?can=[can]&q=[query]&colspec=[format "url"][colspec][end]&groupby=[format "url"][groupby][end]&sort=[format "url"][sortspec][end]&x=[grid_x_attr]&y=[grid_y_attr]&cells=[grid_cell_mode]&mode=chart">Chart</a> |
| 7 | </div> |
| 8 | |
| 9 | [if-any pagination] |
| 10 | [if-any pagination.visible] |
| 11 | <div class="pagination"> |
| 12 | [is pagination.total_count "1"] |
| 13 | [pagination.total_count] issue shown |
| 14 | [else] |
| 15 | [if-any grid_limited][grid_shown] issues of [end] |
| 16 | [pagination.total_count] issues shown |
| 17 | [end] |
| 18 | </div> |
| 19 | [end] |
| 20 | [end] |
| 21 | |
| 22 | <form id="colspecform" action="[if-any is_hotlist][else]list[end]" method="GET" style="display:inline"> |
| 23 | <input type="hidden" name="can" value="[can]"> |
| 24 | <input type="hidden" name="q" value="[query]"> |
| 25 | <input type="hidden" name="colspec" id="colspec" value="[colspec]"> |
| 26 | <input type="hidden" name="sort" value="[sortspec]"> |
| 27 | <input type="hidden" name="groupby" value="[groupby]"> |
| 28 | <input type="hidden" name="mode" value="grid"> |
| 29 | <span>Rows:</span> |
| 30 | <select name="y" class="drop-down-bub"> |
| 31 | <option value="--" [if-any grid_y_attr][else]selected=selected[end]>None</option> |
| 32 | [for grid_axis_choices] |
| 33 | <option value="[grid_axis_choices]" |
| 34 | [is grid_axis_choices grid_y_attr]selected=selected[end] |
| 35 | >[grid_axis_choices]</option> |
| 36 | [end] |
| 37 | </select> |
| 38 | |
| 39 | <span style="margin-left:.7em">Cols:</span> |
| 40 | <select name="x" class="drop-down-bub"> |
| 41 | <option value="--" [if-any grid_x_attr][else]selected=selected[end]>None</option> |
| 42 | [for grid_axis_choices] |
| 43 | <option value="[grid_axis_choices]" |
| 44 | [is grid_axis_choices grid_x_attr]selected=selected[end] |
| 45 | >[grid_axis_choices]</option> |
| 46 | [end] |
| 47 | </select> |
| 48 | |
| 49 | <span style="margin-left:.7em">Cells:</span> |
| 50 | <select name="cells" class="drop-down-bub"> |
| 51 | <option value="tiles" [is grid_cell_mode "tiles"]selected=selected[end]>Tiles</option> |
| 52 | <option value="ids" [is grid_cell_mode "ids"]selected=selected[end]>IDs</option> |
| 53 | <option value="counts" [is grid_cell_mode "counts"]selected=selected[end]>Counts</option> |
| 54 | </select> |
| 55 | |
| 56 | <input type="submit" name="nobtn" style="font-size:90%; margin-left:.5em" value="Update"> |
| 57 | |
| 58 | </form> |
| 59 | </div> |