From d966c278e6c653a90343c739ac5a48f4127cf7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Mon, 16 Oct 2017 12:00:18 +0200 Subject: Only display the external ID if it is in use --- template/en/default/admin/users/list.html.tmpl | 32 +++++++++++++++--------- template/en/default/admin/users/search.html.tmpl | 4 ++- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/template/en/default/admin/users/list.html.tmpl b/template/en/default/admin/users/list.html.tmpl index 0b3c46eef..2dbee7451 100644 --- a/template/en/default/admin/users/list.html.tmpl +++ b/template/en/default/admin/users/list.html.tmpl @@ -35,21 +35,29 @@ {name => 'realname' heading => 'Real name' } - {name => 'extern_id' - heading => 'External ID' - } - {name => 'last_seen_date' - heading => 'Last Login' - } - {heading => 'Account History' - content => 'View' - contentlink => 'editusers.cgi?action=activity' _ - '&userid=%%userid%%' _ - listselectionurlparams - } ] %] +[% IF default_authorizer.extern_id_used %] + [% columns.push({name => 'extern_id' + heading => 'External ID' + } + ) + %] +[% END %] + +[% columns.push({name => 'last_seen_date' + heading => 'Last Login' + } + {heading => 'Account History' + content => 'View' + contentlink => 'editusers.cgi?action=activity' _ + '&userid=%%userid%%' _ + listselectionurlparams + } + ) +%] + [% IF Param('allowuserdeletion') && editusers %] [% columns.push({heading => 'Action' content => 'Delete' diff --git a/template/en/default/admin/users/search.html.tmpl b/template/en/default/admin/users/search.html.tmpl index f62148df2..da61a8a01 100644 --- a/template/en/default/admin/users/search.html.tmpl +++ b/template/en/default/admin/users/search.html.tmpl @@ -32,7 +32,9 @@ - + [% IF default_authorizer.extern_id_used %] + + [% END %] -- cgit v1.2.1