v20: файлы в HTML-отчёте — кликабельны, открываются при нажатии
This commit is contained in:
parent
812ad693c3
commit
4cc95a366f
@ -257,7 +257,7 @@ function renderMonthBlock(id,si,label,from,to){
|
||||
for(var i=from;i<=to;i++){var m=months[i];if(d[m]&&(d[m].report||(d[m].files&&d[m].files.length))){
|
||||
has=true;html+='<div class="month"><strong>'+M(i)+(label?' — '+label:'')+'</strong>';
|
||||
if(d[m].report)html+='<p style="font-size:13px;margin:4px 0">'+esc(d[m].report)+'</p>';
|
||||
if(d[m].files&&d[m].files.length)html+='<div class="files"><ul>'+d[m].files.map(function(f){return'<li>'+esc(f.name)+(f.desc?' — '+esc(f.desc):'')+' ('+(f.size/1024).toFixed(0)+' КБ)</li>'}).join("")+'</ul></div>';
|
||||
if(d[m].files&&d[m].files.length)html+='<div class="files"><ul>'+d[m].files.map(function(f){return'<li><a href="'+f.data+'" download="'+esc(f.name)+'" style="color:#0F1218;font-weight:600">📄 '+esc(f.name)+'</a>'+(f.desc?' — '+esc(f.desc):'')+' ('+(f.size/1024).toFixed(0)+' КБ)</li>'}).join("")+'</ul></div>';
|
||||
html+='</div>'}}
|
||||
if(!has)html='<p style="font-size:12px;color:#999">Нет отчётов</p>';
|
||||
return html;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user