2006-11-05 19:49:27 +03:00
|
|
|
<h2><%=l(:label_activity)%></h2>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<div class="rightbox">
|
|
|
|
<%= start_form_tag %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<p><%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
|
|
|
<%= select_year(@year, :prefix => "year", :discard_type => true) %></p>
|
2006-11-05 19:49:27 +03:00
|
|
|
<%= check_box_tag 'show_issues', 1, @show_issues %><%= hidden_field_tag 'show_issues', 0 %> <%=l(:label_issue_plural)%><br />
|
|
|
|
<%= check_box_tag 'show_news', 1, @show_news %><%= hidden_field_tag 'show_news', 0 %> <%=l(:label_news_plural)%><br />
|
|
|
|
<%= check_box_tag 'show_files', 1, @show_files %><%= hidden_field_tag 'show_files', 0 %> <%=l(:label_attachment_plural)%><br />
|
|
|
|
<%= check_box_tag 'show_documents', 1, @show_documents %><%= hidden_field_tag 'show_documents', 0 %> <%=l(:label_document_plural)%><br />
|
|
|
|
<p><center><%= submit_tag l(:button_apply), :class => 'button-small' %></center></p>
|
|
|
|
<%= end_form_tag %>
|
|
|
|
</div>
|
|
|
|
<% @events_by_day.keys.sort {|x,y| y <=> x }.each do |day| %>
|
2006-11-22 01:27:47 +03:00
|
|
|
<h3><%= day_name(day.cwday) %> <%= format_date(day) %></h3>
|
2006-11-05 19:49:27 +03:00
|
|
|
<ul>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% @events_by_day[day].sort {|x,y| y.created_on <=> x.created_on }.each do |e| %>
|
2006-11-05 19:49:27 +03:00
|
|
|
<li><p>
|
|
|
|
<% if e.is_a? Issue %>
|
|
|
|
<%= e.created_on.strftime("%H:%M") %> <%= e.tracker.name %> <%= link_to e.long_id, :controller => 'issues', :action => 'show', :id => e %> (<%= e.status.name %>): <%= e.subject %><br />
|
|
|
|
<i><%= e.author.name %></i>
|
|
|
|
<% elsif e.is_a? News %>
|
|
|
|
<%= e.created_on.strftime("%H:%M") %> <%=l(:label_news)%>: <%= link_to e.title, :controller => 'news', :action => 'show', :id => e %><br />
|
|
|
|
<% unless e.summary.empty? %><%= e.summary %><br /><% end %>
|
|
|
|
<i><%= e.author.name %></i>
|
|
|
|
<% elsif (e.is_a? Attachment) and (e.container.is_a? Version) %>
|
|
|
|
<%= e.created_on.strftime("%H:%M") %> <%=l(:label_attachment)%> (Version <%= e.container.name %>): <%= link_to e.filename, :controller => 'projects', :action => 'list_files', :id => @project %><br />
|
|
|
|
<i><%= e.author.name %></i>
|
|
|
|
<% elsif (e.is_a? Attachment) and (e.container.is_a? Document) %>
|
|
|
|
<%= e.created_on.strftime("%H:%M") %> <%=l(:label_document)%>: <%= link_to e.container.title, :controller => 'documents', :action => 'show', :id => e %><br />
|
|
|
|
<i><%= e.author.name %></i>
|
|
|
|
<% end %>
|
|
|
|
</p></li>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
|
|
|
<% end %>
|
2006-11-12 21:50:30 +03:00
|
|
|
<% if @events_by_day.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
|
|
|
<br />
|
2006-11-05 19:49:27 +03:00
|
|
|
</div>
|