Sha256: f6f94156c6df16710e4a853e6cbf09c88be81ab54afc526f55090ec2d4b9e8f5

Contents?: true

Size: 1.81 KB

Versions: 4

Compression:

Stored size: 1.81 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? %>>
        <%#=render :partial => '/tasks/backlog_header', :locals => {:backlog => @backlog, :track_times => @tasks.find {|t|t.period && t.period.active?}} %>
		<%i = 0 %>
		<%for period in @tasks.map {|t| t.period}.uniq %>
		    <% tasks_in_period = @tasks.select {|t| t.period_id == (period && period.id)} %>
			<% work_done = !tasks_in_period.find{|t| t.total_done > 0}.nil? %>
        	<ul id="active_tasks_<%=period ? period.id : '' %>" class="task_list">
            	<%=render :partial => '/tasks/period_header', :locals => {:period => period} if @backlog.enable_periods %>
				<%=render :partial => '/tasks/fields_header', :locals => {:backlog => @backlog, :active => true, :track_times => tasks_in_period.find {|t|t.period && t.period.active?}, :work_done => work_done} %>
				<%for @task in tasks_in_period %>
					<%=render :partial => '/tasks/task/', :locals => {:task => @task, :i => i += 1, :active => true, :highlight_task => false, :update => :maincontent, :hidden => false} %>
				<%end %>
        	</ul>
            <%=sortable_element "active_tasks_#{period ? period.id : ''}", :url => { :action => :order }, :constraint => false %>
        <%end %>
    </div>
    <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

4 entries across 4 versions & 1 rubygems

Version Path
backlog-0.17.0 app/views/backlogs/show.rhtml
backlog-0.17.1 app/views/backlogs/show.rhtml
backlog-0.17.2 app/views/backlogs/show.rhtml
backlog-0.17.3 app/views/backlogs/show.rhtml