60 lines
3.0 KiB
Plaintext
60 lines
3.0 KiB
Plaintext
|
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
|
||
|
% my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
|
||
|
% $year += 1900;
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title><%= title %></title>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<meta charset="utf-8" />
|
||
|
<meta name="mobile-web-app-capable" content="yes">
|
||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
||
|
<link rel="icon" type="image/png" href="<%= url_for('/img/favicon.png') %>">
|
||
|
<link rel="icon" sizes="128x128" href="<%= url_for('/img/lstu128.png') %>">
|
||
|
<link rel="icon" sizes="196x196" href="<%= url_for('/img/lstu196.png') %>">
|
||
|
<link rel="apple-touch-icon" href="<%= url_for('/img/lstu60.png') %>">
|
||
|
<link rel="apple-touch-icon" sizes="76x76" href="<%= url_for('/img/lstu76.png') %>">
|
||
|
<link rel="apple-touch-icon" sizes="120x120" href="<%= url_for('/img/lstu120.png') %>">
|
||
|
<link rel="apple-touch-icon" sizes="152x152" href="<%= url_for('/img/lstu152.png') %>">
|
||
|
<link rel="apple-touch-icon" sizes="128x128" href="<%= url_for('/img/lstu128.png') %>">
|
||
|
</head>
|
||
|
<body>
|
||
|
<div class="container">
|
||
|
<div class="float-left hidden-xs logo">
|
||
|
<img src="<%= url_for('/img/lstuviregul.png') %>" alt="lstu logo" width="100" height="100">
|
||
|
</div>
|
||
|
<%= link_to url_for('/') => (class => 'link_nocol') => begin %><h1 class="hennypenny">Et couic, le lien !</h1><% end %>
|
||
|
<p>
|
||
|
<small>© 2013 — <%= $year %> <%= link_to 'Luc Didry' => 'https://fiat-tux.fr' %> —
|
||
|
<%= l('License:') %> <%= link_to 'WTFPL' => 'http://www.wtfpl.net/' %> —
|
||
|
<%= link_to l('About') => 'https://framagit.org/luc/lstu/blob/master/README.md' %> —
|
||
|
<%= link_to 'API' => url_for('api') %> —
|
||
|
% if (defined(config('ldap')) || defined(config('htpasswd'))) {
|
||
|
% if (is_user_authenticated()) {
|
||
|
<%= link_to l('Statistics') => url_for('stats') %> —
|
||
|
<%= link_to l('Logout') => url_for('/logout')%>
|
||
|
% } else {
|
||
|
<%= link_to l('Signin') => url_for('/login') %>
|
||
|
% }
|
||
|
% } else {
|
||
|
<%= link_to l('Statistics') => url_for('stats') %>
|
||
|
% }
|
||
|
— <%= link_to l('Browser extensions') => url_for('extensions') %>
|
||
|
</small>
|
||
|
</p>
|
||
|
<%= content %>
|
||
|
</div>
|
||
|
% if ($self->app->mode eq 'production') {
|
||
|
%= stylesheet '/css/milli-lstu.min.css'
|
||
|
% } else {
|
||
|
%= stylesheet '/css/milligram.min.css'
|
||
|
%= stylesheet '/css/lstu.css'
|
||
|
%= stylesheet '/css/fontelico.css'
|
||
|
% }
|
||
|
% if (defined(stash('short')) && defined(stash('url'))) {
|
||
|
%= javascript url_for('lstu.js')
|
||
|
% }
|
||
|
</body>
|
||
|
</html>
|