Sha256: 2cb1d765d9db0984e428c988dff0b087bc860fbd8394cc20cc41e011bf93f603
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
<%@page_title = @backlog.name %> <div id="spotlight"> <div class="btitle"> <%=render :partial => 'buttons' %><h4><%=l :tasks %></h4> </div> <div id="active_tasks"<%=' style="display: none;"' 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 @backlog.enable_periods %> <%=render :partial => '/tasks/fields_header', :locals => {:backlog => @backlog, :active => true, :track_todo => @backlog.track_todo?, :track_done => @backlog.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_backlog => 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 %> <% end %> <p id="no_tasks_message"<%=' style="display: none;"' if @tasks and not @tasks.empty? %>> <%=l :no_pending_tasks_in_backlog %> </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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
backlog-0.17.5 | app/views/backlogs/show.rhtml |