Sha256: 51ec4b3ba600e6a31e1e16e6da833ae8481e903c4a1595e1295f845c4cf6c54e
Contents?: true
Size: 1.97 KB
Versions: 2
Compression:
Stored size: 1.97 KB
Contents
<%@page_title = @project.name %> <div id="spotlight"> <div class="btitle"> <%=render :partial => 'buttons' %><h4><%=l :tasks %></h4> </div> <div id="active_tasks"<%=' style="display: none;"'.html_safe unless @tasks and not @tasks.empty? %>> <%i = 0 %> <% periods = @tasks.map {|t| t.period}.uniq %> <% list_ids = periods.map {|period| "active_tasks_#{period && period.id}"} %> <%for period in periods %> <% tasks_in_period = @tasks.select {|t| t.period_id == (period && period.id)} %> <% work_done = !tasks_in_period.find{|t| t.total_done > 0}.nil? %> <div id="active_period_<%=period && period.id%>"> <%=render :partial => '/tasks/period_header', :locals => {:period => period} if @project.enable_periods %> <%=render :partial => '/tasks/fields_header', :locals => {:project => @project, :active => true, :track_todo => @project.track_todo?, :track_done => @project.track_done?, :track_times => tasks_in_period.find {|t|t.period && t.period.active?}, :work_done => work_done} %> <ul id="active_tasks_<%=period && period.id%>" class="task_list"> <%for @task in tasks_in_period %> <%=render :partial => '/tasks/task/', :locals => {:task => @task, :i => i += 1, :active => true, :highlight_task => false, :update => :maincontent, :show_project => false, :hidden => false} %> <%end %> </ul> </div> <% end %> </div> <%for list_id in list_ids %> <%=sortable_element list_id, :url => { :action => :order }, :containment => list_ids, :constraint => false, :dropOnEmpty => true %> <% end %> <p id="no_tasks_message"<%=' style="display: none;"' if @tasks and not @tasks.empty? %>> <%=l :no_pending_tasks_in_project %> </p> <%=back_or_link_to(l(:back)) %> </div> <div id="maincontent"> <div class="mainblock"> <div class="btitle"> <h4><%=l(:completed_tasks) %></h4> </div> <%=render :partial => '/tasks/completed', :locals => {:i => 1} %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
backlog-0.37.2 | app/views/projects/show.rhtml |
backlog-0.37.1 | app/views/projects/show.rhtml |