groupAbout.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionItemInfo());
String url;
url = Session.getInstance().generateUrl(new CreateUrlRequest(Page.GROUPS, group.getShortName()));
Hyperlink groupNameLink = new Hyperlink(group.getName(), url);
groupNameLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().displayName());
groupAbout.add(groupNameLink);
if (null != group.getDescription())
{
Label about = new Label(group.getDescription());
about.addStyleName(StaticResourceBundle.INSTANCE.coreCss().missionStatement());
groupAbout.add(about);
}
FlowPanel groupMetaData = new FlowPanel();
groupMetaData.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionItemFollowers());
groupMetaData.add(new HTML("Followers: <span class='" + StaticResourceBundle.INSTANCE.coreCss().light() + "'>"
+ group.getFollowersCount() + "</span>"));
insertActionSeparator(groupMetaData);
groupMetaData.add(new HTML("Added: <span class='" + StaticResourceBundle.INSTANCE.coreCss().light() + "'>"
+ new DateFormatter().timeAgo(group.getDateAdded(), true) + "</span>"));
groupAbout.add(groupMetaData);
if (!group.isPublic())
{
RequestAccessPanel reqAccess = new RequestAccessPanel(group.getShortName());
groupAbout.add(reqAccess);
groupNameLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().privateClass());
}
groupPanel.add(groupAbout);
return groupPanel;