upload limits: show how upload limits are calculated in profiles.

* Allow mousing over the upload limit on profile pages to show the full
  formula for the upload limit calculation. In particular, show how the
  upload limit multiplier is derived from the deletion confidence.

* Refactor to avoid duplicating upload limit calculations in the
  presenter, as much as possible.
This commit is contained in:
evazion
2017-08-10 21:20:10 -05:00
parent 87b0dc3ae3
commit bf3101da48
3 changed files with 30 additions and 26 deletions

View File

@@ -31,7 +31,7 @@
<tr>
<th>Upload Limit</th>
<td><%= presenter.upload_limit %></td>
<td><%= presenter.upload_limit %> (<%= link_to "help", wiki_pages_path(title: "about:upload_limits") %>)</td>
</tr>
<tr>