Sha256: 4114dd8b4fa19d552c8fd53c0df811ed6aea9acc278604b7c20e709b55be0416
Contents?: true
Size: 1.19 KB
Versions: 7
Compression:
Stored size: 1.19 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', 'resource_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
7 entries across 7 versions & 2 rubygems