Skip to content

Commit 72a9f32

Browse files
add new files btn on chunks list
1 parent 07404be commit 72a9f32

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/fileonchain_web/live/chunks_live/index.html.heex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<div class="mx-auto max-w-4xl p-12 bg-brand-900 text-white rounded-lg shadow-lg">
22
<.header class="text-center text-white text-2xl">
33
Listing Chunks
4+
<:actions>
5+
<.link patch={~p"/files/new"} class="font-semibold hover:underline text-secondary-light">
6+
<.button class="bg-secondary hover:bg-secondary-dark text-white p-4 rounded">New File</.button>
7+
</.link>
8+
</:actions>
49
</.header>
510

611
<.table

0 commit comments

Comments
 (0)