Fix #3534: Remove Janitor Trials.

This commit is contained in:
evazion
2019-11-17 02:05:01 -06:00
parent 1ae971269c
commit 72f17fd1de
19 changed files with 11 additions and 436 deletions

View File

@@ -1,4 +0,0 @@
<% content_for(:secondary_links) do %>
<%= subnav_link_to "Listing", janitor_trials_path %>
<%= subnav_link_to "New", new_janitor_trial_path %>
<% end %>

View File

@@ -1 +0,0 @@
location.reload();

View File

@@ -1,29 +0,0 @@
<div id="c-janitor-trials">
<div id="a-index">
<h1>Janitor Trials</h1>
<table class="striped" width="100%">
<thead>
<tr>
<th>User</th>
<th>Date</th>
<td></td>
</tr>
</thead>
<tbody>
<% @janitor_trials.each do |janitor_trial| %>
<tr>
<td><%= link_to_user janitor_trial.user %></td>
<td><%= compact_time janitor_trial.created_at %></td>
<td>
<%= link_to "Promote", promote_janitor_trial_path(janitor_trial), :remote => true, :method => :put %>
| <%= link_to "Demote", demote_janitor_trial_path(janitor_trial), :remote => true, :method => :put %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
</div>
<%= render "secondary_links" %>

View File

@@ -1,17 +0,0 @@
<div id="c-janitor-trials">
<div id="a-new">
<h1>New Janitor Trial</h1>
<%= error_messages_for :janitor_trial %>
<%= simple_form_for(@janitor_trial) do |f| %>
<%= f.input :user_name, input_html: { data: { autocomplete: "user" } } %>
<%= f.button :submit, "Submit" %>
<%= f.button :submit, "Test" %>
<% end %>
<p id="test-results"></p>
</div>
</div>
<%= render "secondary_links" %>

View File

@@ -1 +0,0 @@
location.reload();

View File

@@ -1 +0,0 @@
<%= raw @tester.test.to_json %>

View File

@@ -151,7 +151,6 @@
<li><%= link_to("Mod Actions", mod_actions_path) %></li>
<li><%= link_to("Jobs", delayed_jobs_path) %></li>
<li><%= link_to("Bulk Update Requests", bulk_update_requests_path) %></li>
<li><%= link_to("Janitor Trials", janitor_trials_path) %></li>
<% if CurrentUser.is_member? %>
<li><%= link_to("User Name Change Requests", user_name_change_requests_path) %></li>