Project

General

Profile

Defect #23575 » do-not-truncate-activity-subject.patch

Marius BĂLTEANU, 2016-08-20 17:12

View differences:

app/views/activities/index.html.erb
<%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
<span class="time"><%= format_time(e.event_datetime, false) %></span>
<%= content_tag('span', e.project, :class => 'project') if @project.nil? || @project != e.project %>
<%= link_to format_activity_title(e.event_title), e.event_url %>
<%= link_to e.event_title, e.event_url %>
</dt>
<dd class="<%= "grouped" if in_group %>"><span class="description"><%= format_activity_description(e.event_description) %></span>
<span class="author"><%= link_to_user(e.event_author) if e.respond_to?(:event_author) %></span></dd>
public/stylesheets/application.css
div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; }
div#activity dt.grouped {margin-left:5em;}
div#activity dd.grouped {margin-left:9em;}
div#activity dt { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; height: 18px;}
#search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; }
(2-2/4)