summaryrefslogtreecommitdiff
path: root/templates/users_list.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-12-19 12:40:39 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-12-19 12:40:39 +0000
commit699d88a3beff7b2b7296a5fcafb8088ec65f2895 (patch)
treebf8b9899335e69231b6a63f688c6a241caa39e04 /templates/users_list.tpl
parent544cc0bcd09ac9c8d5c13705c63d87efd9c2e2b2 (diff)
downloadusers-699d88a3beff7b2b7296a5fcafb8088ec65f2895.tar.gz
users-699d88a3beff7b2b7296a5fcafb8088ec65f2895.tar.bz2
users-699d88a3beff7b2b7296a5fcafb8088ec65f2895.zip
work around {displayname} limitations when displaying login name instead of real name
Diffstat (limited to 'templates/users_list.tpl')
-rw-r--r--templates/users_list.tpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/users_list.tpl b/templates/users_list.tpl
index e0169a8..8c346a3 100644
--- a/templates/users_list.tpl
+++ b/templates/users_list.tpl
@@ -31,7 +31,11 @@
{/if}
{if $users[user].real_name}
- <h2>{displayname hash=$users[user]} <small>{$users[user].login}</small></h2>
+ {if $gBitSystem->getConfig('users_display_name') == 'login'}
+ <h2>{$users[user].real_name} <small>[ {displayname hash=$users[user]} ]</small></h2>
+ {else}
+ <h2>{displayname hash=$users[user]} <small>[ {$users[user].login} ]</small></h2>
+ {/if}
{else}
<h2>{displayname hash=$users[user]}</h2>
{/if}