Sha256: 9322f92a770bcea7daa3d33eb863a0b9d09e5a5f25da679b57ec471b2e60b061
Contents?: true
Size: 1.77 KB
Versions: 2
Compression:
Stored size: 1.77 KB
Contents
<%= render PandaCms::Admin::ContainerComponent.new do |component| %> <% component.with_heading(text: "Dashboard", level: 1) do |heading| %> <% heading.with_button(action: :add, text: "Add Page", link: new_admin_page_path) %> <% end %> <div class=""> <dl class="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3"> <div class="overflow-hidden rounded-lg bg-white px-4 py-5 shadow sm:p-6"> <dt class="truncate text-sm font-medium text-gray-500">Page Views Today</dt> <dd class="mt-1 text-3xl font-medium tracking-tight text-gray-900"><%= PandaCms::Visit.group_by_day(:visited_at, last: 1).count.values.first %></dd> </div> <div class="overflow-hidden rounded-lg bg-white px-4 py-5 shadow sm:p-6"> <dt class="truncate text-sm font-medium text-gray-500">Page Views In Last Week</dt> <dd class="mt-1 text-3xl font-medium tracking-tight text-gray-900"><%= PandaCms::Visit.group_by_week(:visited_at, last: 1).count.values.first %></dd> </div> <div class="overflow-hidden rounded-lg bg-white px-4 py-5 shadow sm:p-6"> <dt class="truncate text-sm font-medium text-gray-500">Page Views In Last Month</dt> <dd class="mt-1 text-3xl font-medium tracking-tight text-gray-900"><%= PandaCms::Visit.group_by_month(:visited_at, last: 1).count.values.first %></dd> </div> </dl> </div> <div class="ring-1 ring-gray-300 mt-5 rounded-lg shadow col-span-3"> <h3 class="text-base font-medium px-4 py-5 sm:px-6 leading-6 text-gray-900">Notifications</h3> <div class="bg-white p-4 rounded-b-lg"> <p class="text-base leading-loose"><i class="fa fa-duotone fa-exclamation-circle text-red-800 mr-2"></i> <span class="font-medium">Domain:</span> <%= request.domain %> <%= @domain_expiry %></p> </div> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
panda_cms-0.3.15 | app/views/panda_cms/admin/dashboard/show.html.erb |
panda_cms-0.3.14 | app/views/panda_cms/admin/dashboard/show.html.erb |