diff options
author | Kohei Yoshino <kohei.yoshino@gmail.com> | 2018-02-28 16:29:19 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-02-28 16:29:19 +0100 |
commit | bb164af697bd8e36a116e76c4a5f8dcfd1e79dd7 (patch) | |
tree | b9ad1ffadcce0e3f1a9287f43a1dfc77431af37e /extensions | |
parent | e8e96b070dc391879348eab74b6fef82ef269a0f (diff) | |
download | bugzilla-bb164af697bd8e36a116e76c4a5f8dcfd1e79dd7.tar.gz bugzilla-bb164af697bd8e36a116e76c4a5f8dcfd1e79dd7.tar.xz |
Bug 1429621 - Add Saved Searches to My Dashboard
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/MyDashboard/template/en/default/pages/mydashboard.html.tmpl | 24 | ||||
-rw-r--r-- | extensions/MyDashboard/web/styles/mydashboard.css | 19 |
2 files changed, 40 insertions, 3 deletions
diff --git a/extensions/MyDashboard/template/en/default/pages/mydashboard.html.tmpl b/extensions/MyDashboard/template/en/default/pages/mydashboard.html.tmpl index 7956fcfae..36a8db6f2 100644 --- a/extensions/MyDashboard/template/en/default/pages/mydashboard.html.tmpl +++ b/extensions/MyDashboard/template/en/default/pages/mydashboard.html.tmpl @@ -151,6 +151,30 @@ </div> </div> <div style="clear:both;"></div> + [% IF user.showmybugslink OR user.queries.size OR user.queries_subscribed.size %] + <hr> + <section id="saved_searches_container"> + <header> + <h2 class="query_heading">Saved Searches</h2> + <a href="userprefs.cgi?tab=saved-searches">Edit</a> + </header> + <ul> + [% IF user.showmybugslink %][% filtered_username = user.login FILTER uri %] + <li><a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]"> + My [% terms.Bugs %]</a></li> + [% END %] + [% FOREACH q = user.queries %][% IF q.link_in_footer %] + <li><a href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q.name FILTER uri %]"> + [% q.name FILTER html %]</a></li> + [% END %][% END %] + [% FOREACH q = user.queries_subscribed %] + <li><a href="buglist.cgi?cmdtype=dorem&remaction=run&namedcmd= + [% q.name FILTER uri %]&sharer_id=[% q.user.id FILTER uri %]" + title="Shared by [% q.user.identity FILTER html %]">[% q.name FILTER html FILTER no_break %]</a></li> + [% END %] + </ul> + </section> + [% END %] </div> </div> diff --git a/extensions/MyDashboard/web/styles/mydashboard.css b/extensions/MyDashboard/web/styles/mydashboard.css index d7deadcad..8314755c0 100644 --- a/extensions/MyDashboard/web/styles/mydashboard.css +++ b/extensions/MyDashboard/web/styles/mydashboard.css @@ -20,9 +20,8 @@ .query_heading { font-size: 18px; - font-weight: strong; - padding-bottom: 5px; - padding-top: 5px; + font-weight: 600; + margin: 5px 0; color: rgb(72, 72, 72); } @@ -71,3 +70,17 @@ #last_changes .field_label { text-align: left; } + +#saved_searches_container > header { + display: flex; + align-items: center; + margin: 5px 0; +} + +#saved_searches_container > header h2 { + margin: 0 10px 0 0; +} + +#saved_searches_container li { + margin: 5px 0; +} |