##// END OF EJS Templates
Add predefined date ranges to the time report in the same way as the details view (closes #972). It nows defaults to 'All time'....
Add predefined date ranges to the time report in the same way as the details view (closes #972). It nows defaults to 'All time'. This patch also fixes time report periods (columns) computation. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1318 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1164:b6bd5c7f12af
r1303:043cb37b161d
Show More
calendar.rhtml
41 lines | 2.4 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Slight changes to calendar and activity h2 titles....
r1133 <h2><%= "#{month_name(@month)} #{@year}" %></h2>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
<table width="100%">
Jean-Philippe Lang
Application layout refactored....
r736 <tr><td align="left">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= link_to_remote ('&#171; ' + (@month==1 ? "#{month_name(12)} #{@year-1}" : "#{month_name(@month-1)}")),
Jean-Philippe Lang
Added the ability to include subprojects issues on calendar & gantt (options box)...
r395 {:update => "content", :url => { :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1), :tracker_ids => @selected_tracker_ids, :with_subprojects => params[:with_subprojects] }},
{:href => url_for(:action => 'calendar', :year => (@month==1 ? @year-1 : @year), :month =>(@month==1 ? 12 : @month-1), :tracker_ids => @selected_tracker_ids, :with_subprojects => params[:with_subprojects])}
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 %>
Jean-Philippe Lang
Application layout refactored....
r736 </td><td align="right">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= link_to_remote ((@month==12 ? "#{month_name(1)} #{@year+1}" : "#{month_name(@month+1)}") + ' &#187;'),
Jean-Philippe Lang
Added the ability to include subprojects issues on calendar & gantt (options box)...
r395 {:update => "content", :url => { :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1), :tracker_ids => @selected_tracker_ids, :with_subprojects => params[:with_subprojects] }},
{:href => url_for(:action => 'calendar', :year => (@month==12 ? @year+1 : @year), :month =>(@month==12 ? 1 : @month+1), :tracker_ids => @selected_tracker_ids, :with_subprojects => params[:with_subprojects])}
Jean-Philippe Lang
Application layout refactored....
r736 %>
</td></tr>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </table>
Jean-Philippe Lang
Calendar:...
r804 <%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
<%= image_tag 'arrow_from.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_day) %><br />
<%= image_tag 'arrow_to.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_end_day) %><br />
Jean-Philippe Lang
Added fragment caching for calendar and gantt views...
r512 <%= image_tag 'arrow_bw.png' %>&nbsp;&nbsp;<%= l(:text_tip_task_begin_end_day) %><br />
Jean-Philippe Lang
Application layout refactored....
r736
<% content_for :sidebar do %>
<h3><%= l(:label_calendar) %></h3>
<% form_tag() do %>
<p><%= select_month(@month, :prefix => "month", :discard_type => true) %>
<%= select_year(@year, :prefix => "year", :discard_type => true) %></p>
<% @trackers.each do |tracker| %>
Jean-Philippe Lang
Added label tags on various checkboxes....
r778 <label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s) %> <%= tracker.name %></label><br />
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
<% if @project.active_children.any? %>
Jean-Philippe Lang
Include subprojects on the issue list, calendar and gantt by default....
r1164 <br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label>
<%= hidden_field_tag 'with_subprojects', 0 %>
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
Jean-Philippe Lang
Include subprojects on the issue list, calendar and gantt by default....
r1164 <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
<% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_calendar)) -%>