Slight changes to the activity view.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1120 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a3dda6dc4a
commit
80a60247f5
|
@ -26,6 +26,10 @@ module ProjectsHelper
|
|||
}, options
|
||||
end
|
||||
|
||||
def format_activity_description(text)
|
||||
h(truncate(text, 250))
|
||||
end
|
||||
|
||||
def project_settings_tabs
|
||||
tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural},
|
||||
{:name => 'modules', :action => :select_project_modules, :partial => 'projects/settings/modules', :label => :label_module_plural},
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
<h2><%=l(:label_activity)%>: <%= "#{month_name(@month).downcase} #{@year}" %></h2>
|
||||
|
||||
<div id="activity">
|
||||
<% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %>
|
||||
<h3><%= day_name(day.cwday) %> <%= day.day %></h3>
|
||||
<ul>
|
||||
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| %>
|
||||
<li><p><%= format_time(e.event_datetime, false) %> <%= link_to truncate(e.event_title, 100), e.event_url %><br />
|
||||
<% unless e.event_description.blank? %><em><%= truncate(e.event_description, 500) %></em><br /><% end %>
|
||||
<span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></p></li>
|
||||
<h3><%= day_name(day.cwday) %> <%= day.day %></h3>
|
||||
<dl>
|
||||
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
|
||||
<dt class="<%= e.class.name.downcase %>"><span class="time"><%= format_time(e.event_datetime, false) %></span>
|
||||
<%= link_to truncate(e.event_title, 100), e.event_url %></dt>
|
||||
<dd><% unless e.event_description.blank? -%>
|
||||
<span class="description"><%= format_activity_description(e.event_description) %></span><br />
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
<span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></dd>
|
||||
<% end -%>
|
||||
</dl>
|
||||
<% end -%>
|
||||
</div>
|
||||
|
||||
<% if @events_by_day.empty? %><p class="nodata"><%= l(:label_no_data) %></p><% end %>
|
||||
<%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
|
||||
|
||||
<div style="float:left;">
|
||||
<% prev_params = params.clone.update :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) %>
|
||||
|
|
|
@ -147,6 +147,12 @@ div#issue-changesets .changeset { padding: 4px;}
|
|||
div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
|
||||
div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
|
||||
|
||||
div#activity dl { margin-left: 2em; }
|
||||
div#activity dd { margin-bottom: 1em; }
|
||||
div#activity dt { margin-bottom: 1px; }
|
||||
div#activity dt .time { color: #777; font-size: 80%; }
|
||||
div#activity dd .description { font-style: italic; }
|
||||
|
||||
.autoscroll {overflow-x: auto; padding:1px; width:100%; margin-bottom: 1.2em;}
|
||||
#user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue