summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 0828ba4b2c0ecd6d748425e8f67be9d13afa543f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>dev.spline.de - {% block title %}Welcome{% endblock %}</title>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <link href="/css/layout.css" rel="stylesheet" type="text/css" />
  <!--[if lte IE 7]>
  <link href="/css/patches/patch_layout.css" rel="stylesheet" type="text/css" />
  <![endif]-->
  <script src="/js/form.js" type="text/javascript"></script>
</head>
<body>
  <div id="page_margins">
    <div id="page">
      <div id="header">
        <div class="subcolumns">
          <div class="c50l">
            <a href="/"><img id="logo" src="/img/logo.png" alt="logo" /></a>
          </div>
          <div class="c50r" style="text-align: right;">
            {% if session.login %}
            you are logged in as <em>{{ session.login }}</em>
            {% endif %}
          </div>
        </div>
      </div>
      {% if info_msg %}
      <div id="info">
        {{ info_msg }}
      </div>
      {% endif %}
      {% if error_msg %}
      <div id="error">
        {{ error_msg }}
      </div>
      {% endif %}
      <div id="main">
        <div id="col1">
          <div id="col1_content" class="clearfix">
            <div class="nav navbox">
              <a href="/trac/">Project Listing</a>
            </div>
            {% if session.login %}
            <div id="nav" class="nav navbox">
              <a href="new_project">New Project</a>
              <a href="projects">My Projects</a>
              <a href="profile">My Profile</a>
              <a href="logout">Logout</a>
            </div>
            {% else %}
            <div id="login" class="navbox">
              <p>Sign in with your dev.spline.de account</p>
              <form action="login" method="post">
                <input id="login_input" type="text" name="login" value="login" onfocus="clearInput('login_input')" />
                <input id="password_input" type="password" name="password" value="password" onfocus="clearInput('password_input')" />
                <input type="submit" value="Login"/>
              </form>
              <p><a href="password">I forgot my password</a></p>
            </div>
            <div id="register" class="navbox">
              <p>Don't have a dev.spline.de account?<br/><br/>
              <a href="register">Create an account now</a></p>
            </div>
            {% endif %}
          </div>
        </div>
        <div id="col3">
          <div id="col3_content" class="clearfix">
            {% block content %}{% endblock %}
          </div>
          <!-- IE Column Clearing -->
          <div id="ie_clearing"> &#160; </div>
        </div>
      </div>
      <!-- begin: #footer -->
      <div id="footer">
        <div class="subcolumns">
          <div class="c50l">
            dev.spline.de is operated by <a href="http://www.spline.de/">spline</a>
          </div>
          <div class="c50r" style="text-align: right">
            <a href="/">home</a> |
            <a href="/account/imprint">imprint</a>
          </div>
        </div>
      </div>
      {% if debug_msg %}
      <div id="debug">
        {{ debug_msg }}
      </div>
      {% endif %}
    </div>
  </div>
</body>
</html>