You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html.erb 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe %></h2>
  2. <p class="subtitle"><%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %></p>
  3. <%= render :partial => 'activities/activities', :locals => {:events_by_day => @events_by_day} %>
  4. <%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
  5. <span class="pagination">
  6. <ul class="pages">
  7. <li class="previous page">
  8. <%= link_to("\xc2\xab " + l(:label_previous),
  9. {:params => request.query_parameters.merge(:from => @date_to - @days - 1)},
  10. :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1)),
  11. :accesskey => accesskey(:previous)) %>
  12. </li><% unless @date_to > User.current.today %><li class="next page">
  13. <%= link_to(l(:label_next) + " \xc2\xbb",
  14. {:params => request.query_parameters.merge(:from => @date_to + @days - 1)},
  15. :title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1)),
  16. :accesskey => accesskey(:next)) %></li><% end %>
  17. </ul>
  18. </span>
  19. &nbsp;
  20. <% other_formats_links do |f| %>
  21. <%= f.link_to_with_query_parameters 'Atom', 'from' => nil, :key => User.current.atom_key %>
  22. <% end %>
  23. <% content_for :header_tags do %>
  24. <%= auto_discovery_link_tag(:atom, :params => request.query_parameters.merge(:from => nil, :key => User.current.atom_key), :format => 'atom') %>
  25. <% end %>
  26. <% content_for :sidebar do %>
  27. <%= form_tag({}, :method => :get, :id => 'activity_scope_form') do %>
  28. <h3><%= l(:label_activity) %></h3>
  29. <p>
  30. <%= t(:label_days_to_html, :days => @days, :date => date_field_tag('from', '', :value => (@date_to - 1), :size => 10)) %>
  31. <%= calendar_for('from') %>
  32. </p>
  33. <p>
  34. <%= l(:label_user) %>
  35. <%= select_tag('user_id', activity_authors_options_for_select(@project, params[:user_id]), include_blank: true) %>
  36. </p>
  37. <ul>
  38. <% @activity.event_types.each do |t| %>
  39. <li>
  40. <%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
  41. <label for="show_<%=t%>">
  42. <%= link_to(l("label_#{t.singularize}_plural"),
  43. {"show_#{t}" => 1, :user_id => params[:user_id], :from => params[:from]})%>
  44. </label>
  45. </li>
  46. <% end %>
  47. </ul>
  48. <% if @project && @project.descendants.visible.any? %>
  49. <%= hidden_field_tag 'with_subprojects', 0, :id => nil %>
  50. <p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
  51. <% end %>
  52. <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => 'submit' %></p>
  53. <% end %>
  54. <% end %>
  55. <% html_title(l(:label_activity), @author) -%>