
templates.molgenis-header.ftl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molgenis-core-ui Show documentation
Show all versions of molgenis-core-ui Show documentation
Spaghetti module containing core plugins and legacy UI components.
<#-- write HTML header and plugin menu -->
<#-- css (optional) list of additional stylesheets to include -->
<#-- js (optional) list of additional js files to include -->
<#include "resource-macros.ftl">
<#macro header css=[] js=[]>
<#assign cookieWall = app_settings.googleAnalyticsIpAnonymization == false && (app_settings.googleAnalyticsTrackingId?? || app_settings.googleAnalyticsTrackingIdMolgenis??) || (app_settings.googleAnalyticsTrackingId?? && !app_settings.googleAnalyticsAccountPrivacyFriendly) || (app_settings.googleAnalyticsTrackingIdMolgenis?? && !app_settings.googleAnalyticsAccountPrivacyFriendlyMolgenis)>
<#assign googleSignIn = app_settings.googleSignIn && app_settings.signUp && !app_settings.signUpModeration>
${app_settings.title?html}
<#if googleSignIn>
#if>
" type="image/x-icon">
" type="text/css">
" type="text/css">
" type="text/css" id="bootstrap-theme">
<#if app_settings.logoTopHref?has_content>
" type="text/css">
#if>
<#list css as css_file_name>
" type="text/css">
#list>
<#if app_settings.cssHref?has_content>
" type="text/css">
#if>
<#-- Bundle of third party JavaScript resources used by MOLGENIS: see minify-maven-plugin in molgenis-core-ui/pom.xml for bundle contents -->
">
">
">
">
">
">
">
">
">
<#if googleSignIn>
<#if authenticated?? && authenticated>
<#-- Include script tag before platform.js script loading, else onLoad could be called before the onLoad function is available -->
#if>
#if>
<#-- required by dalliance-compiled.js to load the genomebrowsers in IE9 -->
">
<#list js as js_file_name>
">
#list>
<#include "molgenis-header-tracking.ftl"><#-- before closing tag -->
<#-- Navbar menu -->
<#if menu_id??>
<#if !(plugin_id??)>
<#assign plugin_id="NULL">
#if>
<@topmenu molgenis_ui.getMenu() plugin_id pluginid_with_query_string/>
#if>
<#-- Start application content -->
<#if errorMessage??>
<#assign message = errorMessage>
<#assign messageType = "error">
<#elseif warningMessage??>
<#assign message = warningMessage>
<#assign messageType = "warning">
<#elseif successMessage??>
<#assign message = successMessage>
<#assign messageType = "success">
<#elseif infoMessage??>
<#assign message = infoMessage>
<#assign messageType = "info">
#if>
<#if messageType??>
#if>
<#if plugin_settings_can_write?? && plugin_settings_can_write>
#if>
#macro>
<#-- Topmenu -->
<#--TODO refactor to remove depency on 'Home'-->
<#macro topmenu menu plugin_id pluginid_with_query_string>
<#-- close navbar -->
#macro>
<#-- dropdown for entity -->
<#macro dropdown sub_menu menu_counter>
<#assign this_menu_counter = menu_counter + 1>
<#list sub_menu.items as sub_item>
<#if sub_item.type != "MENU">
style="margin-left: ${this_menu_counter * 12}px;"#if> href="/menu/${sub_menu.id?url('UTF-8')}/${sub_item.url?html}">${sub_item.name?html}
<#elseif sub_item.type == "MENU">
style="margin-left: ${this_menu_counter * 12}px;"#if> href="#">${sub_item.name?html}
<@dropdown sub_item this_menu_counter />
<#assign this_menu_counter = this_menu_counter - 1>
#if>
#list>
#macro>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy