uploads: replace old upload limits with new upload limits.
This commit is contained in:
@@ -63,15 +63,8 @@
|
||||
|
||||
<tr>
|
||||
<th>Upload Limit</th>
|
||||
<td><%= presenter.upload_limit(self) %> (<%= link_to_wiki "help", "about:upload_limits" %>)</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>New Upload Limit</th>
|
||||
<td>
|
||||
<%= link_to user.new_upload_limit.used_upload_slots, posts_path(tags: "user:#{user.name} status:pending") %>
|
||||
/
|
||||
<%= tag.abbr user.new_upload_limit.upload_slots, title: "Next level: #{user.new_upload_limit.approvals_on_current_level} / #{user.new_upload_limit.approvals_for_next_level} approvals" %>
|
||||
<%= render "users/upload_limit", user: user %>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
10
app/views/users/_upload_limit.html.erb
Normal file
10
app/views/users/_upload_limit.html.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
<%# user %>
|
||||
|
||||
<% if user.can_upload_free? %>
|
||||
none
|
||||
<% else %>
|
||||
<%= link_to user.upload_limit.used_upload_slots, posts_path(tags: "user:#{user.name} status:pending") %> /
|
||||
<%= tag.abbr user.upload_limit.upload_slots, title: "#{pluralize(user.upload_limit.approvals_for_next_level - user.upload_limit.approvals_on_current_level, "approved post")} needed for next level (progress: #{user.upload_limit.approvals_on_current_level} / #{user.upload_limit.approvals_for_next_level}) " %>
|
||||
<% end %>
|
||||
|
||||
(<%= link_to_wiki "help", "about:upload_limits" %>)
|
||||
Reference in New Issue
Block a user