Mercurial > hg > soundsoftware-site
view .svn/pristine/bc/bc5cd9a0ce7e6dce66f1e1a15e9e36c9090b2ffd.svn-base @ 1087:74407a04925c issue_540
* (publication.rb) - fixed the acts_as_activity query (see diff to previous commit) - not returning duplicate results any longer; added the visible scope to the publication model;
* (init.rb) - created a new public permission - view_publication.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 23 Nov 2012 17:25:27 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
<h3><%= l(:label_calendar) %></h3> <% calendar = Redmine::Helpers::Calendar.new(Date.today, current_language, :week) calendar.events = Issue.visible.find :all, :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], :include => [:project, :tracker, :priority, :assigned_to] unless @user.projects.empty? %> <%= render :partial => 'common/calendar', :locals => {:calendar => calendar } %>