Sha256: 659a967d379babe699e1daa211ce76c405e84c19c906ac43755856fcf781742c

Contents?: true

Size: 605 Bytes

Versions: 16

Compression:

Stored size: 605 Bytes

Contents

<!-- This probably needs a rename, but for the moment is ok -->

<% if (resources = Typus.resources.delete_if { |r| !(admin_user.is_a?(FakeUser) || admin_user.resources.include?(r)) }).any? %>

  <h2><%= Typus::I18n.t("Resources") %></h2>

  <table>

    <thead>
      <tr>
        <th><%= Typus::I18n.t("Name") %></th>
      </tr>
    </thead>

    <% resources.each do |resource| %>
      <tr class="<%= cycle("even", "odd") %>">
        <td><%= link_to Typus::I18n.t(resource.titleize.capitalize), :controller => "/admin/#{resource.underscore}" %></td>
      </tr>
    <% end %>

  </table>

<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
typus-3.1.10 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.9 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.8 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.7 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.6 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.5 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.4 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.3 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.2 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.1 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.0 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.0.rc19 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.0.rc18 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.0.rc17 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.0.rc16 app/views/admin/dashboard/widgets/_resources.html.erb
typus-3.1.0.rc15 app/views/admin/dashboard/widgets/_resources.html.erb