This commit is contained in:
r888888888
2015-06-25 13:51:05 -07:00
parent 3cc7dbbedc
commit 1d9596d7f2
64 changed files with 244 additions and 140 deletions

View File

@@ -94,14 +94,14 @@
<td><%= presenter.comment_count(self) %> in <%= presenter.commented_posts_count(self) %> posts</td>
</tr>
<% if CurrentUser.user.id == user.id || CurrentUser.user.is_janitor? %>
<% if CurrentUser.user.id == user.id || CurrentUser.is_moderator? %>
<tr>
<th>Appeals</th>
<td><%= presenter.appeal_count(self) %></td>
</tr>
<% end %>
<% if CurrentUser.user.id == user.id || CurrentUser.user.is_janitor? %>
<% if CurrentUser.user.id == user.id || CurrentUser.is_moderator? %>
<tr>
<th>Flags</th>
<td><%= presenter.flag_count(self) %></td>
@@ -126,7 +126,7 @@
</td>
</tr>
<% if CurrentUser.user.is_janitor? && presenter.previous_names.present? %>
<% if CurrentUser.is_moderator? && presenter.previous_names.present? %>
<tr>
<th>Previous Names</th>
<td><%= presenter.previous_names %></td>

View File

@@ -14,7 +14,7 @@
<th>Name</th>
<th>Posts</th>
<th>Deleted</th>
<% if CurrentUser.user.is_janitor? %>
<% if CurrentUser.is_moderator? %>
<th><abbr title="3+ Score Binomial Confidence Interval">5+ SBCI</abbr></th>
<th><abbr title="6+ Score Binomial Confidence Interval">10+ SBCI</abbr></th>
<% end %>
@@ -40,7 +40,7 @@
</td>
<td><%= link_to user.posts.count, posts_path(:tags => "user:#{user.name}") %></td>
<td><%= user.posts.deleted.count %></td>
<% if CurrentUser.user.is_janitor? %>
<% if CurrentUser.is_moderator? %>
<td><%= number_to_percentage Reports::UserPromotions.confidence_interval_for(user, 3), :precision => 0 %></td>
<td><%= number_to_percentage Reports::UserPromotions.confidence_interval_for(user, 6), :precision => 0 %></td>
<% end %>