changes
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="paginator">
|
||||
<div class="paginator">
|
||||
<%= sequential_paginator(@comments) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
<div id="c-comments">
|
||||
<div id="a-index">
|
||||
<% if @posts.empty? %>
|
||||
<%= render "post_sets/blank" %>
|
||||
<% end %>
|
||||
|
||||
<% @posts.each do |post| %>
|
||||
<div class="post">
|
||||
<div class="preview">
|
||||
@@ -10,7 +14,7 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div id="paginator">
|
||||
<div class="paginator">
|
||||
<%= sequential_paginator(@posts) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<p>Nobody here but us chickens!</p>
|
||||
|
||||
<p><%= link_to "Go back", :back %>.</p>
|
||||
<p><%= link_to "Go back", :back %></p>
|
||||
@@ -36,7 +36,9 @@
|
||||
</div>
|
||||
|
||||
<div id="paginator">
|
||||
<%= will_paginate(@aliases) %>
|
||||
<%= numbered_paginator(@tag_aliases) do |page| %>
|
||||
<%= link_to(page, tag_aliases_path(:page => page)) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
@@ -36,7 +36,9 @@
|
||||
</div>
|
||||
|
||||
<div id="paginator">
|
||||
<%= will_paginate(@implications) %>
|
||||
<%= numbered_paginator(@tag_implications) do |page| %>
|
||||
<%= link_to(page, tag_impliactions_path(:page => page)) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
@@ -18,8 +18,10 @@
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="paginator">
|
||||
<%= will_paginate(@tags) %>
|
||||
<div class="paginator">
|
||||
<%= numbered_paginator(@tags) do |page| %>
|
||||
<%= link_to(page, tags_path(:page => page)) %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<div id="c-users">
|
||||
<div id="a-index">
|
||||
<h1>Users</h1>
|
||||
|
||||
<% simple_form_for(@search) do |f| %>
|
||||
<%= f.input :name_contains, :label => "Name" %>
|
||||
<%= f.input :is_banned_is_true, :label => "Banned" %>
|
||||
<%= f.input :is_privileged_is_true, :label => "Privileged" %>
|
||||
<%= f.input :is_contributor_is_true, :label => "Contributor" %>
|
||||
<%= f.input :is_janitor_is_true, :label => "Janitor" %>
|
||||
<%= f.input :is_moderator_is_true, :label => "Moderator" %>
|
||||
<%= f.input :is_admin_is_true, :label => "Admin" %>
|
||||
<%= f.sort_link "Name", :name %>
|
||||
<%= f.sort_link "Date", :created_at_desc %>
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
|
||||
<table width="100%" class="highlightable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Posts</th>
|
||||
<th>Deleted</th>
|
||||
<th>% Pos</th>
|
||||
<th>% Neg</th>
|
||||
<th>Notes</th>
|
||||
<th>Level</th>
|
||||
<th>Joined</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @users.each do |user| %>
|
||||
<tr>
|
||||
<td>
|
||||
<%= link_to user.pretty_name, user_path(user.id) %>
|
||||
<% if user.inviter %>
|
||||
← <%= link_to user.inviter.name, user_path(user.inviter_id) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td><%= link_to user.posts.count, posts_path(:tags => "uploader:#{user.name}") %></td>
|
||||
<td><%= user.posts.deleted.count %></td>
|
||||
<% if user.posts.count > 100 %>
|
||||
<td><%= number_to_percentage(100 * user.posts.positive.count.to_f / user.posts.count, :precision => 0) %></td>
|
||||
<td><%= number_to_percentage(100 * user.posts.negative.count.to_f / user.posts.count, :precision => 0) %></td>
|
||||
<% else %>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<% end %>
|
||||
<td><%= link_to user.note_versions.count, note_versions_path(:search => {:updater_id_eq => user.id}) %></td>
|
||||
<td><%= user.pretty_level %></td>
|
||||
<td><span title="<%= user.created_at %>"><%= time_ago_in_words user.created_at %> ago</span></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="paginator">
|
||||
<%= will_paginate(@users) %>
|
||||
</div>
|
||||
|
||||
<%= render :partial => "footer" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
<p>There are some restrictions on names:</p>
|
||||
|
||||
<ul>
|
||||
<li><strong>Name</strong>: Your name must be at least 2 characters and at most 20 characters long. It cannot contain spaces, commas, colons, or semi-colons. All characters must be US-ASCII.</li>
|
||||
<li><strong>Name</strong>: Your name must be at least 2 characters and at most 20 characters long. It cannot contain spaces or colons. All characters must be US-ASCII.</li>
|
||||
<li><strong>Password</strong>: Your password must be at least 5 characters long.</li>
|
||||
<li>
|
||||
<strong>Email</strong>:
|
||||
|
||||
Reference in New Issue
Block a user