source: OpenWorkouts-current/ow/templates/base.pt @ affc3f7

currentfeature/docs
Last change on this file since affc3f7 was affc3f7, checked in by borja <borja@…>, 5 years ago

Added unminified main.css

Added forms.css for html form specific styles

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<!DOCTYPE html>
2
3<html xml:lang="en"
4      xmlns:tal="http://xml.zope.org/namespaces/tal"
5      xmlns:metal="http://xml.zope.org/namespaces/metal"
6      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
7      i18n:domain="OpenWorkouts"
8      metal:define-macro="base"
9      tal:attributes="lang request.locale_name">
10
11  <head>
12
13    <meta charset="utf-8">
14    <meta http-equiv="X-UA-Compatible" content="IE=edge">
15    <meta name="viewport" content="width=device-width, initial-scale=1.0">
16    <meta name="description"
17          content="OpenWorkouts, tracking your workouts openly">
18    <meta name="author" content="The OpenWorkouts Project">
19
20    <metal:header-metas metal:define-slot="header-metas"></metal:header-metas>
21
22    <link rel="shortcut icon"
23          href="${request.static_url('ow:static/pyramid-16x16.png')}">
24
25    <!--! This should be 182x182px-->
26    <link rel="apple-touch-icon"
27          href="${request.static_url('ow:static/pyramid-16x16.png')}">
28
29    <title>
30      OpenWorkouts |
31      <metal:head-title metal:define-slot="head-title"></metal:head-title>
32    </title>
33
34    <link rel="stylesheet"
35          href="${request.static_url('ow:static/css/main.css')}" />
36
37    <link rel="stylesheet"
38          href="${request.static_url('ow:static/css/forms.css')}" />
39
40    <link rel="stylesheet"
41          href="${request.static_url('ow:static/css/openworkouts.css')}" />
42
43    <metal:css metal:define-slot="css"></metal:css>
44
45    <metal:header-js metal:define-slot="header-js"></metal:header-js>
46
47  </head>
48
49  <body class="is-login">
50
51    <div class="page">
52
53      <header class="header-content">
54        <h1 class="logo">
55          <a href="" tal:attributes="href request.resource_url(request.root)">
56            <span class="logo-open">Open</span><span class="logo-work">work</span><span class="logo-outs">outs</span>
57          </a>
58          <!--! <metal:title metal:define-slot="title"></metal:title> -->
59        </h1>
60        <p class="description">tracking your workouts openly</p>
61
62        <metal:menu tal:condition="request.authenticated_userid"
63                    tal:define="current_user request.authenticated_userid">
64
65          <nav class="nav-site">
66            <!--! renderer_name contains the name of the template rendered at
67              view-level, so we can use that to know in which sections is the
68              current user now -->
69            <ul>
70              <li class=""
71                  tal:attributes="class 'is-active' if 'dashboard' in renderer_name else ''">
72                <a href="" i18n:translate=""
73                   tal:attributes="href request.resource_url(request.root)">
74                  Dashboard</a>
75              </li>
76              <li class=""
77                  tal:attributes="class 'is-active' if 'profile' in renderer_name else ''">
78                <a href="" i18n:translate=""
79                   tal:attributes="href request.resource_url(request.root, current_user, 'profile')">
80                  My profile</a>
81              </li>
82              <li class="add-workout">
83                <a href="#"><span i18n:translate="">Add Workout</span></a>
84                <ul>
85                  <li>
86                    <a href="" i18n:translate=""
87                       tal:attributes="href request.resource_url(request.root, current_user, 'add-workout')">
88                      Upload file</a>
89                  </li>
90                  <li>
91                    <a href="" i18n:translate=""
92                       tal:attributes="href request.resource_url(request.root, current_user, 'add-workout-manually')">
93                      Add manually</a>
94                  </li>
95                </ul>
96              </li>
97              <li>
98                <a href="" i18n:translate=""
99                   tal:attributes="href request.resource_url(request.root, 'logout')">
100                  Log out
101                </a>
102              </li>
103            </ul>
104          </nav>
105        </metal:menu>
106      </header>
107
108      <metal:content metal:define-slot="content"></metal:content>
109
110    </div>
111
112    <script src="${request.static_url('ow:static/components/jquery/jquery.js')}"></script>
113
114    <metal:body-js metal:define-slot="body-js"></metal:body-js>
115
116  </body>
117
118</html>
Note: See TracBrowser for help on using the repository browser.