Commit 2d914f54 authored by  JosephK's avatar JosephK

Liberapay + tabpanel en dur (pour l'i18n)

parent bbc01b09
......@@ -137,5 +137,7 @@ h4 + hr {
content: "\f1f8";
}
#liberapay-img {
margin-top: 0px;
width: 14px;
height: 18px;
......@@ -2,15 +2,7 @@ $(document).ready(function(){
if(/myfiles/i.test(location.href)) {
$('main > .row > .col-md-12').prepend(
'<div role="tabpanel">'+
'<ul class="nav nav-tabs" role="tablist">'+
'<li role="presentation"><a href="/#send-files"><i class="fa fa-fw fa-send"></i> Envoyer des fichiers</a></li>'+
'<li role="presentation" ><a href="/#send-url"><i class="fa fa-fw fa-link"></i> Envoyer depuis une URL</a></li>'+
'<li role="presentation" class="active pull-right"><a href="/myfiles"><i class="fa fa-fw fa-history"></i> Mes images</a></li>'+
'</ul>'+
'</div>'
);
$('#nav-myfiles').addClass('active');
$('h4').addClass('h2'); // devrait être en h2 si on respecte la hierarchie
......@@ -41,21 +33,29 @@ $(document).ready(function(){
} else if(/gallery/i.test(location.href)) {
$('main > .row > .col-md-12 > [role="tabpanel"]').remove();
$('#download-all').removeClass('col-sm-12').parent().addClass('text-center');
} else {
$('main > .row > .col-md-12 > .jsonly')
.wrapInner('<div class="tab-content"></div>')
.prepend(
'<div role="tabpanel">'+
'<ul class="nav nav-tabs" role="tablist">'+
'<li role="presentation" class="active"><a href="#send-files" aria-controls="send-files" role="tab" data-toggle="tab" aria-expanded="true"><i class="fa fa-fw fa-send"></i> Envoyer des fichiers</a></li>'+
'<li role="presentation" ><a href="#send-url" aria-controls="send-url" role="tab" data-toggle="tab" aria-expanded="false"><i class="fa fa-fw fa-link"></i> Envoyer depuis une URL</a></li>'+
'<li role="presentation" class="pull-right"><a href="/myfiles"><i class="fa fa-fw fa-history"></i> Mes images</a></li>'+
'</ul>'+
'</div>'
);
.wrapInner('<div class="tab-content"></div>');
$('.tab-content').prepend($('[role="tabpanel"]'));
$('#nav-send-files').addClass('active');
$('#nav-send-files a').attr({
'href':'#send-files',
'aria-controls':'send-files',
'role':'tab',
'data-toggle':'tab',
'aria-expanded':'true'
});
$('#nav-send-url a').attr({
'href':'#send-url',
'aria-controls':'send-url',
'role':'tab',
'data-toggle':'tab',
'aria-expanded':'false'
});
// Form Send file
$('#drag-and-drop-zone')
......@@ -93,4 +93,8 @@ $(document).ready(function(){
if(location.hash=='#send-url') { jQuery('a[href="#send-url"]').trigger('click') };
}
$('#le-logiciel a[href*="liberapay.com/sky"]').addClass('btn btn-soutenir btn-xs').css('margin-left','5px');
$('#le-logiciel a[href*="fiat-tux.fr"]').after($('#le-logiciel a[href*="liberapay.com/sky"]'));
$('#liberapay-img').attr('src','data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAABqUlEQVQ4jY2SP4sUQRDFn5p5nMEJGogYiF9AFMU/mIihBuonMBNFI6MDLzDXxEQzweQMFARRozs40UAQkwNFDI/FYcHZXWa6a6brZ2DPMMip21DJ63pVr16VlF8TuJAiTz3ytQ1c1LzPjXU3cKM04+hcpLJkySPf3MAjn2Yz9s9FbCpOuTHOxBd//iN2bEtsjWtuuBspRZYlKQSONDVn28jVZNxMgRtN4DwFi5Kk1VV2JeNBns+amnOSlKV7xoexxogFFQWLA2OCJDU1Z9xIGav7+XOkyBNNp+xzY5LB95KUIstdtzZyRZKoOeTGz76BVZwcVLqTZb7MWGEVJyRpNGLBI68z7kqRux2RwOHJhL0e+Zwd3qRkSZLGY/a4sdZ5MVz8VJLMOOZGkbG3nfP1b6mzjH+UGz9y9S+S1EYu99IDtyWpqjjgkecd3kYuyY2y0+2RN8l4OHDwnUeeeWRzUOyxsoP3BomFR15ts7uexBa7+8tJgeturOdDmGbpW25suPEhBR41Faf/erNmHB9Uv/XfI+87G/f71VQcnJvoke+ZOFpZYee/cn8BK+FRWdUll/MAAAAASUVORK5CYII=');
});
\ No newline at end of file
......@@ -48,6 +48,13 @@
<main>
<div class="row">
<div class="col-md-12">
<div role="tabpanel">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" id="nav-send-files"><a href="/#send-files"><i class="fa fa-fw fa-send"></i> <%= l('Envoyer des fichiers') %></a></li>
<li role="presentation" id="nav-send-url" ><a href="/#send-url"><i class="fa fa-fw fa-link"></i> <%= l('Envoyer depuis une URL') %></a></li>
<li role="presentation" id="nav-myfiles" class="pull-right"><a href="/myfiles"><i class="fa fa-fw fa-history"></i> <%= l('My images') %></a></li>
</ul>
</div>
% if (defined(config('broadcast_message'))) {
<div class="alert alert-info">
<strong><%= config('broadcast_message') %></strong>
......@@ -102,7 +109,7 @@
<div class="col-md-4" id="le-logiciel">
<h2><%= l('Le logiciel') %></h2>
<p class="text-center" role="presentation"><span class="glyphicon glyphicon-cloud"></span></p>
<p><%== l('<b class="violet">Frama</b><b class="vert">pic</b> est une instance parmi d’autres du logiciel <a href="https://lut.im">Lutim</a> développé par <a href="http://www.fiat-tux.fr/">Luc Didry</a>.') %></p>
<p><%== l('<b class="violet">Frama</b><b class="vert">pic</b> est une instance parmi d’autres du logiciel <a href="https://lut.im">Lutim</a> développé par <a href="http://www.fiat-tux.fr/">Luc Didry</a>.') %><%= link_to 'https://liberapay.com/sky' => (title => l('Support the author on Liberapay')) => begin %><img id="liberapay-img" src="/img/liberapay.svg" alt="<%= l('Liberapay button') %>"><% end %></p>
<p><%== l('Lutim est <a href="https://www.gnu.org/licenses/agpl-3.0.html">sous licence libre <abbr title="GNU Affero General Public License">AGPL</abbr></a>.') %></p>
<p><%== l('Les sources du thème <b class="violet">Frama</b><b class="vert">pic</b> sont disponibles sur <a href="https://framagit.org/framasoft/framapic">notre forge logicielle</a>') %></p>
<p><%== l('Il est possible dutiliser <b class="violet">Frama</b><b class="vert">pic</b> sous forme d’application :') %></p>
......
Markdown is supported
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