%= link_to day.day.to_s, edit_work_shift_path(:id => 1, :date => day.to_s, :view_type => @view_type, :empl_id => params[:empl_id]), :method => :get %>
- <%=link_to(("На объектах: " + @reports.select{|i| i.shift_date.to_date == day}.size.to_s), constr_works_path(:date_from => day, :date_to => day), :class => "red", :style =>"margin-left: 0%;") %>
- .
- <% shifts = @shifts.select{|i| i.shift_date.to_date == day && i.status == 1}.sort_by{|i| i.employee.nic.downcase} %>
<%="Смен: "+ shifts.count.to_s %>
<% shifts.each do |l| %>
- <%= l.employee.nic %> (<%= l.employee.surname.to_s + " " + l.employee.name.to_s %> )
<% end -%>
- <% with_comment = @shifts.select{|i| i.status != 1 && i.shift_date.to_date == day && !i.description.blank? }.sort_by{|i| i.employee.nic.downcase} %>
<%="Не работали: "+ with_comment.count.to_s %>
<% with_comment.each do |l| %>
- <%= l.employee.nic %> (<%= l.employee.surname.to_s + " " + l.employee.name.to_s %> ): <%= l.description%>
<% end -%>