iron-cms 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/iron/home/show.html.erb +4 -2
- data/lib/iron/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e0783a99d417e9bc079a93a0ea7da203807aad4ab2ad99446ebf05546d3decd4
|
|
4
|
+
data.tar.gz: ac2aea8faf5fd1d76e0e2825ad0e98503f59a654acd6d8c1dd9c745dba0013ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 515d3da7224e4842eb9c6dc00c2082a631031e478ac15f397a863c93a0fd00578bfc0daa4f9fd3da6e5911bf84104426b5c2c5104a09fcf4b913adb400e66a58
|
|
7
|
+
data.tar.gz: af94f070a089571e535f2c2b427535010adca2b592edc3d7a0c40117b39b2bfcf5b4943ad2331d9816097d1f295ab3dd1c7acaf747676883a46760dc7b61aac1
|
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
<% if @recent_entries.any? %>
|
|
13
13
|
<div class="bg-white dark:bg-stone-800/50 rounded-lg shadow-sm divide-y divide-stone-200 dark:divide-stone-700/20 overflow-hidden">
|
|
14
14
|
<% @recent_entries.each do |entry| %>
|
|
15
|
+
<% entry_title = entry.content_type.single? ? entry.content_type.name : entry.title %>
|
|
16
|
+
<% entry_path = entry.content_type.single? ? entry_content_type_path(entry.content_type) : edit_entry_path(entry) %>
|
|
15
17
|
<div class="relative">
|
|
16
|
-
<%= link_to
|
|
18
|
+
<%= link_to entry_path, class: "block px-6 py-4 hover:bg-stone-50 dark:hover:bg-stone-800/50 transition-colors" do %>
|
|
17
19
|
<div class="flex items-start justify-between gap-4 pr-6">
|
|
18
20
|
<div class="flex flex-col gap-1 min-w-0 flex-1">
|
|
19
|
-
<h3 class="text-base font-semibold text-stone-900 dark:text-white truncate"><%=
|
|
21
|
+
<h3 class="text-base font-semibold text-stone-900 dark:text-white truncate"><%= entry_title %></h3>
|
|
20
22
|
<div class="flex items-center gap-2 text-sm text-stone-500 dark:text-stone-400">
|
|
21
23
|
<%= badge entry.content_type.name, class: "badge-blue" %>
|
|
22
24
|
<span>·</span>
|
data/lib/iron/version.rb
CHANGED