blob: 79898e03b3e1fb6d6406d76687b8156f63eb14ba [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[define title]Hotlist [hotlist.name][end]
2[define category_css]css/ph_list.css[end]
3[define category2_css]css/ph_detail.css[end]
4[include "../framework/header.ezt" "showtabs"]
5
6<table width="100%" cellpadding="0" cellspacing="0" border="0" class="hotlist-issues-page" id="meta-container"
7 style="margin: 1em">
8<tbody class="collapse">
9 <tr>
10 <td nowrap="nowrap" style="min-width:9em;" class="sidebar">
11 <div style="text-align: center">
12 [if-any read_only][else]
13 <a id="hotlist_star"
14 style="color:[if-any hotlist.is_starred]cornflowerblue[else]gray[end]"
15 title="[if-any hotlist.is_starred]Un-s[else]S[end]tar this hotlist">
16 [if-any hotlist.is_starred]&#9733;[else]&#9734;[end]
17 </a>
18 [end]
19 Followed by [hotlist.num_followers]
20 </div>
21 <div id="meta-float">
22 [include "hotlist-meta-part.ezt"]
23 </div>
24 </td>
25 <td width="80%" class="vt" style="padding-left: 1em">
26 <h1 style="margin-top: 0"><a href="[hotlist.url]">Hotlist [hotlist.name]</a></h1>
27 <div>Summary: [hotlist.summary]</div>
28 Description: [hotlist.description]
29 </td>
30 </tr>
31
32
33</tbody>
34</table>
35
36<div id="colcontrol">
37
38 <span id="qq"><input type="hidden" id="searchq" name="q"
39 value="[query]" autocomplete="off" ignore-dirty></span>
40 [if-any sortspec]<input type="hidden" id="sort" name="sort" value="[sortspec]">[end]
41 [if-any groupby]<input type="hidden" id="groupby" name="groupby" value="[groupby]">[end]
42 [if-any colspec]<span id="search_colspec"><input type="hidden" name="colspec" value="[colspec]"></span>[end]
43 <input type="hidden" id="hotlist_name" value="[hotlist.name]"></input>
44 <input type="hidden" id="can" value="[can]"></span>
45
46 [if-any grid_mode]
47 [include "../tracker/issue-grid-controls-top.ezt"]
48 [end]
49
50 [if-any list_mode]
51 [include "../tracker/issue-list-controls-top.ezt"]
52 [end]
53
54 [if-any chart_mode]
55 [include "../tracker/issue-chart-controls-top.ezt"]
56 [end]
57
58 [include "../tracker/issue-hovercard.ezt"] [# TODO(jojwang): no hovercard appears right now]
59
60 <div id="cursorarea">
61 <table cellspacing="0" cellpadding="2" border="0" class="results striped drag_container" id="resultstable" width="100%">
62
63 [if-any grid_mode]
64 [include "../tracker/issue-grid-body.ezt"]
65 [end]
66
67 [if-any list_mode]
68 [include "hotlist-issues-body.ezt"]
69 [end]
70
71 [if-any chart_mode]
72 [include "../tracker/issue-chart-body.ezt" "testparam"]
73 [end]
74
75 </table>
76 </div>
77
78 [if-any list_mode]
79 [include "../tracker/issue-list-controls-bottom.ezt"]
80 [for panels]
81 [include "../tracker/issue-list-menus.ezt"]
82 [end]
83 [end]
84</div>
85
86[if-any grid_mode][else]
87 [include "../tracker/issue-list-js.ezt" "hotlist"]
88[end]
89
90<script type="text/javascript" nonce="[nonce]">
91runOnLoad(function() {
92 if ($("hotlist_star")) {
93 [# The user viewing this page wants to star this hotlist]
94 $("hotlist_star").addEventListener("click", function () {
95 _TKR_toggleStar($("hotlist_star"), null, null, null, "[hotlist_id]");
96 });
97 }
98
99
100 window.addEventListener("beforeunload", function(e) {
101 var selectedElement = document.activeElement;
102 if (selectedElement.classList.contains("itemnote")){
103 saveNote(selectedElement, "[hotlist_id]");
104 }
105 return;
106 });
107
108 $("hide-closed").addEventListener("click", function(e) {
109 HTL_toggleIssuesShown(e.target);
110 });
111 $("show-all").addEventListener("click", function(e) {
112 HTL_toggleIssuesShown(e.target);
113 });
114
115});
116</script>
117
118[#TODO(jojwang):make pretty]
119
120[include "../framework/footer.ezt"]