"Fossies" - the Fresh Open Source Software Archive

Member "PURELIB/trac/templates/layout.html" (27 Aug 2019, 5724 Bytes) of package /windows/misc/Trac-1.4.win-amd64.exe:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 {# Copyright (C) 2006-2014 Edgewall Software
    2 
    3   This software is licensed as described in the file COPYING, which
    4   you should have received as part of this distribution. The terms
    5   are also available at https://trac.edgewall.org/wiki/TracLicense.
    6 
    7   This software consists of voluntary contributions made by many
    8   individuals. For the exact contribution history, see the revision
    9   history and logs, available at https://trac.edgewall.org/.
   10 #}
   11 # extends (chrome.theme)
   12 # import "macros.html" as jmacros with context
   13 <!DOCTYPE html>
   14 <html>
   15   <head>
   16     # block head
   17     <!-- # block head (content inherited from layout.html) -->
   18     <title>
   19     #  block title
   20     – ${project.name or 'Trac'}
   21     #  endblock title
   22     </title>
   23 
   24     #   if chrome.content_type == 'text/html':
   25     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   26     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
   27     #   endif
   28 
   29     #   for meta in chrome.metas:
   30     <meta ${meta|htmlattr} />
   31     ## jinjacheck: "attribute content" OK
   32     #   endfor
   33 
   34     <!--[if IE]><script>
   35         if (/^#__msie303:/.test(window.location.hash))
   36         window.location.replace(window.location.hash.replace(/^#__msie303:/, '#'));
   37         </script><![endif]-->
   38 
   39     #   if chrome.links:
   40     #     for rel, links in chrome.links.items():
   41     #       for link in links:
   42     <link rel="${rel}" ${link|htmlattr} />
   43     #       endfor
   44     #     endfor
   45     #   endif
   46 
   47     <noscript>
   48       <style>
   49         .trac-noscript { display: none !important }
   50       </style> {# jinjacheck: "got (style )" OK #}
   51     </noscript>
   52     #   if trac_error_rendering is undefined and 'SEARCH_VIEW' in perm:
   53     <link type="application/opensearchdescription+xml" rel="search"
   54           href="${href.search('opensearch')}"
   55           title="${_('Search %(project)s', project=project.name)}"/>
   56     #   endif
   57 
   58     #   if chrome.script_data:
   59     <script>
   60       #   for key, value in chrome.script_data.iteritems():
   61       var ${key}=${to_json(value)|safe};
   62       #   endfor
   63     </script>
   64     #   endif
   65 
   66     #   for script in chrome.scripts:
   67     ${script.prefix}<script${script.attrs|htmlattr}></script>${script.suffix}
   68     #   endfor
   69 
   70     <script>
   71       jQuery(function($) {
   72         # if chrome.warnings or chrome.notices:
   73         $(".trac-close-msg").show().click(function () {
   74           $(this).closest(".system-message").hide();
   75           return false;
   76         });
   77         # endif
   78         $(".trac-autofocus").focus();
   79         $(".trac-target-new").attr("target", "_blank");
   80         if ($.ui) { /* is jquery-ui added? */
   81           $(".trac-datepicker:not([readonly])")
   82             .prop("autocomplete", "off").datepicker();
   83           // Input current date when today is pressed.
   84           var _goToToday = $.datepicker._gotoToday;
   85           $.datepicker._gotoToday = function(id) {
   86             _goToToday.call(this, id);
   87             this._selectDate(id)
   88           };
   89           $(".trac-datetimepicker:not([readonly])")
   90             .prop("autocomplete", "off").datetimepicker();
   91           $("#main").addClass("trac-nodatetimehint");
   92         }
   93         $(".trac-disable").disableSubmit(".trac-disable-determinant");
   94         setTimeout(function() { $(".trac-scroll").scrollToTop() }, 1);
   95         $(".trac-disable-on-submit").disableOnSubmit();
   96       });
   97     </script>
   98     <!--   # include 'site_head.html' (layout.html) -->
   99     #   include 'site_head.html' ignore missing
  100     <!--   end of site_head.html -->
  101     <!-- # endblock head (content inherited from layout.html) -->
  102     # endblock head
  103     ## jinjacheck: "got (title meta meta meta link noscript link script script script )" OK
  104   </head>
  105 
  106   <body>
  107     # block content
  108     <!-- # block content (content inherited from layout.html) -->
  109     {# ------------------------------------------------------------------
  110 
  111     Note: write the extending template like this:
  112 
  113     ## ------------------
  114     # block content
  115 
  116     <div id="content">
  117     (your content)
  118     </div>
  119 
  120     ${ super() }
  121 
  122     # endblock content
  123     ## ------------------
  124 
  125     The user content should typically go first, as evaluating the
  126     expressions it contains may modify the chrome.late_links, which
  127     are used afterwards in the default content. This default content
  128     should be output via the call to super(), placed after the user
  129     content.
  130 
  131     ------------------------------------------------------------------ #}
  132     #   if chrome.late_links:
  133     <script>
  134       #   for link in chrome.late_links.get('stylesheet', []):
  135       jQuery.loadStyleSheet("${link.href}", "${link.type}");
  136       #   endfor
  137     </script>
  138     #   endif
  139     #   if chrome.late_script_data:
  140     <script>
  141       #   for key, value in chrome.late_script_data.iteritems():
  142       var ${key}=${to_json(value)|safe};
  143       #   endfor
  144     </script>
  145     #   endif
  146     #   for script in chrome.late_scripts:
  147     ${script.prefix}<script>
  148       jQuery.loadScript("${script.attrs.src}", "${script.attrs.type}");
  149     </script>${script.suffix}
  150     #   endfor
  151 
  152     #   if 'alternate' in chrome.links:
  153     <div id="altlinks">
  154       <h3>${_("Download in other formats:")}</h3>
  155       <ul>
  156         # for link in chrome.links.alternate:
  157         <li class="${first_last(loop.index0, chrome.links.alternate)}">
  158           <a rel="nofollow" href="${link.href}"
  159              ${{'class': classes(link.class)}|htmlattr}>
  160             ${link.title}</a>
  161         </li>
  162         # endfor
  163       </ul>
  164     </div>
  165     #   endif
  166     <!-- # endblock content (content inherited from layout.html) -->
  167     # endblock content
  168   </body>
  169 </html>