Sha256: 223622ec57ddecc334df28230493060026339dd33d487d38159037d37329d2b1

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

<tr>
  <% (child.depth - @department.depth).times.each do |d| %>
    <td></td>
  <% end %>
  <td colspan="<%= child.col_span %>">
    <i class="grey caret right icon"></i>
    <%= link_to admin_department_path(child) do %>
      <span><%= child.name %></span>
      <span class="grey text">(<%= child.all_member_departments_count %>)</span>
    <% end %>
  </td>
  <td>
    <%= child.needed_member %> /
    <span class="<%= active_asserts('red': child.needed_member.to_i > child.member_departments_count, 'grey': child.needed_member.to_i == child.member_departments_count, 'green': child.needed_member.to_i < child.member_departments_count) %> text">
      <%= child.member_departments_count %>
    </span>
  </td>
  <td>
    <% child.members.each do |member| %>
      <span><%= member.name %></span>
    <% end %>
  </td>
  <td>
    <%#= link_to 'JD', admin_department_job_descriptions_path(child), class: 'ui blue label' %>
    <%= link_to 'Supports', admin_supports_path(department_id: child.id), class: 'ui yellow label' %>
    <%= link_to 'Need', need_admin_department_path(child), class: 'ui pink label' %>
  </td>
</tr>



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/views/org/me/departments/_department.html.erb