Debian Codegraph @

hawtjni-website/src/WEB-INF/scalate/layouts/default.jade

raw
1 !!! Basic
2 :plain
3 <!--
4 Licensed to the Apache Software Foundation (ASF) under one or more
5 contributor license agreements. See the NOTICE file distributed with
6 this work for additional information regarding copyright ownership.
7 The ASF licenses this file to You under the Apache License, Version 2.0
8 (the "License"); you may not use this file except in compliance with
9 the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 Architecture
19 -->
20 - response.setContentType("text/html")
21 -@ var title : String = ""
22 -@ var body: String = null
23 -@ var overview: String = null
24 -@ var spot: String = null
25 -@ var blog: String = null
26 -@ var head: String = null
27 - val include_console = engine.isDevelopmentMode && engine.resourceLoader.exists("/org/fusesource/scalate/console/console_head.scaml")
28 html(lang="en")
29 head
30 meta(content="text/html; charset=utf-8" http-equiv="Content-Type")
31 meta(content="#{project_slogan}" name="description")
32 meta(content="#{project_keywords}" name="keywords")
33 meta(content="#{project_name}" name="author")
34 link(type="text/css" rel="stylesheet" href={uri("/styles/impact/css/pygmentize.css")})
35 link(type="text/css" rel="stylesheet" href={uri("/styles/impact/css/site.css")})
36
37 - if (head!=null)
38 !~~ head
39
40 -#
41 - if (include_console)
42 - include("/org/fusesource/scalate/console/console_head.scaml")
43 link(href={uri("/css/scalate/console.css")} rel="stylesheet" type="text/css")
44
45 title= title
46 body
47 div#navigation
48 div.wrapper
49 - include("/_navigation.ssp.md")
50
51 - if (overview!=null)
52 div#overview
53 div.wrapper
54 -if ( project_logo!=null )
55 div.logo
56 img(src="#{uri(project_logo)}" alt="#{project_name} logo")
57 div.message
58 !~~ overview
59
60 - if (spot!=null)
61 div#spot
62 div.wrapper
63 !~~ spot
64
65 - if (body!=null)
66 div#content
67 div.wrapper
68 !~~ body
69
70 - if (blog!=null)
71 div#blog
72 div.wrapper
73 !~~ blog
74
75 -#
76 - if (include_console)
77 = include("/org/fusesource/scalate/console/console.scaml")
78 -#
79 :javascript
80 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
81 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
82 </script>
83 <script type="text/javascript">
84 try {
85 var pageTracker = _gat._getTracker("UA-1347593-12");
86 pageTracker._trackPageview();
87 } catch(err) {}