Option to hide (including totally catalog stubs) and moderate/report on catalog tiles?

(cherry picked from commit 81e73c4e29)
jschan
l29utp0 3 years ago committed by Thomas Lynch
parent 67c486386e
commit d9cf926ea2
  1. 2
      gulp/res/js/csstoggles.js
  2. 2
      gulp/res/js/filters.js
  3. 7
      views/mixins/catalogtile.pug

@ -42,7 +42,7 @@ class CssToggle {
};
//define the css
const hidePostStubsCss = `.post-container.hidden, .catalog-tile.hidden { visibility: hidden;margin-top: -1.5em;height: 0; }`;
const hidePostStubsCss = `.post-container.hidden, .catalog-tile.hidden { display: none;margin-top: -1.5em;height: 0; }`;
const hideThumbnailsCss = `.file-thumb, .catalog-thumb { visibility: hidden !important; }`;
const hideRecursiveCss = `.op.hidden ~ .anchor, .op.hidden ~ .post-container { display: none; }`;
const heightUnlimitCss = `img, video { max-height: unset; }`;

@ -77,9 +77,7 @@ const togglePostsHidden = (posts, state, single) => {
} else {
elem.classList['add']('hidden');
}
if (!isCatalog) {
elem.querySelector('.postmenu').children[0].textContent = (showing ? 'Hide' : 'Show');
}
}
};

@ -37,6 +37,13 @@ mixin catalogtile(post, index, overboard=false)
span(class=`flag flag-${post.country.code.toLowerCase()}` title=post.country.name alt=post.country.name)
|
a.no-decoration.post-subject(href=postURL) #{post.subject || 'No subject'}
if !post.thread && (truncate || manage || globalmanage)
|
select.jsonly.postmenu
option(value='single') Hide
if !overboard && !ban
option(value='moderate') Moderate
br
span(title='Replies') R: #{post.replyposts}
| /

Loading…
Cancel
Save