From dc57b06b6c92bbb463a899c1546d7976594aea6f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 23 Jun 2008 17:01:21 +0000 Subject: [PATCH] Adds a class ('me') to events of the activity view created by current user. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1578 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/projects/activity.rhtml | 3 ++- public/stylesheets/application.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/projects/activity.rhtml b/app/views/projects/activity.rhtml index 1a3fd9ff2..c08cd06f9 100644 --- a/app/views/projects/activity.rhtml +++ b/app/views/projects/activity.rhtml @@ -6,7 +6,8 @@

<%= format_activity_day(day) %>

<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> -
<%= format_time(e.event_datetime, false) %> +
+ <%= format_time(e.event_datetime, false) %> <%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %> <%= link_to format_activity_title(e.event_title), e.event_url %>
<%= format_activity_description(e.event_description) %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 48a8193e2..15e382d80 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -181,6 +181,7 @@ div#issue-changesets p { margin-top: 0; margin-bottom: 1em;} div#activity dl, #search-results { margin-left: 2em; } div#activity dd { margin-bottom: 1em; padding-left: 18px; } div#activity dt, #search-results dt { margin-bottom: 1px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; } +div#activity dt.me .time { border-bottom: 1px solid #999; } div#activity dt .time { color: #777; font-size: 80%; } div#activity dd .description, #search-results dd .description { font-style: italic; } div#activity span.project:after, #search-results span.project:after { content: " -"; } -- 2.39.5