Sha256: 3f0a9ccdaa7b28588d774f725ade0566cd388fc8ad42aca77d757c30fb85715b

Contents?: true

Size: 1.21 KB

Versions: 21

Compression:

Stored size: 1.21 KB

Contents

        <div class="tabs">
          <ul>
<% @tasks.keys.each do |state| %>          
            <li>
              <a href="#<%= state %>_tasks">
                <%= I18n.t("tasks.show.states.#{state}") %>
  <% if @tasks[state].length == 5 %>
                (<%= @tasks[state].length %>+) 
  <% elsif @tasks[state].length > 0 %>
                (<%= @tasks[state].length %>) 
  <% end %> 
              </a>
            </li>
<% end %>
          </ul>
<% @tasks.keys.each do |state| %>        
          <div id="<%= state %>_tasks">
            <%= render 'shared/collection/table', {
              type: 'tasks', collection: @tasks[state], 
              columns: {
                'name' => Proc.new{|resource| link_to(resource.name, edit_task_workflow_project_owner_index_path(resource)) }, 
                'story_id' => nil, 'user_id' => nil
              },
              options: {
                show_title: false, append_new_link: false, show_actions: false
              }
            } %>
            
  <% if @tasks[state].length == 5 %>            
            <p><%= link_to t('general.more'), eval("#{state}_workflow_tasks_path") %></p>
  <% end %>
          </div> 
<% end %>
        </div>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
voluntary-0.7.1 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.7.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.6.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.5.2 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.5.1 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.5.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.4.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.3.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.2.4 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.2.3 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.2.2 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.2.1 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.2.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.1.0 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.1.0.rc4 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.1.0.rc3 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.1.0.rc2 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.1.0.rc1 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.0.3 app/views/workflow/project_owner/_tasks.html.erb
voluntary-0.0.2 app/views/workflow/project_owner/_tasks.html.erb