Skip to content

Commit

Permalink
Add link to title of event
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Dec 31, 2024
1 parent d1db819 commit 56ad2c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/claper_web/live/event_live/event_card_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ defmodule ClaperWeb.EventLive.EventCardComponent do
<div class="px-4 py-4 sm:px-6">
<div class="flex items-center justify-between">
<div class="flex items-center">
<p class="text-lg font-medium text-primary-600 truncate">
<a
data-phx-link="patch"
data-phx-link-state="push"
class="text-lg font-medium text-primary-600 truncate"
href={~p"/e/#{@event.code}/manage"}
>
<%= @event.name %>
</p>
</a>
<p
:if={@event.lti_resource}
class="text-xs text-white rounded-md px-2 py-0.5 bg-gray-500 mx-2 flex items-center space-x-1"
Expand Down

0 comments on commit 56ad2c1

Please sign in to comment.