move vote similarity code into danbooru, add listing for super voters

This commit is contained in:
r888888888
2016-09-19 16:43:15 -07:00
parent 6241a50c31
commit bf2246f895
7 changed files with 101 additions and 11 deletions

View File

@@ -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>

View 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 %>