From 7a9af9adf59089bd612b112c29fcb88e054dacd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Wed, 1 Aug 2012 23:07:36 +0200 Subject: Bug 779600: Hide flag types you cannot request nor set instead of leaving them as disabled r=dkl a=LpSolit --- template/en/default/flag/list.html.tmpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'template') diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl index 75c10c075..9eb6b4441 100644 --- a/template/en/default/flag/list.html.tmpl +++ b/template/en/default/flag/list.html.tmpl @@ -91,6 +91,7 @@ [%# Display a table row for flags %] [% BLOCK flag_row %] + [% RETURN IF !flag && !((type.is_requestable && user.can_request_flag(type)) || user.can_set_flag(type)) %] [% SET fid = flag ? "flag-$flag.id" : "flag_type-$type.id" %] @@ -107,9 +108,6 @@