Sha256: bcfb9170f0903cce93ea5add0a46415f4f78e40e3264317eac4ce9fdea63bd1b

Contents?: true

Size: 645 Bytes

Versions: 14

Compression:

Stored size: 645 Bytes

Contents

<%
  @values         = []
  @page_total     = Lalala::Page::all.count
  @post_total     = Article::all.count rescue Post::all.count
  @assets_total   = "n/a"
  @user_total     = Lalala::AdminUser::all.count

  # fill array
  @values << ["pages",@page_total]
  @values << ["posts",@post_total]
  @values << ["files",@assets_total]
  @values << ["user(s)",@user_total]

%>
<div class="mod-dashboard">

  <div class="stats count_<%= @values.length %>">
    <ul>
      <% @values.each do |title,val| %>
      <li>
        <p class="val"><%= val %></p>
        <p class="title"><%= title %></p>
      </li>
      <% end %>
    </ul>
  </div>

</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lalala-4.1.0.dev.324 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.322 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.321 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.318 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.316 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.314 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.309 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.305 test/dummy/app/views/admin/_stats.html.erb
lalala-4.1.0.dev.299 test/dummy/app/views/admin/_stats.html.erb
lalala-4.0.0.dev.291 test/dummy/app/views/admin/_stats.html.erb
lalala-4.0.0.dev.288 test/dummy/app/views/admin/_stats.html.erb
lalala-4.0.0.dev.285 test/dummy/app/views/admin/_stats.html.erb
lalala-4.0.0.dev.284 test/dummy/app/views/admin/_stats.html.erb
lalala-4.0.0.dev.283 test/dummy/app/views/admin/_stats.html.erb