Project

General

Profile

Actions

Defect #828

closed

Files displayed in Projects::Activity view shows title twice, but no description

Added by Marty McGee over 16 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2008-03-11
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

Actions

Also available in: Atom PDF