Sha256: 299741466c2a456b5ec50682d59f42e1cd2d73c2033cec9d981bda9849924335

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

        <div class="tabs">
          <ul>
<% Candidature::STATES.each do |state| %>          
            <li>
              <a href="#<%= state %>_candidatures">
                <%= I18n.t("candidatures.show.states.#{state}") %>
  <% if @candidatures[state].length == 5 %>
                (<%= @candidatures[state].length %>+) 
  <% elsif @candidatures[state].length > 0 %>
                (<%= @candidatures[state].length %>) 
  <% end %> 
              </a>
            </li>
<% end %>
          </ul>
<% Candidature::STATES.each do |state| %>        
          <div id="<%= state %>_candidatures">
            <%= render partial: 'shared/collection/table', locals: { 
              type: 'candidatures', collection: @candidatures[state], 
              columns: { 
                'project_id' => 'vacancy.project', 'vacancy_id' => '', 'name' => 'user.name', 'user_id' => ''
              },
              options: {show_title: false, append_new_link: false }
            } %>
            
  <% if @candidatures[state].length == 5 %>            
            <p><%= link_to t('general.more'), eval("#{state}_workflow_candidatures_path") %></p>
  <% end %>
          </div> 
<% end %>
        </div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
voluntary-0.1.0 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.1.0.rc4 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.1.0.rc3 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.1.0.rc2 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.1.0.rc1 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.0.3 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.0.2 app/views/workflow/project_owner/_candidatures.html.erb
voluntary-0.0.1 app/views/workflow/project_owner/_candidatures.html.erb