move vote similarity code into danbooru, add listing for super voters
This commit is contained in:
@@ -109,6 +109,7 @@
|
||||
<li><%= link_to("Signup", new_user_path) %></li>
|
||||
<li><%= link_to("Terms of Service", terms_of_service_path) %></li>
|
||||
<li><%= link_to("Upgrade Information", new_user_upgrade_path) %></li>
|
||||
<li><%= link_to("Super Voters", super_voters_path)</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1>Admin</h1></li>
|
||||
|
||||
17
app/views/super_voters/index.html.erb
Normal file
17
app/views/super_voters/index.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<div id="c-super-voters">
|
||||
<div id="a-index">
|
||||
<h1>Super Voters</h1>
|
||||
|
||||
<p>The following users will increment or decrement a post's score by <%= SuperVoter::MAGNITUDE %> when they vote. This list is regenerated once a week.</p>
|
||||
|
||||
<ul>
|
||||
<% @super_voters.each do |super_voter| %>
|
||||
<li><%= link_to_if CurrentUser.user.is_janitor?, super_voter.user.name, posts_path(tags: "upvote:#{super_voter.user.name}") %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
Super Voters - <%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user