aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-06-03 20:25:51 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2014-06-03 20:25:51 +0300
commit8e4bdbfbad14b3e59268f2fc8905cb7818f14fa2 (patch)
tree88bf257248aec50b7465c727fa0575ee20d76ac1
parent7a8362aaffb95f7ece85b95dce2a9f83f244f78f (diff)
downloadbugs.linaro.org-8e4bdbfbad14b3e59268f2fc8905cb7818f14fa2.tar.gz
Add a visual identification on private bugs
based on block for restricting visibility (BLOCK section_restrict_visibility) Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rw-r--r--template/en/default/bug/edit.html.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl
index 7b7c0df..ade1ae3 100644
--- a/template/en/default/bug/edit.html.tmpl
+++ b/template/en/default/bug/edit.html.tmpl
@@ -164,6 +164,10 @@
[%# That's the main table, which contains all editable fields. %]
<div class="bz_alias_short_desc_container edit_form">
[% PROCESS commit_button id="_top"%]
+ [% user_can_edit_accessible = bug.check_can_change_field("reporter_accessible", 0, 1) %]
+ [% IF user_can_edit_accessible %]
+ <span style="background-color:red">[PRIVATE]</span>
+ [% END %]
<a href="show_bug.cgi?id=[% bug.bug_id %]">
[%-# %]<b>[% terms.Bug %]&nbsp;[% bug.bug_id FILTER html %]</b>
[%-# %]</a> -<span id="summary_alias_container" class="bz_default_hidden">