diff options
author | Byron Jones <glob@mozilla.com> | 2015-08-10 17:21:22 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-08-10 17:21:22 +0200 |
commit | 44cd79261e988e83b1d8293f81c9b74f26942157 (patch) | |
tree | 18d70700596aa4a81cc2bfac074e85f72ee44d82 /extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl | |
parent | 7e41532fd90edd907bffc283b39f1c1d3397ab4a (diff) | |
download | bugzilla-44cd79261e988e83b1d8293f81c9b74f26942157.tar.gz bugzilla-44cd79261e988e83b1d8293f81c9b74f26942157.tar.xz |
Bug 1146761 - clicking on a date/flag/etc should scroll to the corresponding change
Diffstat (limited to 'extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl')
-rw-r--r-- | extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl index d86a8c8cf..0c0362902 100644 --- a/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl @@ -74,10 +74,18 @@ </td> <td class="flag-name"> - <span class="rel-time-title" title="[% f.creation_date FILTER time_duration FILTER html %]" - data-time="[% f.creation_date FILTER epoch FILTER none %]"> + [% activity_id = bug.find_activity_id_for_flag(f) %] + [% IF activity_id %] + <a href="#[% activity_id FILTER none %]" + [% ELSE %] + <span + [% END %] + class="rel-time-title[% " activity-ref" IF activity_id %]" + title="[% f.creation_date FILTER time_duration FILTER html %]" + data-time="[% f.creation_date FILTER epoch FILTER none %]" + > [% f.type.name FILTER html %] - </span> + [% activity_id ? "</a>" : "</span>" %] </td> <td class="flag-value"> |