modified so that it is possible to select which tab to show in the different gateways

git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/join-vre@158353 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2017-11-10 10:54:00 +00:00
parent ba443037e9
commit 93e4a61ebe
2 changed files with 12 additions and 3 deletions

View File

@ -169,9 +169,8 @@ public class JoinServiceImpl extends RemoteServiceServlet implements JoinService
*/
private List<String> getTabNames() throws Exception {
List<String> toReturn = new ArrayList<String>();
long currentSiteGroupId = getSiteFromServletRequest(getThreadLocalRequest()).getGroupId();
Group site = GroupLocalServiceUtil.getGroup(currentSiteGroupId);
String[] values = (String[]) site.getExpandoBridge().getAttributeDefault(TAB_NAMES_ATTRIBUTE);
long currentSiteGroupId = getSiteFromServletRequest(getThreadLocalRequest()).getGroupId();
String[] values = (String[]) groupsManager.readCustomAttr(currentSiteGroupId, TAB_NAMES_ATTRIBUTE);
for (int i = 0; i < values.length; i++) {
toReturn.add(values[i]);
}

View File

@ -2,6 +2,16 @@ body {
border: 5px solid white;
}
div.page-header > h1 {
font-size: 2em;
line-height: 25px;
color: #555;
}
div.page-header > h1 small{
font-size: 17px;
}
.nav-tabs .dropdown-toggle .caret {
border-top: 8px solid black !important;
border-right: 8px solid transparent !important;;