Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add show_web_tours for Interactive Web Tour #10333

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public class GlobalProperties {
public static final String SKIN_RIGHT_NAV_SHOW_EXAMPLES = "skin.right_nav.show_examples";
public static final String SKIN_RIGHT_NAV_SHOW_TESTIMONIALS = "skin.right_nav.show_testimonials";
public static final String SKIN_RIGHT_NAV_SHOW_WHATS_NEW = "skin.right_nav.show_whats_new";
public static final String SKIN_RIGHT_NAV_SHOW_WEB_TOURS = "skin.right_nav.show_web_tours";
private static String skinAuthorizationMessage;
@Value("${skin.authorization_message:Access to this portal is only available to authorized users.}")
public void setSkinAuthorizationMessage(String property) { skinAuthorizationMessage = property; }
Expand Down Expand Up @@ -805,6 +806,12 @@ public static boolean showRightNavWhatsNew()
return showFlag == null || Boolean.parseBoolean(showFlag);
}

public static boolean showRightNavWebTours()
{
String showFlag = portalProperties.getProperty(SKIN_RIGHT_NAV_SHOW_WEB_TOURS);
return showFlag == null || Boolean.parseBoolean(showFlag);
}

public static String getAuthorizationMessage()
{
return skinAuthorizationMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ Below you can find the complete list of all the available skin properties.
<td>Text for public cBioPortal.org.</td>
<td>Any HTML text</td>
</tr>
<tr>
<td>skin.right_nav.show_web_tours</td>
<td>set the "Interactive Tours" section in the right navigation bar</td>
<td>true</td>
<td>true / false</td>
</tr>
<tr>
<td>skin.show_about_tab</td>
<td>show the "ABOUT" tab in the header</td>
Expand Down
3 changes: 3 additions & 0 deletions docs/deployment/customization/portal.properties-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ skin.right_nav.show_whats_new=
skin.right_nav.show_twitter=
```

#Interactive tours section
skin.right_nav.show_web_tours=

### Control the content of specific sections

Setting controlling the blurb: you can add any HTML code here that you want to visualize. This will be shown between the cBioPortal menu and the Query selector in the main page.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ window.legacySupportFrontendConfig = {
skinRightNavShowExamples : <%=GlobalProperties.showRightNavExamples()%>,
skinRightNavShowTestimonials : <%=GlobalProperties.showRightNavTestimonials()%>,
skinRightNavShowWhatsNew : <%=GlobalProperties.showRightNavWhatsNew()%>,
skinRightNavShowWebTours: <%=GlobalProperties.showRightNavInteractiveTour()%>,
skinRightNavExamplesHTML : '<%=GlobalProperties.getExamplesRightColumnHtml()%>',
skinRightNavExamplesHTML : '<%=GlobalProperties.getExamplesRightColumnHtml()%>',
skinRightNavWhatsNewBlurb : '<%=GlobalProperties.getRightNavWhatsNewBlurb()%>',
Expand Down
1 change: 1 addition & 0 deletions portal/src/main/webapp/config_service.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"skin.right_nav.show_whats_new",
"skin.right_nav.show_twitter",
"skin.right_nav.whats_new_blurb",
"skin.right_nav.show_web_tours",
"skin.show_about_tab",
"skin.show_data_tab",
"skin.show_faqs_tab",
Expand Down
Loading