Sha256: b392349bedd1068bb8839c6808d81179da97bead937c23b69118c3dfcc46011a

Contents?: true

Size: 1.06 KB

Versions: 13

Compression:

Stored size: 1.06 KB

Contents

<%
  applications = admin_user.applications

  if params[:application]
    applications.reject! { |a| a.parameterize != params[:application] }
  end
%>

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

<div class="row">

  <% if applications.any? %>
    <% applications.each do |app| %>
      <div class="span3">
        <div class="well">
          <table class="table">

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

            <% admin_user.application(app).map(&:constantize).each do |klass| %>
              <% unless klass.typus_options_for(:hide_from_dashboard) %>
                <tr>
                  <td>
                    <%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %>
                  </td>
                </tr>
              <% end %>
            <% end %>

          </table>
        </div>
      </div>
    <% end %>
  <% else %>
    <div class="notice">
      <%= Typus::I18n.t("No applications detected.") %>
    </div>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
brainsome_typus-4.0.0.beta13 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta12 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta11 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta10 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta9 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta8 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta7 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta6 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta5 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta4 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta3 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta2 app/views/admin/dashboard/widgets/_applications.html.erb
brainsome_typus-4.0.0.beta1 app/views/admin/dashboard/widgets/_applications.html.erb