Project

General

Profile

Patch #27090 » show_attachments_count_of_wiki_page-v2.diff

Replaced "count" method with "length" method. - Go MAEDA, 2018-01-14 11:07

View differences:

app/views/wiki/show.html.erb (working copy)
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.length %>)</legend>
50 50
  <div style="display: none;">
51 51

  
52 52
  <%= link_to_attachments @page, :thumbnails => true %>
(4-4/4)