summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAITIK <adandapa@redhat.com>2021-10-18 15:20:35 +0530
committerAITIK <adandapa@redhat.com>2021-10-19 12:10:52 +0530
commitaa53c423a278b7b0583402284cc6c81eea68494f (patch)
tree8204a1c78a2158fd529878339314c853277c11ed
parentBug 2014250 - Internal error when search term includes the string LIMIT (diff)
downloadbugzilla-aa53c423a278b7b0583402284cc6c81eea68494f.tar.gz
bugzilla-aa53c423a278b7b0583402284cc6c81eea68494f.tar.bz2
bugzilla-aa53c423a278b7b0583402284cc6c81eea68494f.zip
Bug 2011730 - Provide shareable links for shared searches in footer
Add sharer_id to the url Change-Id: Ic952bb995febf082d67f0e072932af0b939312c0
-rw-r--r--extensions/RedHat/template/en/default/global/common-links.html.tmpl8
-rw-r--r--template/en/default/global/useful-links.html.tmpl7
2 files changed, 14 insertions, 1 deletions
diff --git a/extensions/RedHat/template/en/default/global/common-links.html.tmpl b/extensions/RedHat/template/en/default/global/common-links.html.tmpl
index 8ca9240c8..c7965ed75 100644
--- a/extensions/RedHat/template/en/default/global/common-links.html.tmpl
+++ b/extensions/RedHat/template/en/default/global/common-links.html.tmpl
@@ -172,7 +172,13 @@
[% FOREACH q = user.queries %]
<li>
- <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER uri %]">[% q.name FILTER html %]</a>
+ [% IF q.shared_with_group.size %]
+ <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER uri %]&amp;sharer_id=[% q.user.id FILTER uri %]"
+ class="shared" title="Shared by [% q.user.identity FILTER html %]">[% q.name FILTER html %]</a>
+ [% ELSE %]
+ <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER uri %]">[% q.name FILTER html %]</a>
+ [% END %]
+
</li>
[% END %]
</ul>
diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl
index 5c5bfc316..8eac961aa 100644
--- a/template/en/default/global/useful-links.html.tmpl
+++ b/template/en/default/global/useful-links.html.tmpl
@@ -28,8 +28,15 @@
[% FOREACH q = user.queries %]
[% NEXT UNLESS q.link_in_footer %]
<li>
+ [% IF q.shared_with_group.size %]
+ [% '<span class="separator">| </span>' IF print_pipe %]
+ <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER uri %]&amp;sharer_id=[% q.user.id FILTER uri %]"
+ class="shared" title="Shared by [% q.user.identity FILTER html %]">[% q.name FILTER html %]</a>
+ [% ELSE %]
[% '<span class="separator">| </span>' IF print_pipe %]
<a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER uri %]">[% q.name FILTER html %]</a>
+ [% END %]
+
</li>
[% print_pipe = 1 %]
[% END %]