summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/user.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/global/user.html.tmpl')
-rw-r--r--template/en/default/global/user.html.tmpl20
1 files changed, 12 insertions, 8 deletions
diff --git a/template/en/default/global/user.html.tmpl b/template/en/default/global/user.html.tmpl
index 7050c6d37..0ee303fe9 100644
--- a/template/en/default/global/user.html.tmpl
+++ b/template/en/default/global/user.html.tmpl
@@ -12,15 +12,19 @@
<span class="vcard">
[% FILTER collapse %]
- [% IF user.id %]
- <a class="email" href="mailto:[% who.email FILTER html %]"
- title="[% who.identity FILTER html %]">
- [%- END -%]
- [% IF who.name %]
- <span class="fn">[% who.name FILTER html %]</span>
+ [% IF Param("use_email_as_login") %]
+ [% IF user.id %]
+ <a class="email" href="mailto:[% who.email FILTER html %]"
+ title="[% who.identity FILTER html %]">
+ [%- END -%]
+ [% IF who.name %]
+ <span class="fn">[% who.name FILTER html %]</span>
+ [% ELSE %]
+ [% who.login FILTER email FILTER html %]
+ [% END %]
+ [% '</a>' IF user.id %]
[% ELSE %]
- [% who.login FILTER email FILTER html %]
+ [% who.identity FILTER html %]
[% END %]
- [% '</a>' IF user.id %]
[% END %]
</span>