blob: 94f08ea55691a2650381e4a83703d93d27145da9 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[if-any results]
2
3 [is grid_x_attr "--"][else]
4 <tr>
5 [is grid_y_attr "--"][else]<th>&nbsp;</th>[end]
6 [for grid_x_headings]
7 <th>[grid_x_headings]</th>
8 [end]
9 </tr>
10 [end]
11
12 [for grid_data]
13 <tr class="grid">
14 [is grid_y_attr "--"][else]<th>[grid_data.grid_y_heading]</th>[end]
15
16 [for grid_data.cells_in_row]
17 <td class="vt hoverTarget [is grid_cell_mode "tiles"][else]idcount[end]">
18 [for grid_data.cells_in_row.tiles]
19 [is grid_cell_mode "tiles"]
20 [include "issue-grid-tile.ezt" grid_data.cells_in_row.tiles.starred grid_data.cells_in_row.tiles.local_id grid_data.cells_in_row.tiles.status grid_data.cells_in_row.tiles.summary grid_data.cells_in_row.tiles.issue_url grid_data.cells_in_row.tiles.data_idx]
21 [end]
22 [is grid_cell_mode "ids"]
23 <a title="[grid_data.cells_in_row.tiles.summary]"
24 href=[grid_data.cells_in_row.tiles.issue_url] class="computehref" data-idx="[grid_data.cells_in_row.tiles.data_idx]">[if-any is_hotlist][grid_data.cells_in_row.tiles.issue_ref][else][grid_data.cells_in_row.tiles.local_id][end]</a>
25 [end]
26 [end]
27 [is grid_cell_mode "counts"]
28 [is grid_data.cells_in_row.count "0"]
29 [else]
30 [is grid_data.cells_in_row.count "1"]
31 <a href=[for grid_data.cells_in_row.tiles][grid_data.cells_in_row.tiles.issue_url][end]
32 >[grid_data.cells_in_row.count] item</a>
33 [else]
34 <a href="[if-any is_hotlist][else]list[end]?can=[can]&amp;q=[grid_data.cells_in_row.drill_down][query]">[grid_data.cells_in_row.count] items</a>
35 [end]
36 [end]
37
38 [end]
39 </td>
40 [end]
41 </tr>
42 [end]
43
44[else]
45
46 <tr>
47 <td colspan="40" class="id" style="cursor:default">
48 <div style="padding: 3em; text-align: center">
49 [if-any is_hotlist]
50 This hotlist currently has no issues.<br>
51 [if-any owner_permissions editor_permissions]
52 Select 'Add issues...' in the above 'Actions...' dropdown menu to add some.
53 [end]
54 [else]
55 [if-any project_has_any_issues]
56 Your search did not generate any results. <br>
57 [is can "1"]
58 You may want to remove some terms from your query.<br>
59 [else]
60 You may want to try your search over <a href="list?can=1&amp;q=[query]&amp;x=[grid_x_attr]&amp;y=[grid_y_attr]&amp;mode=grid">all issues</a>.<br>
61 [end]
62 [else]
63 This project currently has no issues.<br>
64 [if-any page_perms.CreateIssue]
65 [if-any read_only][else]
66 You may want to enter a <a class="id" href="entry">new issue</a>.
67 [end]
68 [end]
69 [end]
70 [end]
71 </div>
72 </td>
73 </tr>
74
75[end]