Defect #828
closedFiles displayed in Projects::Activity view shows title twice, but no description
0%
Description
When viewing the Activity page, anytime a file is displayed in the latest activity, the description doesn't show properly, i.e., it shows the title again, not the description. Here's the affected code in apps/views/projects/activity.rhtml, lines 7-14:
7: <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| ->
8: <dt class="<= e.class.name.downcase >"><span class="time"><= format_time(e.event_datetime, false) ></span>
9: <= link_to h(truncate(e.event_title, 100)), e.event_url ></dt>
10: <dd>< unless e.event_description.blank? ->
11: <span class="description">*<= format_activity_description(e.event_description) >*</span><br />
12: < end >
13: <span class="author"><= e.event_author if e.respond_to?(:event_author) ></span></dd>
14: < end -%>
Even though this code looks right, the file is displayed like this...
[Time] 10:42 PM [Title] File_Title_Example.jpg
[Title] File_Title_Example.jpg
[Author] Marty McGee
but should be displayed like this...
[Time] 10:42 PM [Title] File_Title_Example.jpg
[Description] File Description Example
[Author] Marty McGee