From a1990484b3aac09309739ee34d790e851107312c Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 4 Nov 2013 23:09:22 +0800 Subject: Fix display of context menu when user is not provided --- template/en/default/global/user.html.tmpl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'template/en/default') diff --git a/template/en/default/global/user.html.tmpl b/template/en/default/global/user.html.tmpl index 2c12fa6dd..25a86eac2 100644 --- a/template/en/default/global/user.html.tmpl +++ b/template/en/default/global/user.html.tmpl @@ -31,14 +31,16 @@ [% user.in_group('editusers') || user.bless_groups.size > 0 ? "true" : "false" %]);" title="[% who.identity FILTER html %]"> [%- END -%] - [% IF who.name %] - [% who.name FILTER html %] - [% ELSE %] - [% who.login FILTER email FILTER html %] - [% END %] - [% IF user.id %] - - + [% IF who %] + [% IF who.name %] + [% who.name FILTER html %] + [% ELSE %] + [% who.login FILTER email FILTER html %] + [% END %] + [% IF user.id %] + + + [% END %] [% END %] [% END %] -- cgit v1.2.3-24-g4f1b