diff options
author | Grégoire Détrez <gregoire.detrez@gu.se> | 2014-01-07 18:20:07 +0100 |
---|---|---|
committer | Grégoire Détrez <gregoire.detrez@gu.se> | 2014-09-15 20:02:40 +0200 |
commit | 568a29b25fbdbb386fd9b0b3402cb426edb5df26 (patch) | |
tree | b80faf7389d26f12653310760a197ef205e31696 /templates | |
parent | 1c91a92cba6b42bbb8f24cdb135e76a619817e1d (diff) |
New bootstrap template
Diffstat (limited to 'templates')
-rw-r--r-- | templates/page.tmpl | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl new file mode 100644 index 0000000..8fa0016 --- /dev/null +++ b/templates/page.tmpl @@ -0,0 +1,160 @@ +<!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="/bootstrap-3.2.0/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="https://fripost.org/organisation.html">Om</a></li> + <li><a href="https://fripost.org/faq.html">FAQ</a></li> + <li><a href="https://fripost.org/medlemskap.html">Gå med</a></li> + <li><a href="https://fripost.org/kontakt.html">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 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> + <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> + <TMPL_IF EDITURL> + <a class="btn btn-default" href="<TMPL_VAR EDITURL>" rel="nofollow">Edit</a> + </TMPL_IF> + </div> + </div> + <hr /> + + <!-- ---------------------------------------------------------------- --> + <!-- CONTENT --> + <TMPL_VAR CONTENT> + <hr /> + + <!-- ---------------------------------------------------------------- --> + <!-- FOOTER --> + <p> + <TMPL_IF TAGS> + Tags: + <TMPL_LOOP TAGS> + <TMPL_VAR LINK> + </TMPL_LOOP> + </TMPL_IF> + <i> + <span class="glyphicon glyphicon-calendar"></span> Last modified <TMPL_VAR MTIME> + | <span class="glyphicon glyphicon-time"></span> <a href="<TMPL_VAR HISTORYURL>">History</a> + | <b><></b> <a href="<TMPL_VAR GETSOURCEURL>">Show source</a> + | <span class="glyphicon glyphicon-comment"></span><a href="<TMPL_VAR DISCUSSIONURL>"> Discussion</a> + </i> + </p> + + </div> + </div> + + + + <div id="content" style="padding:0 1em 0"> + <!-- Tab bar --> + <TMPL_IF HAVE_ACTIONS> + <div class="btn-toolbar" role="toolbar"> + <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> + </TMPL_IF> + <TMPL_IF HISTORYURL> + <a class"btn btn-default" href="<TMPL_VAR HISTORYURL>">History</a> + </TMPL_IF> + <TMPL_IF GETSOURCEURL> + <a class"btn btn-default" href="<TMPL_VAR GETSOURCEURL>">Source</a> + </TMPL_IF> + <TMPL_IF PREFSURL> + <a class"btn btn-default" href="<TMPL_VAR PREFSURL>">Preferences</a> + </TMPL_IF> + </div> + <div> + </TMPL_IF> + + + </div> + </div> + + <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> + <script src="/jquery-2.1.1.min.js"></script> + <!-- Include all compiled plugins (below), or include individual files as needed --> + <script src="/bootstrap-3.2.0/js/bootstrap.min.js"></script> +</body> +</html> |