Mercurial > hg > LGDataverses
diff src/main/webapp/template.xhtml @ 0:fcb8807fbd84
Fist commit!
| author | "jurzua <jurzua@mpiwg-berlin.mpg.de>" |
|---|---|
| date | Tue, 10 Mar 2015 15:15:30 +0100 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/webapp/template.xhtml Tue Mar 10 15:15:30 2015 +0100 @@ -0,0 +1,160 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://java.sun.com/jsf/html" + xmlns:f="http://java.sun.com/jsf/core" + xmlns:ice="http://www.icesoft.com/icefaces/component" + xmlns:dvn="/WEB-INF/tlds/dvn-components"> + <h:head> + <!-- page title param passed in by param --> + <title><ice:outputText nospan="true" value="#{pageTitle}"/></title> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> + <meta http-equiv="Content-Language" content="en"/> + <meta http-equiv="imagetoolbar" content="no"/> + <meta http-equiv="X-UA-Compatible" content="IE=edge"/> + <ice:outputText nospan="true" escape="false" rendered="#{VDCRequest.currentVDCId == null or (VDCRequest.currentVDCId != null and !VDCRequest.displayInFrame)}"> + <script type="text/javascript"> + // <![CDATA[ + // check to see if page is loaded in an iframe; if so, and "pop" out to top level + if(self != top){ + top.location.replace(self.location.href); + } + // ]]> + </script> + </ice:outputText> + <ice:outputText nospan="true" escape="false" rendered="#{VDCRequest.currentVDCId != null and VDCRequest.displayInFrame}"> + <script type="text/javascript"> + // <![CDATA[ + // check to see if page should be in an iframe (and is not); if so, redirect to containing site (specifiying sub page, if neeeded) + if(self == top){ + dvn_subpage = self.location.href; + if ( dvn_subpage.indexOf("/faces/") != -1) { + window.location.replace("#{VDCRequest.currentVDC.parentSite}?dvn_subpage=" + dvn_subpage.substring( dvn_subpage.indexOf("/faces/") ) ); + } else { + window.location.replace("#{VDCRequest.currentVDC.parentSite}"); + } + } + // ]]> + </script> + </ice:outputText> + <link rel="icon" type="image/png" href="/dvn/resources/images/favicondataverse.png"/> + <link rel="stylesheet" type="text/css" href="/dvn/resources/icefaces/dvn_rime/dvn_rime.css?v=#{VersionPage.versionNumber}"/> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/dvngeneral.css?v=#{VersionPage.versionNumber}"/> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/dvnspecific.css?v=#{VersionPage.versionNumber}"/> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/dvnhome.css?v=#{VersionPage.versionNumber}"/> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/dvnstudy.css?v=#{VersionPage.versionNumber}"/> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/orbit.css?v=#{VersionPage.versionNumber}"/> + <!-- IE SPECIFIC STYLESHEET --> + <ice:outputText escape="false" nospan="true" + value="<!--[if lte IE 8]> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/iefix.css?v=#{VersionPage.versionNumber}"/> + <![endif]-->"/> + <ice:outputText escape="false" nospan="true" + value="<!--[if IE 8]> + <link rel="stylesheet" type="text/css" href="/dvn/resources/css/ie8fix.css?v=#{VersionPage.versionNumber}"/> + <![endif]-->"/> + <!-- FRAMES SPECIFIC STYLESHEET --> + <script type="text/javascript"> + // <![CDATA[ + if (window != top) + { + document.write ('<link rel="stylesheet" type="text/css" href="/dvn/resources/css/dvnframes.css?v=#{VersionPage.versionNumber}"/>'); + } + // ]]> + </script> + <script type="text/javascript" src="/dvn/resources/javascript/EventCapture.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jquery.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jquery.truncator.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jquery.dimensions.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jquery.orbit.min.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jquery.tooltip.min.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jquery.cookie.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/jcap.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript" src="/dvn/resources/javascript/md5.js?v=#{VersionPage.versionNumber}"/> + <script type="text/javascript"> + // <![CDATA[ + jQuery.noConflict(); + jQuery(document).ready(function(){ + initInlineHelpTip(); + jQuery(".dvnstudystatusversionnote, .dvnCollectionDescription").truncate({max_length: 250}); + }); + function initInlineHelpTip(){ + jQuery('.dvnInlineHelpTip').tooltip({ + showURL: false, + showBody: " - " + }); + jQuery('.dvnInlineHmpgWidgetInfo').tooltip({ + showURL: false, + showBody: " *!* " + }); + + // Now remove the class, so when this method gets called again we don't include them + // (since calling .tooltip more than once seems to break the tooltips) + jQuery('.dvnInlineHelpTip').removeClass("dvnInlineHelpTip"); + + }; + // ]]> + </script> + <ice:outputText escape="false" nospan="true" + rendered="#{applicationScope.googleAnalyticsKey != null || MainLayoutBean.googleAnalyticsKey != null}" + value="#{(applicationScope.googleAnalyticsSourceCode != null) ? applicationScope.googleAnalyticsSourceCode : MainLayoutBean.googleAnalyticsSourceCode}"/> + </h:head> + <!-- this template is example 4.3 in the Facelets Shortcut --> + <h:body> + <f:loadBundle basename="Bundle" var="bundle"/> + <f:loadBundle basename="BundlePageInfo" var="bundlePageInfo"/> + <ui:insert name="metadata"><!-- Default Metadata --></ui:insert> + <ui:insert name="title"> + <!-- ****** THIS IS THE HEADER ******** --> + <ui:include src="views/CustomBanner.xhtml"/> + <!-- <ui:include src="views/ConnectedBanner.xhtml"/> --> + </ui:insert> + + <div class="dvn_wrapper" id="dvn_wrapper"> + <div class="dvn_content" id="content-frame"> + <!-- required to fix a bug in firefox where the connection status box can be displayed erroneously --> + <ice:outputConnectionStatus showPopupOnDisconnect="false"/> + <div jsfc="ice:panelGroup" styleClass="dvnWarningMessage dvnReadOnlyBlock" rendered="#{!empty VDCRequest.vdcNetwork.statusNotice }"> + <div class="dvnMsgBlockContainer"> + <p> + <ice:outputText id="statusNotice" value="#{VDCRequest.vdcNetwork.statusNotice}" escape="false" /> + </p> + </div> + </div> + <ui:insert name="title"> + <!-- *** MENUBAR (Included from template) *** --> + <ui:include src="views/Menubar.xhtml"/> + </ui:insert> + <div jsfc="ice:panelGroup" styleClass="#{!empty(VDCRender.flash.warningMessage) ? 'dvnWarningMessage' : 'dvnSuccessMessage'}" rendered="#{!empty VDCRender.flash.successMessage or !empty VDCRender.flash.warningMessage}"> + <div class="dvnMsgBlockContainer"> + <p> + <ice:outputText id="successMessage" value="#{VDCRender.flash.successMessage}" escape="false" rendered="#{!empty VDCRender.flash.successMessage}"/> + <ice:outputText id="warningMessage" value="#{VDCRender.flash.warningMessage}" escape="false" rendered="#{!empty VDCRender.flash.warningMessage}"/> + </p> + </div> + </div> + <ui:insert name="body">Default Body</ui:insert> + <div class="dvn_clear"></div> + </div> + </div> + <ui:insert name="footer"> + <ui:include src="views/CustomFooter.xhtml"/> + </ui:insert> + <!-- including the POPUPs below causes problems. - L.A. --> + <ui:include src="study/VersionNotesPopupFragment.xhtml"/> + <ui:include src="study/DeletePopupFragment.xhtml"/> + <!-- <ui:include src="study/FileAccessDeniedPopupFragment.xhtml"/> --> + <ice:outputText escape="false" nospan="true" + rendered="#{applicationScope.googleAnalyticsKey != null || MainLayoutBean.googleAnalyticsKey != null}" + value="#{(applicationScope.googleAnalyticsCode != null) ? applicationScope.googleAnalyticsCode : MainLayoutBean.googleAnalyticsCode}"/> + </h:body> + <script type="text/javascript"> + // <![CDATA[ + // TODO: remove this when we upgrade to Icefaces 3; this is a workaround to solve an issue where a request is being submitted when the page is unloaded + window.onbeforeunload = null; + // ]]> + </script> +</html> +<!-- Removing closing f:view: - L.A. +</f:view --> \ No newline at end of file
