summaryrefslogtreecommitdiffstats
path: root/tracker/New_template_for_the_wiki/0001-Bootstrap-template.patch
blob: 96daf15646e83ada0a7409c14605a94cf0e4bd08 (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
From 200490842426b70eb2d5fbcc9e8211e9b0845b1f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20D=C3=A9trez?= <gregoire.detrez@gu.se>
Date: Tue, 7 Jan 2014 18:20:07 +0100
Subject: [PATCH] Bootstrap template

---
 templates/page.tmpl | 106 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 106 insertions(+)
 create mode 100644 templates/page.tmpl

diff --git a/templates/page.tmpl b/templates/page.tmpl
new file mode 100644
index 0000000..023121c
--- /dev/null
+++ b/templates/page.tmpl
@@ -0,0 +1,106 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Fripost | democratisk e-post</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <!-- Bootstrap -->
+    <link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/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]-->
+  </head>
+  <style>
+    .navbar-fripost {
+      background-color: inherit;
+      border-bottom: black thin solid;
+      border-radius: 0;
+      margin-top: 1em
+    }
+    .navbar-fripost a {
+      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="#">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="<TMPL_VAR BASEURL>ga-med">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>
+              <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 id="content" style="padding:0 1em 0">
+      <TMPL_VAR CONTENT>
+
+      <div class="row"><div class="col-md-6">
+        <ol class="breadcrumb">
+          <TMPL_LOOP NAME="PARENTLINKS">
+          <li><a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a></li>
+          </TMPL_LOOP>
+          <li class="active"><TMPL_VAR TITLE>
+        </ol>
+      </div>
+
+      <div class="btn-toolbar col-md-6" role="toolbar">
+        <TMPL_IF HAVE_ACTIONS>
+          <div class="btn-group">
+            <TMPL_IF EDITURL>
+              <a class="btn btn-default" href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a>
+            </TMPL_IF>
+            <TMPL_IF RECENTCHANGESURL>
+              <a class"btn btn-default" href="<TMPL_VAR RECENTCHANGESURL>">RecentChanges</a></li>
+            </TMPL_IF>
+            <TMPL_IF HISTORYURL>
+              <a class"btn btn-default" href="<TMPL_VAR HISTORYURL>">History</a></li>
+            </TMPL_IF>
+            <TMPL_IF GETSOURCEURL>
+              <a class"btn btn-default" href="<TMPL_VAR GETSOURCEURL>">Source</a></li>
+            </TMPL_IF>
+            <TMPL_IF PREFSURL>
+              <a class"btn btn-default" href="<TMPL_VAR PREFSURL>">Preferences</a></li>
+            </TMPL_IF>
+            </ul>
+        </div>
+        </TMPL_IF>
+      </div>
+      </div>
+    </div>
+  </div>
+
+<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
+<script src="https://code.jquery.com/jquery.js"></script>
+<!-- Include all compiled plugins (below), or include individual files as needed -->
+<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
+</body>
+</html>
-- 
1.8.3.2