Sha256: a01147c320953f483c49e4947dd5ecd72b818ad12f3e8fbf6bb24698f0da4be4

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 KB

Contents

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

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
voluntary_recruiting-0.1.0 app/views/workflow/project_owner/_vacancies.html.erb
voluntary_recruiting-0.0.1 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.3.0 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.2.4 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.2.3 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.2.2 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.2.1 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.2.0 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.1.0 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.1.0.rc4 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.1.0.rc3 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.1.0.rc2 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.1.0.rc1 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.0.3 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.0.2 app/views/workflow/project_owner/_vacancies.html.erb
voluntary-0.0.1 app/views/workflow/project_owner/_vacancies.html.erb