Skip to content

Commit

Permalink
LPS-60646 Don't show the management bar on summary tab
Browse files Browse the repository at this point in the history
  • Loading branch information
ealonso authored and brianchandotcom committed Nov 23, 2015
1 parent 54735d5 commit bbb9a73
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 69 deletions.
Expand Up @@ -40,29 +40,31 @@ SearchContainer searchContainer = new OrganizationSearch(renderRequest, PortletU
searchContainer.setEmptyResultsMessage("no-organization-was-found-that-is-a-member-of-this-site");
%>

<liferay-frontend:management-bar>
<liferay-frontend:management-bar-buttons>
<liferay-frontend:management-bar-display-buttons
displayViews='<%= new String[] {"icon", "descriptive", "list"} %>'
portletURL="<%= PortletURLUtil.clone(viewOrganizationsURL, renderResponse) %>"
selectedDisplayStyle="<%= displayStyle %>"
/>
</liferay-frontend:management-bar-buttons>

<liferay-frontend:management-bar-filters>
<liferay-frontend:management-bar-navigation
navigationKeys='<%= new String[] {"all"} %>'
portletURL="<%= PortletURLUtil.clone(viewOrganizationsURL, renderResponse) %>"
/>

<liferay-frontend:management-bar-sort
orderByCol="<%= orderByCol %>"
orderByType="<%= orderByType %>"
orderColumns='<%= new String[] {"name", "type"} %>'
portletURL="<%= PortletURLUtil.clone(viewOrganizationsURL, renderResponse) %>"
/>
</liferay-frontend:management-bar-filters>
</liferay-frontend:management-bar>
<c:if test='<%= !tabs1.equals("summary") %>'>
<liferay-frontend:management-bar>
<liferay-frontend:management-bar-buttons>
<liferay-frontend:management-bar-display-buttons
displayViews='<%= new String[] {"icon", "descriptive", "list"} %>'
portletURL="<%= PortletURLUtil.clone(viewOrganizationsURL, renderResponse) %>"
selectedDisplayStyle="<%= displayStyle %>"
/>
</liferay-frontend:management-bar-buttons>

<liferay-frontend:management-bar-filters>
<liferay-frontend:management-bar-navigation
navigationKeys='<%= new String[] {"all"} %>'
portletURL="<%= PortletURLUtil.clone(viewOrganizationsURL, renderResponse) %>"
/>

<liferay-frontend:management-bar-sort
orderByCol="<%= orderByCol %>"
orderByType="<%= orderByType %>"
orderColumns='<%= new String[] {"name", "type"} %>'
portletURL="<%= PortletURLUtil.clone(viewOrganizationsURL, renderResponse) %>"
/>
</liferay-frontend:management-bar-filters>
</liferay-frontend:management-bar>
</c:if>

<aui:form action="<%= portletURL.toString() %>" cssClass="container-fluid-1280" method="post" name="fm">
<aui:input name="tabs1" type="hidden" value="organizations" />
Expand Down
Expand Up @@ -40,29 +40,31 @@ UserGroupSearch userGroupSearch = new UserGroupSearch(renderRequest, PortletURLU
userGroupSearch.setEmptyResultsMessage("no-user-group-was-found-that-is-a-member-of-this-site");
%>

<liferay-frontend:management-bar>
<liferay-frontend:management-bar-buttons>
<liferay-frontend:management-bar-display-buttons
displayViews='<%= new String[] {"icon", "descriptive", "list"} %>'
portletURL="<%= PortletURLUtil.clone(viewUserGroupsURL, renderResponse) %>"
selectedDisplayStyle="<%= displayStyle %>"
/>
</liferay-frontend:management-bar-buttons>

<liferay-frontend:management-bar-filters>
<liferay-frontend:management-bar-navigation
navigationKeys='<%= new String[] {"all"} %>'
portletURL="<%= PortletURLUtil.clone(viewUserGroupsURL, renderResponse) %>"
/>

<liferay-frontend:management-bar-sort
orderByCol="<%= orderByCol %>"
orderByType="<%= orderByType %>"
orderColumns='<%= new String[] {"name", "description"} %>'
portletURL="<%= PortletURLUtil.clone(viewUserGroupsURL, renderResponse) %>"
/>
</liferay-frontend:management-bar-filters>
</liferay-frontend:management-bar>
<c:if test='<%= !tabs1.equals("summary") %>'>
<liferay-frontend:management-bar>
<liferay-frontend:management-bar-buttons>
<liferay-frontend:management-bar-display-buttons
displayViews='<%= new String[] {"icon", "descriptive", "list"} %>'
portletURL="<%= PortletURLUtil.clone(viewUserGroupsURL, renderResponse) %>"
selectedDisplayStyle="<%= displayStyle %>"
/>
</liferay-frontend:management-bar-buttons>

<liferay-frontend:management-bar-filters>
<liferay-frontend:management-bar-navigation
navigationKeys='<%= new String[] {"all"} %>'
portletURL="<%= PortletURLUtil.clone(viewUserGroupsURL, renderResponse) %>"
/>

<liferay-frontend:management-bar-sort
orderByCol="<%= orderByCol %>"
orderByType="<%= orderByType %>"
orderColumns='<%= new String[] {"name", "description"} %>'
portletURL="<%= PortletURLUtil.clone(viewUserGroupsURL, renderResponse) %>"
/>
</liferay-frontend:management-bar-filters>
</liferay-frontend:management-bar>
</c:if>

<aui:form action="<%= portletURL.toString() %>" cssClass="container-fluid-1280" method="post" name="fm">
<aui:input name="tabs1" type="hidden" value="user-groups" />
Expand Down
Expand Up @@ -40,29 +40,31 @@ SearchContainer searchContainer = new UserSearch(renderRequest, PortletURLUtil.c
searchContainer.setEmptyResultsMessage("no-user-was-found-that-is-a-direct-member-of-this-site");
%>

<liferay-frontend:management-bar>
<liferay-frontend:management-bar-buttons>
<liferay-frontend:management-bar-display-buttons
displayViews='<%= new String[] {"icon", "descriptive", "list"} %>'
portletURL="<%= PortletURLUtil.clone(viewUsersURL, renderResponse) %>"
selectedDisplayStyle="<%= displayStyle %>"
/>
</liferay-frontend:management-bar-buttons>

<liferay-frontend:management-bar-filters>
<liferay-frontend:management-bar-navigation
navigationKeys='<%= new String[] {"all"} %>'
portletURL="<%= PortletURLUtil.clone(viewUsersURL, renderResponse) %>"
/>

<liferay-frontend:management-bar-sort
orderByCol="<%= orderByCol %>"
orderByType="<%= orderByType %>"
orderColumns='<%= new String[] {"first-name", "screen-name"} %>'
portletURL="<%= PortletURLUtil.clone(viewUsersURL, renderResponse) %>"
/>
</liferay-frontend:management-bar-filters>
</liferay-frontend:management-bar>
<c:if test='<%= !tabs1.equals("summary") %>'>
<liferay-frontend:management-bar>
<liferay-frontend:management-bar-buttons>
<liferay-frontend:management-bar-display-buttons
displayViews='<%= new String[] {"icon", "descriptive", "list"} %>'
portletURL="<%= PortletURLUtil.clone(viewUsersURL, renderResponse) %>"
selectedDisplayStyle="<%= displayStyle %>"
/>
</liferay-frontend:management-bar-buttons>

<liferay-frontend:management-bar-filters>
<liferay-frontend:management-bar-navigation
navigationKeys='<%= new String[] {"all"} %>'
portletURL="<%= PortletURLUtil.clone(viewUsersURL, renderResponse) %>"
/>

<liferay-frontend:management-bar-sort
orderByCol="<%= orderByCol %>"
orderByType="<%= orderByType %>"
orderColumns='<%= new String[] {"first-name", "screen-name"} %>'
portletURL="<%= PortletURLUtil.clone(viewUsersURL, renderResponse) %>"
/>
</liferay-frontend:management-bar-filters>
</liferay-frontend:management-bar>
</c:if>

<aui:form action="<%= portletURL.toString() %>" cssClass="container-fluid-1280" method="post" name="fm">
<aui:input name="tabs1" type="hidden" value="users" />
Expand Down

0 comments on commit bbb9a73

Please sign in to comment.