summaryrefslogtreecommitdiffstats
path: root/app/views/wiki
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-03-10 02:36:46 +0000
committerGo MAEDA <maeda@farend.jp>2018-03-10 02:36:46 +0000
commit9c6d95b05991581c52f1d150dd6740a5ae3e8dc3 (patch)
tree1f391b6998e4c33603c965ea0e8c65e7a23121f6 /app/views/wiki
parent0f9ea965e75ea08b2e3a329b45b41a8c829a8ce8 (diff)
downloadredmine-9c6d95b05991581c52f1d150dd6740a5ae3e8dc3.tar.gz
redmine-9c6d95b05991581c52f1d150dd6740a5ae3e8dc3.zip
Show the number of attachments on wiki pages (#27090).
Patch by Tomomi Yuzuriha. git-svn-id: http://svn.redmine.org/redmine/trunk@17231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/wiki')
-rw-r--r--app/views/wiki/show.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/wiki/show.html.erb b/app/views/wiki/show.html.erb
index a4de3e7eb..8dd106818 100644
--- a/app/views/wiki/show.html.erb
+++ b/app/views/wiki/show.html.erb
@@ -46,7 +46,7 @@
<%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
<fieldset class="collapsible collapsed">
- <legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %></legend>
+ <legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %> (<%= @page.attachments.length %>)</legend>
<div style="display: none;">
<%= link_to_attachments @page, :thumbnails => true %>