feat(pastes): add new page to show owned pastes
Signed-off-by: SphericalKat <amolele@gmail.com>
This commit is contained in:
5 files changed
+28
No files matched your search
@@ -20,6 +20,7 @@ function toggleDropdown() {
|
||||
<div id="dropdown" class="hidden right-0 z-50 bg-[#313131] px-4 py-2">
|
||||
<li><%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %></li>
|
||||
<li><%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
|
||||
<li><%= link "My Pastes", to: Routes.page_path(@conn, :pastes) %></li>
|
||||
</div>
|
||||
</div>
|
||||
<% else %>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="flex relative flex-col w-full h-full">
|
||||
<ul class="break-word py-4 h-full w-full overflow-y-auto">
|
||||
<%= for paste <- @pastes do %>
|
||||
<li class="flex flex-row items-center justify-between">
|
||||
<a href={ Routes.page_path(@conn, :show, paste) } class="">
|
||||
https://katb.in/v/<%= paste.id %>
|
||||
</a>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
Reference in new issue
Block a user