c30c3ee6d04529b1e805b5f7e8f35187f0357c51 kate Wed Jan 11 17:26:04 2017 -0800 Implement Apache Alias and SetEnv approach to handling non-standard document root dir. refs #18621 diff --git src/hg/htdocs/template.html src/hg/htdocs/template.html index b1f1c83..fe30cf1 100755 --- src/hg/htdocs/template.html +++ src/hg/htdocs/template.html @@ -1,30 +1,36 @@ -<!doctype html> +<!DOCTYPE html> <!-- template.html: Example HTML for a Genome Browser static page --> <!-- Style recommendations 1. Capitalization: use only lowercase for HTML element names, attributes and values 2. Quotes: Use double quotes for attribute values 3. Whitespace: Use a new line for every block list or table element 4. Indentation: Indent every child element 2 spaces 5. Special characters: Don't use entity references (set editor to UTF-8), except < & --> <!-- Page header --> -<!--#set var="TITLE" value="GB Static Page Template" --> +<!--#set var="title" value="GB Static Page Template" --> + +<!-- Boilerplate to support mirror sites with non-standard GB docs install --> +<!--#if expr="$GB_DOCUMENT_ROOT" --> + <!--#include virtual="/gbDocs/gbPageStart.html" --> +<!--#else --> <!--#include virtual="/gbPageStart.html" --> +<!--#endif --> <!-- Page content --> <h1>Sample Genome Browser Static Page</h1> <p> This is a standard paragraph ('p' element) of explanatory text. <em>The remainder of this text is just filler</em>. Follow these citation guidelines when using applications from the Genome Browser tool suite or data from the UCSC Genome Browser database in a research work that will be published in a journal or on the Internet. In addition to the relevant paper, please include a reference to the Genome Browser website in your manuscript: <a href="index.html" target=_blank>http://genome.ucsc.edu/</a>. Be sure to mention the release date of the genome assembly used in your work to faciliate the examination of your data by reviewers and the readers. Please do <strong>not</strong> include references to our development servers @@ -116,16 +122,21 @@ <p> Use the 'img' tag to include the picture file, which is typically in .jpg or .png format. Images should normally have their 'width' and 'height' attributes set in the 'img' tag. To right-align the image add the 'gbsAlignRight' class. The caption is a 'p' element, which is assigned the 'gbsCaption' class. </p> <div class="row"> <div class="col-md-12"> <img src= "images/gbstaff16.jpg" width=499 height=299 alt="Genome Browser staff"> <p class="gbsCaption"> Browser staff in native habitat. </p> </div> </div> -<!--#include virtual="/gbPageEnd.html"--> +<!--#if expr="$GB_DOCUMENT_ROOT" --> + <!--#include virtual="/gbDocs/gbPageEnd.html" --> +<!--#else --> + <!--#include virtual="/gbPageStart.html" --> +<!--#endif --> +