-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#1233) This change will introduce a new Behavior container that will display its content only when there is no public programs. Besides, this change will move another Behavior Container from Gatein-portal.
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...f-sites-extension/src/main/webapp/groovy/webui/container/UINoPublicProgramContainer.gtmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<% | ||
import io.meeds.gamification.service.ProgramService; | ||
|
||
if(_ctx.getRequestContext().getUIApplication().isEditing() | ||
|| uicomponent.getApplicationComponent(ProgramService.class).countPublicPrograms() == 0) { | ||
uicomponent.renderChildren(); | ||
} | ||
%> |
9 changes: 9 additions & 0 deletions
9
...-sites-extension/src/main/webapp/groovy/webui/container/UIOpenRegistrationContainer.gtmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<% | ||
import io.meeds.portal.security.service.SecuritySettingService; | ||
import io.meeds.portal.security.constant.UserRegistrationType; | ||
|
||
if(_ctx.getRequestContext().getUIApplication().isEditing() | ||
|| UserRegistrationType.OPEN == uicomponent.getApplicationComponent(SecuritySettingService.class).getRegistrationType()) { | ||
uicomponent.renderChildren(); | ||
} | ||
%> |