diff --git a/server/pages/archive.html b/server/pages/archive.html index 8a0c0a4..57598c6 100644 --- a/server/pages/archive.html +++ b/server/pages/archive.html @@ -53,8 +53,10 @@ $(function() { parseInt(rec.starttime, 10)).toLocaleString() ); var duration = $('').text(delta(rec.endtime, rec.starttime)); - var fn = $('').append($('').prop('href', '/output/' + - rec.filename).text(rec.filename)); + var fn = $("").append($("").prop("href", "/output/" + + rec.filename).addClass("pure-button pure-button-small") + .html( $("").addClass("fa fa-download").css("color", "green")) + .append(" Scarica") ); var row = $('').append(name).append(start).append(duration).append(fn); $('#ongoing-recs-table tbody').append(row); } @@ -85,7 +87,7 @@ $(function() { Nome Inizio Durata - Filename + File diff --git a/server/static/css/techrec.css b/server/static/css/techrec.css index c12a9e8..563387a 100644 --- a/server/static/css/techrec.css +++ b/server/static/css/techrec.css @@ -22,6 +22,10 @@ .pure-button-enorme { font-size: 300% !important; } + +.pure-button-small { + font-size: 85% !important; +} .arancione { color: darkorange; } @@ -38,3 +42,14 @@ .ongoing-one:nth-child(odd) { background: #dddddd; } + +/* Archive */ +#ongoing-recs-table td { + text-align: center; +} +#ongoing-recs-table td:first-child { + text-align: left; +} +#ongoing-recs-table td:last-child { + text-align: right; +} diff --git a/server/static/js/tempo.js b/server/static/js/tempo.js deleted file mode 100644 index 19a18d4..0000000 --- a/server/static/js/tempo.js +++ /dev/null @@ -1,43 +0,0 @@ -/* -TODO: -prendere lo stato !!! -*/ -$(document).ready(function(){ - - $("#searchform").submit( - function (event) { - event.preventDefault(); - dataString = $(this).serialize(); - var request = $.getJSON('/api/search', dataString); - - $("#searchresult").html(" "); - request.done( function(data) { - - $.each(data, function(key, val) { - console.log("Extract " + key ); - - var divstring = "
"; - - $("#searchresult").append( divstring ); - // var str = newformstr( key ); // new form - - var str = ""; - str += "
"+val.name+" - Scarica Cancella
"; - str += "
RECID: "+val.recid+" ID: "+ val.id + " Active " + val.active + "
"; - str += "
["+val.starttime+" >>> "+val.endtime+"]
" - - $("#"+rs_trxarea(key)).html(str); - $("#delete-"+val.id).click(function(evt) { - evt.preventDefault(); - recDelete(val.recid, rs_trxarea(key) ); - - } - ); // End of delete link handler - - }); - }); - }); -$("#searchform").submit(); -}); - -// vim: set ts=4 sw=4 noet: