From 3f11fbd985b6870ce835fa2a8570a6bb2961eb27 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 9 Feb 2009 21:06:32 +0000 Subject: =?UTF-8?q?Bug=20477662:=20Display=20attachment=20flags=20as=20rea?= =?UTF-8?q?d-only=20to=20logged=20out=20users=20-=20Patch=20by=20Fr=C3=83?= =?UTF-8?q?=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dm?= =?UTF-8?q?kanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/flag/list.html.tmpl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'template/en/default/flag') diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl index 32a44a605..c7c8822f3 100644 --- a/template/en/default/flag/list.html.tmpl +++ b/template/en/default/flag/list.html.tmpl @@ -72,6 +72,8 @@ // --> +[% IF user.id %] + [%# We list flags by looping twice over the flag types relevant for the bug. # In the first loop, we display existing flags and then, for active types, # we display UI for adding new flags. In the second loop, we display UI @@ -273,3 +275,16 @@ [% END %] + +[% ELSE %] + [%# The user is logged out. Display flags as read-only. %] + [% FOREACH type = flag_types %] + [% FOREACH flag = type.flags %] + [% flag.setter.nick FILTER html %]: + [%+ type.name FILTER html FILTER no_break %][% flag.status %] + [% IF flag.requestee %] + ([% flag.requestee.nick FILTER html %]) + [% END %]
+ [% END %] + [% END %] +[% END %] \ No newline at end of file -- cgit v1.2.1