Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | [define category_css]css/ph_detail.css[end] |
| 2 | [include "../framework/header.ezt" "showtabs"] |
| 3 | |
| 4 | [if-any read_only][include "../framework/read-only-rejection.ezt"] |
| 5 | [else] |
| 6 | |
| 7 | <form action="adminViews.do" id="adminViews" method="POST"> |
| 8 | <input type="hidden" name="token" value="[form_token]"> |
| 9 | |
| 10 | [include "../framework/artifact-list-admin-part.ezt" "with_grid"] |
| 11 | |
| 12 | <h4 id="queries">Saved queries</h4> |
| 13 | <div class="section"> |
| 14 | |
| 15 | <div class="closed"> |
| 16 | <div>Saved queries help project visitors easily view relevant issue lists. |
| 17 | <a class="ifClosed toggleHidden" href="#" |
| 18 | style="font-size:90%; margin-left:.5em">Learn more</a> |
| 19 | </div> |
| 20 | |
| 21 | <div id="filterhelp" class="ifOpened help"> |
| 22 | Project owners can set up saved queries to make it easier for team members to |
| 23 | quickly run common queries. More importantly, project owners can use saved |
| 24 | queries to focus the team's attention on the issue lists that are most important |
| 25 | for the project's success. The project's saved queries are shown in the middle |
| 26 | section of the search dropdown menu that is next to the issue search box. |
| 27 | </div> |
| 28 | <br> |
| 29 | |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame^] | 30 | [if-any can_edit_project] |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 31 | [include "../framework/saved-queries-admin-part.ezt" "project"] |
| 32 | [else] |
| 33 | <table cellspacing="0" cellpadding="2" border="0" class="results striped"> |
| 34 | <tr> |
| 35 | <th align="left">Saved query name</th> |
| 36 | <th align="left">Search in</th> |
| 37 | <th align="left">Query</th> |
| 38 | </tr> |
| 39 | [for canned_queries] |
| 40 | <tr> |
| 41 | <td>[canned_queries.name]</td> |
| 42 | <td> |
| 43 | [define can][canned_queries.base_query_id][end] |
| 44 | [is can "1"]All issues[end] |
| 45 | [is can "2"]Open issues[end] |
| 46 | [is can "3"]Open and owned by me[end] |
| 47 | [is can "4"]Open and reported by me[end] |
| 48 | [is can "5"]Open and starred by me[end] |
| 49 | [is can "6"]New issues[end] |
| 50 | [is can "7"]Issues to verify[end] |
| 51 | [is can "8"]Open with comment by me[end] |
| 52 | </td> |
| 53 | <td> |
| 54 | [canned_queries.query] |
| 55 | </td> |
| 56 | </tr> |
| 57 | [end] |
| 58 | </table> |
| 59 | [end] |
| 60 | </div> |
| 61 | </div> |
| 62 | |
Adrià Vilanova Martínez | f19ea43 | 2024-01-23 20:20:52 +0100 | [diff] [blame^] | 63 | [if-any can_edit_project] |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 64 | <input type="submit" id="savechanges" name="btn" value="Save changes" class="submit"> |
| 65 | [end] |
| 66 | </form> |
| 67 | |
| 68 | [end] |
| 69 | |
| 70 | [include "../framework/footer.ezt"] |