Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/dashboard_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def admin
@user_content_cards = [
{ title: "Bookmarks tally", path: tally_bookmarks_path, icon: "🔖",
bg_color: "bg-gray-50", text_color: "text-gray-800" },
{ title: "Recent Activity", path: dashboard_recent_activities_path, icon: "🧭",
{ title: "Recent portal activity", path: dashboard_recent_activities_path, icon: "🧭",
bg_color: "bg-gray-50", text_color: "text-gray-800" },
{ title: "Event Registrations", path: event_registrations_path, icon: "🎟️",
bg_color: "bg-blue-100", text_color: "text-blue-800" },
Expand Down Expand Up @@ -80,7 +80,7 @@ def admin
bg_color: "bg-gray-50", text_color: "text-gray-800" },
{ title: "Organizations", path: projects_path, icon: "🏫",
bg_color: "bg-gray-50", text_color: "text-gray-800" },
{ title: "Users", path: users_path, icon: "👥",
{ title: "User accounts", path: users_path, icon: "👥",
bg_color: "bg-gray-50", text_color: "text-gray-800" },
{ title: "!!!Forms", path: authenticated_root_path, icon: "📋",
bg_color: "bg-gray-50", text_color: "text-gray-800" },
Expand Down
16 changes: 11 additions & 5 deletions app/views/dashboard/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@

</a>
<% end %>
<% @reference_cards.each do |card| %>
</div>

<!-- Column 2 -->
<div class="flex flex-col gap-4 flex-1">
User-generated content
<% @user_content_cards.each do |card| %>
<a href="<%= card[:path] %>"
class="flex items-center gap-6 rounded-lg shadow-lg border border-gray-200
<%= card[:bg_color] %> <%= card[:text_color] %>
Expand All @@ -39,11 +44,12 @@
</a>
<% end %>
</div>
</div>

<!-- Column 2 -->
<div class="flex flex-col gap-4 flex-1">
User-generated content
<% @user_content_cards.each do |card| %>
<div class="mt-20">
Base data
<div class="flex gap-6 mt-3">
<% @reference_cards.each do |card| %>
<a href="<%= card[:path] %>"
class="flex items-center gap-6 rounded-lg shadow-lg border border-gray-200
<%= card[:bg_color] %> <%= card[:text_color] %>
Expand Down