chore(chat): interpolate values using new curly braces syntax

This commit is contained in:
2024-12-24 00:05:51 +00:00
parent cd45664a63
commit ada10afa96
6 changed files with 41 additions and 39 deletions

View File

@@ -8,7 +8,7 @@ defmodule SlaxWeb.ChatRoomLive.Index do
~H"""
<main class="flex-1 p-6 max-w-4xl mx-auto">
<div class="mb-4">
<h1 class="text-xl font-semibold"><%= @page_title %></h1>
<h1 class="text-xl font-semibold">{@page_title}</h1>
</div>
<div class="bg-slate-50 border rounded">
<div id="rooms" class="divide-y" phx-update="stream">
@@ -20,7 +20,7 @@ defmodule SlaxWeb.ChatRoomLive.Index do
>
<div>
<div class="font-medium mb-1">
#<%= room.name %>
#{room.name}
<span class="mx-1 text-gray-500 font-light text-sm opacity-0 group-hover:opacity-100">
View room
</span>
@@ -33,7 +33,7 @@ defmodule SlaxWeb.ChatRoomLive.Index do
<span class="mx-1">·</span>
<% end %>
<%= if room.topic do %>
<%= room.topic %>
{room.topic}
<% end %>
</div>
</div>