/super_voters: remove in favor of /users?search[is_super_voter]=true search.

This commit is contained in:
evazion
2017-05-02 23:14:23 -05:00
parent 1dba314eda
commit d6ca040198
3 changed files with 0 additions and 26 deletions

View File

@@ -1,8 +0,0 @@
class SuperVotersController < ApplicationController
respond_to :html, :xml, :json
def index
@super_voters = SuperVoter.all
respond_with(@super_voters)
end
end

View File

@@ -109,7 +109,6 @@
<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

@@ -1,17 +0,0 @@
<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_moderator?, 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 %>