correct filelabel for globallimits max banner files for board banner page

merge-requests/208/head
fatchan 5 years ago
parent 481a4fc670
commit 9e495bfe16
  1. 2
      gulp/res/js/post.js
  2. 3
      views/includes/filelabel.pug

@ -9,7 +9,7 @@ function pug_style(r){if(!r)return"";if("object"==typeof r){var t="";for(var e i
var block = (this && this.block), attributes = (this && this.attributes) || {};
pug_html = pug_html + "\u003Cdiv class=\"reports post-container\"\u003E\u003Cinput" + (" class=\"post-check\""+" type=\"checkbox\" name=\"checkedreports\""+pug_attr("value", r.id, true, false)) + "\u002F\u003E Date: ";
const reportDate = new Date(r.date);
pug_html = pug_html + "\u003Cspan" + (" class=\"reltime\""+pug_attr("datetime", reportDate.toISOString(), true, false)) + "\u003E" + (pug_escape(null == (pug_interp = reportDate.toLocaleString(undefined, { hour12:false })) ? "" : pug_interp)) + "\u003C\u002Fspan\u003E Reason: " + (pug_escape(null == (pug_interp = r.reason) ? "" : pug_interp)) + "\u003C\u002Fdiv\u003E";
pug_html = pug_html + "\u003Ctime" + (" class=\"reltime\""+pug_attr("datetime", reportDate.toISOString(), true, false)) + "\u003E" + (pug_escape(null == (pug_interp = reportDate.toLocaleString(undefined, { hour12:false })) ? "" : pug_interp)) + "\u003C\u002Ftime\u003E Reason: " + (pug_escape(null == (pug_interp = r.reason) ? "" : pug_interp)) + "\u003C\u002Fdiv\u003E";
};
pug_mixins["post"] = pug_interp = function(post, truncate, manage=false, globalmanage=false, ban=false){
var block = (this && this.block), attributes = (this && this.attributes) || {};

@ -1,4 +1,3 @@
label.jsonly.postform-style.filelabel(for='file')
| Select/Drop/Paste file(s)
if board != null
small (Max #{board.settings.maxFiles})
small (Max #{thread || threads ? board.settings.maxFiles : globalLimits.bannerFiles.max})

Loading…
Cancel
Save