Commit 8eb2c200 authored by Luc Didry's avatar Luc Didry
Browse files

Put informations on a separate page for those with no script

parent be80462d
......@@ -132,6 +132,11 @@ sub startup {
}
)->name('index');
$r->get('/about' => sub {
shift->render(template => 'about');
}
)->name('about');
$r->post('/' => sub {
my $c = shift;
my $upload = $c->param('file');
......
......@@ -50,6 +50,7 @@ our %Lexicon = (
'7_days' => '7 days',
'30_days' => '30 days',
'1_year' => 'One year',
'back-to-index' => 'Back to homepage'
);
1;
......@@ -50,6 +50,7 @@ our %Lexicon = (
'7_days' => '7 jours',
'30_days' => '30 jours',
'1_year' => 'Un an',
'back-to-index' => 'Retour à la page d\'accueil'
);
1;
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
% my $scheme = (defined(config('https')) && config('https')) ? 'https' : 'http';
<div class="modal-body">
<%==l 'informations-body', url_for('/')->base->scheme($scheme)->to_abs().'/', config('contact') %>
<%= link_to url_for('index') => ( class => "btn btn-primary btn-lg" ) => begin %><%=l 'back-to-index' %><% end%>
</div>
......@@ -53,6 +53,7 @@
&copy; 2014 <%= link_to 'http://www.fiat-tux.fr' => begin %>Luc Didry<% end %> — 
<%=l 'license' %> <%= link_to 'https://www.gnu.org/licenses/agpl-3.0.html' => begin %>AGPL<% end %> — 
<span class="jsonly"><a data-toggle="modal" href="#myModal"><%=l 'informations' %></a> — </span>
<noscript><%= link_to url_for('about') => begin %><%=l 'informations' %><% end %> — </noscript>
<%= link_to 'https://github.com/ldidry/lutim' => (title => l 'fork-me') => begin %><i class="lead icon icon-github-circled"></i><% end %> 
<%= link_to $twitter_url => (title => l 'share-twitter') => begin %><i class="lead icon icon-touiteur"></i><% end %> 
<%= link_to 'https://flattr.com/submit/auto?user_id=_SKy_&url='.$url.'&title=LUTIm&category=software' => (title => 'Flattr this') => begin %><i class="lead icon icon-flattr"></i><% end %> 
......@@ -77,14 +78,6 @@
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<noscript>
<div class="modal-header">
<h3 class="modal-title">LUTIm</h3>
</div>
<div class="modal-body">
<%==l 'informations-body', url_for('/')->base->scheme($scheme)->to_abs().'/', config('contact') %>
</div>
</noscript>
</div>
% if (defined(config('piwik_img'))) {
<img src="<%== config('piwik_img') %>" style="border:0" alt="" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment