show_attachments_count_of_wiki_page_trunk_r16963.patch

Tomomi Yuzuriha, 2017-09-28 04:38

Download (615 Bytes)

View differences:

app/views/wiki/show.html.erb
46 46
<%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
47 47

  
48 48
<fieldset class="collapsible collapsed">
49
  <legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %></legend>
49
  <legend onclick="toggleFieldset(this);"><%= l(:label_attachment_plural) %> (<%= @page.attachments.count %>)</legend>
50 50
  <div style="display: none;">
51 51

  
52 52
  <%= link_to_attachments @page, :thumbnails => true %>