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)
<%= 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 %>
(4-4/4)