chore(chat): interpolate values using new curly braces syntax
This commit is contained in:
@@ -9,7 +9,7 @@ defmodule SlaxWeb.ChatRoomLive.Edit do
|
||||
~H"""
|
||||
<div class="mx-auto w-96 mt-12">
|
||||
<.header>
|
||||
<%= @page_title %>
|
||||
{@page_title}
|
||||
<:actions>
|
||||
<.link
|
||||
class="font-normal text-xs text-blue-600 hover:text-blue-700"
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user