From 07791e2b9be26347cd3e7bbb8a5f004211841908 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 12 Oct 2015 23:04:17 +0800 Subject: Bug 1211891 - needinfo requests where the current user is the requestee shouldn't be editable --- .../template/en/default/bug_modal/edit.html.tmpl | 3 +-- .../template/en/default/bug_modal/flags.html.tmpl | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) (limited to 'extensions/BugModal/template/en/default') diff --git a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl index 2663d5562..eca6f5805 100644 --- a/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl @@ -576,13 +576,12 @@ [%# needinfo %] [% WRAPPER bug_modal/field.html.tmpl container = 1 - label = "NeedInfo" + label = "NeedInfo From" hide_on_view = needinfo.size == 0 hide_on_edit = 1 %] [% INCLUDE bug_modal/flags.html.tmpl types = bug.flag_types.only("name", "needinfo") - no_label = 1 view_only = 1 %] [% END %] 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 0c0362902..3e0da1173 100644 --- a/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl +++ b/extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl @@ -9,21 +9,25 @@ [%# # types: array of flag_type objects # no_label: if set to a true value, flag name and status will not be outputted (default: false) - # read_only: if true, don't output edit ui (default: false) + # view_only: if true, don't output edit ui (default: false) #%] -[% IF read_only %] +[% IF view_only %]
[% FOREACH type IN types %] [% FOREACH flag IN type.flags %]
- [% UNLESS no_label %] - [% INCLUDE bug_modal/user.html.tmpl u=flag.setter nick_only=1 %] - [%+ flag.type.name FILTER html %][% flag.status FILTER none %] - [% END %] - [% IF flag.requestee %] - [%+ INCLUDE bug_modal/user.html.tmpl u=flag.requestee nick_only=1 %] + [% INCLUDE bug_modal/user.html.tmpl u=flag.requestee nick_only=1 %] + [% activity_id = bug.find_activity_id_for_flag(flag) %] + [% IF activity_id %] + + [% INCLUDE bug_modal/rel_time.html.tmpl ts=flag.creation_date %] + [% activity_id ? "" : "" %]
[% END %] [% END %] -- cgit v1.2.3-24-g4f1b