summaryrefslogtreecommitdiffstats
path: root/templates/page.tmpl
blob: 5c5c0a86b414c8ff10191a3da0d571b41f24ec56 (plain)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html>
  <head>
    <title><TMPL_VAR TITLE></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta charset="utf-8" />
    <!-- Bootstrap -->
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <TMPL_IF FAVICON>
    <link rel="icon" href="<TMPL_VAR BASEURL><TMPL_VAR FAVICON>" type="image/x-icon" />
    </TMPL_IF>
    <TMPL_IF EDITURL>
    <link rel="alternate" type="application/x-wiki" title="Edit this page" href="<TMPL_VAR EDITURL>" />
    </TMPL_IF>
    <TMPL_IF FEEDLINKS><TMPL_VAR FEEDLINKS></TMPL_IF>
    <TMPL_IF RELVCS><TMPL_VAR RELVCS></TMPL_IF>
    <TMPL_IF META><TMPL_VAR META></TMPL_IF>
  </head>
  <style>
    .navbar-fripost {
      background-color: inherit;
      border-bottom: black thin solid;
      border-radius: 0;
      margin-top: 1em
    }
    .navbar-fripost a {
      color: black;
    }
    .navbar-fripost .navbar-toggle .icon-bar {
      background-color: black;
    }
  </style>
  <body>
  <div class="container">
    <nav class="navbar navbar-fripost" role="navigation">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="/"><b>fripost</b> | democratisk e-post</a>
      </div>

      <!-- Collect the nav links, forms, and other content for toggling -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
          <li class="active"><a href="https://fripost.org/">Hem</a></li>
          <li><a href="<TMPL_VAR BASEURL>om/">Om</a></li>
          <li><a href="<TMPL_VAR BASEURL>faq/">FAQ</a></li>
          <li><a href="https://fripost.org/medlemskap.html">Gå med</a></li>
          <li><a href="<TMPL_VAR BASEURL>kontakt/">Kontakt</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li>
            <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> Members <b class="caret"></b></a>
            <ul class="dropdown-menu">
              <li><a href="https://mail.fripost.org/"><span class="glyphicon glyphicon-envelope"></span> Webmail</a></li>
              <li><a href="https://antilop.fripost.org/mailman/listinfo"><span class="glyphicon glyphicon-list"></span> Mailing lists</a></li>
              <!-- later...
              <li class="divider"></li>
              <li><a href="#"><span class="glyphicon glyphicon-wrench"></span> Admin panel</a></li>
              -->
            </ul>
          </li>
        </ul>
      </div><!-- /.navbar-collapse -->
    </nav>

  <div class="row">
    <div class="col-md-8 col-md-offset-2">
      <!-- ---------------------------------------------------------------- -->
      <!-- HEADER -->
      <div class="row">
        <div class="col-md-8 col-sm-8 col-xs-6">
          <TMPL_LOOP PARENTLINKS>
            <a href="<TMPL_VAR URL>"><TMPL_VAR PAGE></a>
            <span class="text-muted">»</span>
          </TMPL_LOOP>
          <TMPL_VAR TITLE>
          <span class="text-muted">»</span>
        </div>
        <TMPL_IF EDITURL>
        <div class="col-md-4 col-sm-4 col-xs-6 text-right">
          <a href="<TMPL_VAR EDITURL>" rel="nofollow">
            <span class="glyphicon glyphicon-pencil"></span> Edit this page
          </a>
        </div>
        </TMPL_IF>
      </div>
      <hr />

      <!-- ---------------------------------------------------------------- -->
      <!-- CONTENT -->
      <TMPL_VAR CONTENT>
      <hr />

      <!-- ---------------------------------------------------------------- -->
      <!-- FOOTER -->
      <p>
        <TMPL_IF TAGS>
        Tags:
          <TMPL_LOOP TAGS>
            <TMPL_VAR LINK>
          </TMPL_LOOP>
        </TMPL_IF>
        <TMPL_IF MTIME>
          <span class="glyphicon glyphicon-calendar"></span> Last modified <em><TMPL_VAR MTIME></em>
        </TMPL_IF>
        <TMPL_IF HISTORYURL>
          | <span class="glyphicon glyphicon-time"></span> <a href="<TMPL_VAR HISTORYURL>">History</a>
        </TMPL_IF>
        <TMPL_IF GETSOURCEURL>
          | <b>&lt;&gt;</b> <a href="<TMPL_VAR GETSOURCEURL>">Show source</a>
        </TMPL_IF>
        <TMPL_IF GETSOURCEURL>
          | <span class="glyphicon glyphicon-comment"></span><a href="<TMPL_VAR DISCUSSIONURL>"> Discussion</a>
        </TMPL_IF>
      </p>

    </div>
  </div>

  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <script src="/static/js/jquery-2.1.1.min.js"></script>
  <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="/static/js/bootstrap.min.js"></script>
</body>
</html>