Commit 26976e46 authored by Luc Didry's avatar Luc Didry

Update for Lutim 0.11.3

parent 65dc3a2e
Pipeline #65273 passed with stage
in 18 seconds
<div id="stats-data">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>24/7/2018</th>
</tr>
</thead>
<tbody>
<tr>
<td>6</td>
</tr>
<tr>
<td>6</td>
</tr>
</tbody>
</table>
</div>
......@@ -21,23 +21,16 @@
<link rel="apple-touch-icon" sizes="120x120" href="<%= url_for('/img/lutim120.png') %>">
<link rel="apple-touch-icon" sizes="152x152" href="<%= url_for('/img/lutim152.png') %>">
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="<%= url_for('/img/lutim128.png') %>">
%= stylesheet '/css/bootstrap.min.css'
%= stylesheet '/css/fontello-embedded.css'
%= stylesheet '/css/lutim.css'
%= stylesheet '/css/common.min.css'
% if (current_route 'stats') {
%= stylesheet '/css/morris-0.4.3.min.css'
%= stylesheet '/css/morris-0.5.1.min.css'
% } else {
%= stylesheet '/css/animation.css'
%= stylesheet '/css/uploader.css'
%= stylesheet '/css/markdown.css'
%= stylesheet '/css/not_stats.min.css'
% }
% if (current_route 'gallery') {
%= stylesheet '/css/photoswipe.css'
%= stylesheet '/css/default-skin/default-skin.css'
%= stylesheet '/css/gallery.min.css'
% }
%= stylesheet '/css/pic.css'
%= javascript '/js/jquery-3.2.1.min.js'
%= javascript '/partial/pic.js'
</head>
<body>
%= javascript 'https://framasoft.org/nav/nav.js'
......@@ -133,18 +126,23 @@
% if (defined(config('piwik_img'))) {
<img src="<%== config('piwik_img') %>" style="border:0" alt="">
% }
%= javascript '/js/jquery-3.2.1.min.js'
%= javascript '/partial/pic.js'
%= javascript '/partial/manifest.js'
%= javascript '/js/toastify.js'
%= javascript '/js/bootstrap.min.js'
%= javascript '/partial/common.js'
% if (current_route 'stats') {
%= javascript '/js/lutim.js'
%= javascript '/js/raphael-min.js'
%= javascript '/js/morris-0.4.3.min.js'
%= javascript '/js/morris-0.5.1.min.js'
%= javascript '/js/stats.js'
%= javascript '/partial/raw.js'
% } elsif (!(current_route 'about')) {
%= javascript '/js/lutim.js'
%= javascript '/js/dmuploader.min.js'
% }
% if (current_route 'index') {
%= javascript '/partial/common.js'
%= javascript '/partial/lutim.js'
% }
% if (current_route 'gallery') {
......@@ -156,7 +154,6 @@
%= javascript '/partial/lutim.js'
% }
% if (current_route 'myfiles') {
%= javascript '/partial/common.js'
%= javascript '/js/moment-with-locales.min.js'
%= javascript '/partial/myfiles.js'
% }
......
% # vim:set sw=4 ts=4 sts=4 ft=javascript expandtab:
$(document).ready(function(){
if(/myfiles/i.test(location.href)) {
......@@ -15,7 +16,7 @@ $(document).ready(function(){
$('#myfiles tr td:nth-child(1) input').css('margin-left','-10px');
// Lien d'affichage
$('#myfiles tr td:nth-child(3) a').html(function(){
$('#myfiles tr td:nth-child(3) a:first-child').html(function(){
if($(this).parent().parent('tr').find('td:eq(4) .icon-ok').length) {
return '<i class="fa fa-fw fa-eye"></i><span class="sr-only">'+$(this).attr('href')+'</span>';
} else {
......@@ -27,6 +28,10 @@ $(document).ready(function(){
$('#myfiles tr .icon-ok').parent().append('<span class="sr-only"><%= l('Yes') %></span>');
$('#myfiles tr .icon-cancel').addClass('fa fa-times').attr('aria-hidden', true);
$('#myfiles tr .icon-cancel').parent().append('<span class="sr-only"><%= l('No') %></span>');
$('#myfiles tr .icon-clipboard').addClass('fa fa-clipboard').attr('aria-hidden', true);
$('#myfiles tr .icon-clipboard').parent().append('<span class="sr-only"><%= l('Copy to clipboard') %></span>');
$('#myfiles tr .icon-edit').addClass('fa fa-pencil-square-o').attr('aria-hidden', true);
$('#myfiles tr .icon-edit').parent().append('<span class="sr-only"><%= l('Modify expiration delay') %></span>');
// Lien de suppression
$('#myfiles tr td:nth-child(8) a').html(function(){
......
var enabled_donut = {
element: 'raw-enabled-holder',
data: [
{label: "<%= l('no time limit') %>", value: 2},
{label: "<%= l('24 hours') %>", value: 0},
{label: "<%= l('%1 days', 7) %>", value: 0},
{label: "<%= l('%1 days', 30) %>", value: 0},
{label: "<%= l('1 year') %>", value: 0},
],
colors: [
'#40b489',
'#40b9b1',
'#40a1be',
'#427dc1',
'#455ac3',
]
};
var disabled_donut = {
element: 'raw-disabled-holder',
data: [
{label: "<%= l('no time limit') %>", value: 4},
{label: "<%= l('24 hours') %>", value: 0},
{label: "<%= l('%1 days', 7) %>", value: 0},
{label: "<%= l('%1 days', 30) %>", value: 0},
{label: "<%= l('1 year') %>", value: 0},
],
colors: [
'#40b489',
'#40b9b1',
'#40a1be',
'#427dc1',
'#455ac3',
]
};
% my @raw = (
% l('Image delay'),
% l('Active images'),
% l('Deleted images'),
% l('Deleted images in 30 days'),
% l('no time limit'),
% l('24 hours'),
% l('%1 days', 7),
% l('%1 days', 30),
% l('1 year'),
% l('Total')
% );
<table class="table table-striped" id="raw-stats">
<thead>
<tr>
<th><%= $raw[0] %></%=></th>
<th><%= $raw[1] %></%=></th>
<th><%= $raw[2] %></%=></th>
<th><%= $raw[3] %></%=></th>
</tr>
</thead>
<tbody>
<tr><td><%= $raw[4] %></%=></td><td>2</td><td>4</td><td>ø</td></tr>
<tr><td><%= $raw[5] %></%=></td><td>0</td><td>0</td><td>0 (100%)</td></tr>
<tr><td><%= $raw[6] %></%=></td><td>0</td><td>0</td><td>0 (100%)</td></tr>
<tr><td><%= $raw[7] %></%=></td><td>0</td><td>0</td><td>0 (100%)</td></tr>
<tr><td><%= $raw[8] %></%=></td><td>0</td><td>0</td><td>0</td></tr>
</tbody>
<tfoot>
<tr><td><%= $raw[9] %></%=></td><td>2</td><td>4</td><td>0</td></tr>
</tfoot>
</table>
{"average":2,"day":{"disabled":0,"enabled":0},"for_days":3,"month":{"disabled":0,"enabled":0},"total":6,"unlimited":{"disabled":4,"enabled":2},"week":{"disabled":0,"enabled":0},"year":{"disabled":0,"enabled":0}}
\ No newline at end of file
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