]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show aliases when showing a group
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 15 Jun 2009 06:51:38 +0000 (23:51 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 15 Jun 2009 06:51:38 +0000 (23:51 -0700)
actions/showgroup.php

index 537f09278bcd351211806f8401716501493a8a53..357f579d8f1c3d060b778ac19a3cd1ebad23624b 100644 (file)
@@ -272,6 +272,17 @@ class ShowgroupAction extends Action
             $this->elementEnd('dl');
         }
 
+        if (common_config('group', 'maxaliases') > 0) {
+            $aliases = $this->group->getAliases();
+
+            if (!empty($aliases)) {
+                $this->elementStart('dl', 'entity_aliases');
+                $this->element('dt', null, _('Aliases'));
+                $this->element('dd', 'aliases', implode(' ', $aliases));
+                $this->elementEnd('dl');
+            }
+        }
+
         $this->elementEnd('div');
 
         $this->elementStart('div', 'entity_actions');