<% content_for :title, "Dashboard" %>

Gesamtbestand

Registrierte Unikate

<%= Item.count %>

Kategorien

Geräte-Typen

<%= Category.count %>

Räume & Büros

Erfasste Standorte

<%= Room.count %>

Zuletzt hinzugefügt

<% @recent_items.each.each do |item| %> <% end %>
<%= link_to item_path(item), class: "shrink-0 transition hover:scale-105 active:scale-95 block" do %> #<%= item.sticker_id %> <% end %>
<%= link_to item_path(item), class: "font-bold text-gray-900 hover:text-blue-600 hover:underline inline leading-tight" do %> <%= item.name %> <% end %> <%= item.category.name %>
<% if item.user.present? %> <%= item.user.name %> <% elsif item.room.present? %> <%= link_to room_path item.room do %> <%= item.room.name %> <% end %> <% else %> Hauptlager <% end %> <%= time_ago_in_words(item.created_at) %>

Letzte Aktivitäten

<% @recent_assignments.each do |log| %> <% end %>
<%= link_to item_path(log.item), class: "shrink-0 transition hover:scale-105 active:scale-95 block" do %> #<%= log.item.sticker_id %> <% end %>
<% if log.item.present? %> <%= link_to item_path(log.item), class: "font-bold text-gray-900 hover:text-blue-600 hover:underline inline leading-tight" do %> <%= log.item.name %> <% end %> <% else %> Gelöschter Artikel <% end %>
<% if log.user.present? %> <%= log.user.name %> zugewiesen <% elsif log.room.present? %> <%= link_to room_path log.room do %> In <%= log.room.name %> platziert <% end %> <% else %> Hauptlager zurückgebracht <% end %>
<%= time_ago_in_words(log.assigned_at) %>