From 5b8e40aaa9bdb0c07cce0cf53cd913b0c397fdc4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 29 Jun 2009 10:29:11 -0400 Subject: [PATCH] admin indicators in groups --- actions/groupmembers.php | 9 +++++++++ theme/base/css/display.css | 18 +++--------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/actions/groupmembers.php b/actions/groupmembers.php index d132cdf967..be7a9e81c7 100644 --- a/actions/groupmembers.php +++ b/actions/groupmembers.php @@ -167,6 +167,15 @@ class GroupMemberListItem extends ProfileListItem $this->group = $group; } + function showFullName() + { + parent::showFullName(); + if ($this->profile->isAdmin($this->group)) { + $this->out->text(' '); + $this->out->element('span', 'admin_indicator', _('Admin')); + } + } + function showActions() { $this->startActions(); diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 78fcd7ecef..df4e756330 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -206,7 +206,6 @@ border-radius:4px; padding:0 7px; } - .form_settings input.form_action-primary { padding:0; } @@ -270,7 +269,6 @@ clear:both; margin-bottom:18px; } - #anon_notice { float:left; width:43.2%; @@ -285,7 +283,6 @@ font-size:1.1em; font-weight:bold; } - #footer { float:left; width:64%; @@ -597,7 +594,6 @@ display:none; } /* entity_profile */ - /*entity_actions*/ .entity_actions { float:right; @@ -726,7 +722,6 @@ margin-bottom:0; min-height:60px; } - .profile .form_group_join legend, .profile .form_group_leave legend, .profile .form_user_subscribe legend, @@ -761,13 +756,11 @@ display:inline; margin-right:11px; } - .profile .entity_profile .form_subscription_edit label { font-weight:normal; margin-right:11px; } - /* NOTICE */ .notice, .profile { @@ -790,7 +783,6 @@ width:95%; float:left; } - /* NOTICES */ #notices_primary { float:left; @@ -962,7 +954,6 @@ border:0; padding:0; } - .notice .attachment { position:relative; padding-left:16px; @@ -1059,7 +1050,6 @@ margin-bottom:18px; padding-left:20px; } - #filter_tags { margin-bottom:11px; float:left; @@ -1105,8 +1095,6 @@ top:3px; left:3px; } - - .pagination { float:left; clear:both; @@ -1152,7 +1140,6 @@ padding-right:30px; } /* END: NOTICE */ - .hentry .entry-content p { margin-bottom:18px; } @@ -1169,7 +1156,6 @@ margin-bottom:18px; margin-left:18px; } - /* TOP_POSTERS */ .section tbody td { padding-right:18px; @@ -1197,7 +1183,6 @@ margin-right:0; display:none; } - /* tagcloud */ .tag-cloud { list-style-type:none; @@ -1314,3 +1299,6 @@ display:none; .guide { clear:both; } +.admin_indicator { +font-style:italic; +} \ No newline at end of file