@@ -26,6 +26,10 module ProjectsHelper | |||||
26 | }, options |
|
26 | }, options | |
27 | end |
|
27 | end | |
28 |
|
28 | |||
|
29 | def format_activity_description(text) | |||
|
30 | h(truncate(text, 250)) | |||
|
31 | end | |||
|
32 | ||||
29 | def project_settings_tabs |
|
33 | def project_settings_tabs | |
30 | tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural}, |
|
34 | tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural}, | |
31 | {:name => 'modules', :action => :select_project_modules, :partial => 'projects/settings/modules', :label => :label_module_plural}, |
|
35 | {:name => 'modules', :action => :select_project_modules, :partial => 'projects/settings/modules', :label => :label_module_plural}, |
@@ -1,17 +1,22 | |||||
1 | <h2><%=l(:label_activity)%>: <%= "#{month_name(@month).downcase} #{@year}" %></h2> |
|
1 | <h2><%=l(:label_activity)%>: <%= "#{month_name(@month).downcase} #{@year}" %></h2> | |
2 |
|
2 | |||
|
3 | <div id="activity"> | |||
3 | <% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %> |
|
4 | <% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %> | |
4 |
|
|
5 | <h3><%= day_name(day.cwday) %> <%= day.day %></h3> | |
5 |
|
|
6 | <dl> | |
6 |
|
|
7 | <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> | |
7 | <li><p><%= format_time(e.event_datetime, false) %> <%= link_to truncate(e.event_title, 100), e.event_url %><br /> |
|
8 | <dt class="<%= e.class.name.downcase %>"><span class="time"><%= format_time(e.event_datetime, false) %></span> | |
8 | <% unless e.event_description.blank? %><em><%= truncate(e.event_description, 500) %></em><br /><% end %> |
|
9 | <%= link_to truncate(e.event_title, 100), e.event_url %></dt> | |
9 | <span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></p></li> |
|
10 | <dd><% unless e.event_description.blank? -%> | |
10 | <% end %> |
|
11 | <span class="description"><%= format_activity_description(e.event_description) %></span><br /> | |
11 | </ul> |
|
|||
12 | <% end %> |
|
12 | <% end %> | |
|
13 | <span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></dd> | |||
|
14 | <% end -%> | |||
|
15 | </dl> | |||
|
16 | <% end -%> | |||
|
17 | </div> | |||
13 |
|
18 | |||
14 | <% if @events_by_day.empty? %><p class="nodata"><%= l(:label_no_data) %></p><% end %> |
|
19 | <%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %> | |
15 |
|
20 | |||
16 | <div style="float:left;"> |
|
21 | <div style="float:left;"> | |
17 | <% prev_params = params.clone.update :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1) %> |
|
22 | <% 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;} | |||||
147 | div#issue-changesets .changeset { border-bottom: 1px solid #ddd; } |
|
147 | div#issue-changesets .changeset { border-bottom: 1px solid #ddd; } | |
148 | div#issue-changesets p { margin-top: 0; margin-bottom: 1em;} |
|
148 | div#issue-changesets p { margin-top: 0; margin-bottom: 1em;} | |
149 |
|
149 | |||
|
150 | div#activity dl { margin-left: 2em; } | |||
|
151 | div#activity dd { margin-bottom: 1em; } | |||
|
152 | div#activity dt { margin-bottom: 1px; } | |||
|
153 | div#activity dt .time { color: #777; font-size: 80%; } | |||
|
154 | div#activity dd .description { font-style: italic; } | |||
|
155 | ||||
150 | .autoscroll {overflow-x: auto; padding:1px; width:100%; margin-bottom: 1.2em;} |
|
156 | .autoscroll {overflow-x: auto; padding:1px; width:100%; margin-bottom: 1.2em;} | |
151 | #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; } |
|
157 | #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; } | |
152 |
|
158 |
General Comments 0
You need to be logged in to leave comments.
Login now