Skip to content

Commit

Permalink
LSNBLDR-709: Adding config (sakaiproject#4129)
Browse files Browse the repository at this point in the history
LSNBLDR-709: Indentation
  • Loading branch information
nicholaswilson100 authored and ern committed Apr 11, 2017
1 parent b300e3c commit 8949ac9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4754,6 +4754,16 @@
# ###############################################################
#lessonbuilder.show.resource.folder.link=false

# ###############################################################
# LSNBLDR-709 Add calendar component for Lessons page
#
# Set this to false to hide the 'Embed Calendar' link which
# appears in the list when you click 'Add Content' in Lessons tool
#
# true/false Defaults to true (on)
# ###############################################################
#lessonbuilder.show.calendar.link=false

#TAGS

# If the tag service will be enabled or not. (default is true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4106,11 +4106,14 @@ private void createToolBar(UIContainer tofill, SimplePage currentPage, boolean i
UIOutput.make(tofill, "assignment-li");
createToolBarLink(AssignmentPickerProducer.VIEW_ID, tofill, "add-assignment", "simplepage.assignment-descrip", currentPage, "simplepage.assignment");

GeneralViewParameters eParams = new GeneralViewParameters(VIEW_ID);
eParams.addTool = GeneralViewParameters.CALENDAR;
UIOutput.make(tofill, "calendar-li");
UILink calendarLink = UIInternalLink.make(tofill, "calendar-link", messageLocator.getMessage("simplepage.calendarLinkText"), eParams);
calendarLink.decorate(new UITooltipDecorator(messageLocator.getMessage("simplepage.calendar-descrip")));
boolean showEmbedCalendarLink = ServerConfigurationService.getBoolean("lessonbuilder.show.calendar.link", true);
if (showEmbedCalendarLink){
GeneralViewParameters eParams = new GeneralViewParameters(VIEW_ID);
eParams.addTool = GeneralViewParameters.CALENDAR;
UIOutput.make(tofill, "calendar-li");
UILink calendarLink = UIInternalLink.make(tofill, "calendar-link", messageLocator.getMessage("simplepage.calendarLinkText"), eParams);
calendarLink.decorate(new UITooltipDecorator(messageLocator.getMessage("simplepage.calendar-descrip")));
}
UIOutput.make(tofill, "quiz-li");
createToolBarLink(QuizPickerProducer.VIEW_ID, tofill, "add-quiz", "simplepage.quiz-descrip", currentPage, "simplepage.quiz");

Expand Down

0 comments on commit 8949ac9

Please sign in to comment.