Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | [define title][if-any viewing_self]My[else][viewed_user_display_name][end] hotlists[end] |
| 2 | [define category_css]css/ph_detail.css[end] |
| 3 | |
| 4 | [include "../framework/header.ezt" "showusertabs" "t5"] |
| 5 | |
| 6 | |
| 7 | <h3>Hotlists</h3> |
| 8 | |
| 9 | <div class="section"> |
| 10 | |
| 11 | <div class="closed"> |
| 12 | <div>Hotlists allow you to group and rank issues independently of projects and with other users.</div><br> |
| 13 | [if-any viewing_self] |
| 14 | <div> |
| 15 | <a href="/hosting/createHotlist" title="Create a new hotlist"> |
| 16 | <input type="button" class="primary" value="Create hotlist"> |
| 17 | </a> |
| 18 | </div><br> |
| 19 | [end] |
| 20 | |
| 21 | <div class="list"> |
| 22 | <table style="width:100%;" cellspacing="0" cellpadding="0"> |
| 23 | <tr> |
| 24 | <th style="text-align:left;">Hotlists</th> |
| 25 | </tr> |
| 26 | </table> |
| 27 | </div> |
| 28 | <table cellspacing="0" cellpadding="2" border="0" class="results striped" width="100%"> |
| 29 | <tr id="headingrow"> |
| 30 | [if-any logged_in_user]<th style="white-space:nowrap; width:3%;"> </th>[end] |
| 31 | <th style="white-space:nowrap; width:15%;">Role</th> |
| 32 | <th style="white-space:nowrap; width:25%">Hotlist</th> |
| 33 | <th style="white-space:nowrap; width:10%;">Issues</th> |
| 34 | <th style="white-space:nowrap; width:[if-any viewing_self]50[else]47[end]%;">Summary</th> |
| 35 | </tr> |
| 36 | [if-any owner_of_hotlists editor_of_hotlists] |
| 37 | [for owner_of_hotlists] |
| 38 | <tr data-url="[owner_of_hotlists.url]"> |
| 39 | [if-any logged_in_user] |
| 40 | <td class="rowwidgets"> |
| 41 | <a class="star" |
| 42 | style="color:[if-any owner_of_hotlists.is_starred]cornflowerblue[else]gray[end]" |
| 43 | title="[if-any owner_of_hotlists.is_starred]Un-s][else]S[end]tar this hotlist" |
| 44 | data-hotlist-id="[owner_of_hotlists.hotlist_id]"> |
| 45 | [if-any owner_of_hotlists.is_starred]★[else]☆[end] |
| 46 | </a> |
| 47 | </td> |
| 48 | [end] |
| 49 | <td>Owner</td> |
| 50 | <td class="id" name="owner"> |
| 51 | <a href="[owner_of_hotlists.url]">[owner_of_hotlists.name]</a></td> |
| 52 | <td>[owner_of_hotlists.num_issues]</td> |
| 53 | <td>[owner_of_hotlists.summary]</td> |
| 54 | </tr> |
| 55 | [end] |
| 56 | [for editor_of_hotlists] |
| 57 | <tr data-url="[editor_of_hotlists.url]"> |
| 58 | [if-any logged_in_user] |
| 59 | <td class="rowwidgets"> |
| 60 | <a class="star" |
| 61 | style="color:[if-any editor_of_hotlists.is_starred]cornflowerblue[else]gray[end]" |
| 62 | title="[if-any editor_of_hotlists.is_starred]Un-s][else]S[end]tar this hotlist" |
| 63 | data-hotlist-id="[editor_of_hotlists.hotlist_id]"> |
| 64 | [if-any editor_of_hotlists.is_starred]★[else]☆[end] |
| 65 | </td> |
| 66 | [end] |
| 67 | <td>Editor</td> |
| 68 | <td class="id" name="editor"> |
| 69 | <a href="[editor_of_hotlists.url]">[editor_of_hotlists.name]</a></td> |
| 70 | <td>[editor_of_hotlists.num_issues]</td> |
| 71 | <td>[editor_of_hotlists.summary]</td> |
| 72 | </tr> |
| 73 | [end] |
| 74 | [else] |
| 75 | <td colspan="4"><i>No hotlists.</i></td> |
| 76 | [end] |
| 77 | </table> |
| 78 | [if-any starred_hotlists] |
| 79 | <div class="list"> |
| 80 | <table style="width:100%;" cellspacing="0" cellpadding="0"> |
| 81 | <tr> |
| 82 | <th style="text-align:left;">Hotlists starred by [if-any viewing_self]you[else][viewed_user_display_name][end]</th> |
| 83 | </tr> |
| 84 | </table> |
| 85 | </div> |
| 86 | <table cellspacing="0" cellpadding="2" border="0" class="results striped" width="100%"> |
| 87 | <tr> |
| 88 | <th style="white-space:nowrap; width:3%;"> </th> |
| 89 | <th style="white-space:nowrap; width:30%;">Hotlist</th> |
| 90 | <th style="white-space:nowrap; width:10%;">Issues</th> |
| 91 | <th style="white-space:nowrap; width:57%;">Summary</th> |
| 92 | </tr> |
| 93 | [for starred_hotlists] |
| 94 | <tr data-url="[starred_hotlists.url]"> |
| 95 | <td class="rowwidgets"> |
| 96 | <a class="star" |
| 97 | style="color:[if-any starred_hotlists.is_starred]cornflowerblue[else]gray[end]" |
| 98 | title="[if-any starred_hotlists.is_starred]Un-s][else]S[end]tar this hotlist" |
| 99 | data-hotlist-id="[starred_hotlists.hotlist_id]"> |
| 100 | [if-any starred_hotlists.is_starred]★[else]☆[end] |
| 101 | </td> |
| 102 | <td class="id" name="follower"> |
| 103 | <a href="[starred_hotlists.url]">[starred_hotlists.name]</a></td> |
| 104 | </td> |
| 105 | <td>[starred_hotlists.num_issues]</td> |
| 106 | <td>[starred_hotlists.summary]</td> |
| 107 | </tr> |
| 108 | [end] |
| 109 | </table> |
| 110 | [end] |
| 111 | |
| 112 | </div> |
| 113 | </div> |
| 114 | |
| 115 | <script type="text/javascript" nonce="[nonce]"> |
| 116 | runOnLoad(function() { |
| 117 | |
| 118 | var stars = document.getElementsByClassName("star"); |
| 119 | for (var i = 0; i < stars.length; ++i) { |
| 120 | var star = stars[[]i]; |
| 121 | star.addEventListener("click", function (event) { |
| 122 | var hotlistID = event.target.getAttribute("data-hotlist-id"); |
| 123 | _TKR_toggleStar(event.target, null, null, null, hotlistID); |
| 124 | }); |
| 125 | } |
| 126 | |
| 127 | }); |
| 128 | </script> |
| 129 | |
| 130 | [include "../framework/footer.ezt"] |