mirror of
https://github.com/neocities/neocities.git
synced 2025-08-26 19:03:26 +02:00
info link for browse
This commit is contained in:
parent
c8821f4a24
commit
8177e9eaf2
2 changed files with 3 additions and 2 deletions
|
@ -77,7 +77,7 @@ def browse_sites_dataset
|
|||
ds = ds.exclude site_updated_at: nil
|
||||
ds = ds.order :site_updated_at.desc
|
||||
when 'newest'
|
||||
ds = ds.where{views > Site::BROWSE_MINIMUM_VIEWS} unless is_admin?
|
||||
ds = ds.where{views > Site::BROWSE_MINIMUM_VIEWS} unless current_site && current_site.is_admin
|
||||
ds = ds.exclude site_updated_at: nil
|
||||
ds = ds.order :created_at.desc, :views.desc
|
||||
when 'oldest'
|
||||
|
|
|
@ -111,10 +111,11 @@
|
|||
<button onclick="banSite('<%= site.username.gsub('\'', '') %>', '', this); ">Ban</button>
|
||||
<button onclick="banSite('<%= site.username.gsub('\'', '') %>', 'spam', this)">Spam</button>
|
||||
<button onclick="banSite('<%= site.username.gsub('\'', '') %>', 'phishing', this)">Phishing</button>
|
||||
<button onclick="window.location='/admin/site/<%= site.username %>'">Info</button>
|
||||
<form action="/admin/mark_nsfw" target="_blank" method="POST" onsubmit="return confirm('Confirm NSFW marking of <%= site.username %>');">
|
||||
<%== csrf_token_input_html %>
|
||||
<input type="hidden" name="username" value="<%= site.username %>">
|
||||
<button>Mark NSFW</button>
|
||||
<button>NSFW</button>
|
||||
</form>
|
||||
|
||||
<% if params[:sort_by] == 'blocks' %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue