To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / my / blocks / _calendar.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (621 Bytes)
| 1 | 0:513646585e45 | Chris | <h3><%= l(:label_calendar) %></h3> |
|---|---|---|---|
| 2 | |||
| 3 | <% calendar = Redmine::Helpers::Calendar.new(Date.today, current_language, :week)
|
||
| 4 | calendar.events = Issue.visible.find :all,
|
||
| 5 | :conditions => ["#{Issue.table_name}.project_id in (#{@user.projects.collect{|m| m.id}.join(',')}) AND ((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?))", calendar.startdt, calendar.enddt, calendar.startdt, calendar.enddt],
|
||
| 6 | :include => [:project, :tracker, :priority, :assigned_to] unless @user.projects.empty? %>
|
||
| 7 | |||
| 8 | <%= render :partial => 'common/calendar', :locals => {:calendar => calendar } %> |