×
@js const _isAnonUser = !(typeof session !== 'undefined' && session && session.user && !session.is_anon); const _canExcludeTags = !_isAnonUser || (typeof anon_permissions !== 'undefined' && anon_permissions && anon_permissions.exclude_tags !== false && anon_permissions.filter !== false); const _allowedModes = (typeof anon_permissions !== 'undefined' && anon_permissions && anon_permissions.allowed_modes) || ['sfw', 'nsfw', 'untagged', 'all', 'nsfl']; const _showSfw = !_isAnonUser || _allowedModes.includes('sfw'); const _showNsfw = !_isAnonUser || _allowedModes.includes('nsfw'); const _showNsfl = enable_nsfl && (!_isAnonUser || _allowedModes.includes('nsfl')); const _showUntagged = (typeof session !== 'undefined' && session && (session.admin || session.is_moderator)) || (_isAnonUser && _allowedModes.includes('untagged')); const _showAll = !_isAnonUser || _allowedModes.includes('all'); const _activeRatingList = [_showSfw ? 'sfw' : null, _showNsfw ? 'nsfw' : null, _showNsfl ? 'nsfl' : null, _showUntagged ? 'untagged' : null].filter(Boolean); const _isSingleRating = _isAnonUser && _activeRatingList.length === 1 && !_showAll; const _singleRating = _isSingleRating ? _activeRatingList[0] : null; const _allowedMimes = (typeof anon_permissions !== 'undefined' && anon_permissions && anon_permissions.allowed_mimes) || ['image', 'video', 'audio', 'flash', 'pdf']; const _isSingleMime = _isAnonUser && _allowedMimes.length === 1; const _singleMime = _isSingleMime ? _allowedMimes[0] : null; const _hasMimeCats = typeof scroller_mime_cats !== 'undefined' && Array.isArray(scroller_mime_cats); const _showVideo = _hasMimeCats && scroller_mime_cats.includes('video') && (!_isAnonUser || _allowedMimes.includes('video')); const _showAudio = _hasMimeCats && scroller_mime_cats.includes('audio') && (!_isAnonUser || _allowedMimes.includes('audio')); const _showImage = _hasMimeCats && scroller_mime_cats.includes('image') && (!_isAnonUser || _allowedMimes.includes('image')); const _showFlash = enable_swf && (!_isAnonUser || _allowedMimes.includes('flash')); @endjs @if(_canExcludeTags)
{{ t('filter.excluded_tags') || 'Excluded Tags' }} 0
@endif
@if(_showSfw) @endif @if(_showNsfw) @endif @if(_showNsfl) @endif @if(_showUntagged) @endif @if(_showAll && !_isSingleRating) @endif
@if(show_mime_picker)
@if(_showVideo) @endif @if(_showAudio) @endif @if(_showImage) @endif @if(_showFlash) @endif
@endif @if(session && enable_xd_score)
{{ session.min_xd_score || 0 }}
@endif