diff --git a/lib/phoenix/live_dashboard/components/layered_graph_component.ex b/lib/phoenix/live_dashboard/components/layered_graph_component.ex index 3de7af95..f395922d 100644 --- a/lib/phoenix/live_dashboard/components/layered_graph_component.ex +++ b/lib/phoenix/live_dashboard/components/layered_graph_component.ex @@ -140,13 +140,13 @@ defmodule Phoenix.LiveDashboard.LayeredGraphComponent do <%= if circle.show_detail? do %> - <%= circle.label %> + {circle.label} - <%= circle.detail %> + {circle.detail} <% else %> - <%= circle.label %> + {circle.label} <% end %> diff --git a/lib/phoenix/live_dashboard/components/nav_bar_component.ex b/lib/phoenix/live_dashboard/components/nav_bar_component.ex index c12aee88..fb5b7820 100644 --- a/lib/phoenix/live_dashboard/components/nav_bar_component.ex +++ b/lib/phoenix/live_dashboard/components/nav_bar_component.ex @@ -144,13 +144,13 @@ defmodule Phoenix.LiveDashboard.NavBarComponent do {item_link_href(@socket, @page, item, @nav_param, @extra_params)} class={item_link_class(item, @current)} > - <%= item_label(item) %> + {item_label(item)} - <%= render_slot(@current) %> + {render_slot(@current)} """ end diff --git a/lib/phoenix/live_dashboard/components/table_component.ex b/lib/phoenix/live_dashboard/components/table_component.ex index 236e47d7..b2f745c6 100644 --- a/lib/phoenix/live_dashboard/components/table_component.ex +++ b/lib/phoenix/live_dashboard/components/table_component.ex @@ -178,16 +178,16 @@ defmodule Phoenix.LiveDashboard.TableComponent do
- <%= @rows_name %> out of <%= @total %> + {@rows_name} out of {@total}
<% else %>
- Showing <%= @total %> <%= @rows_name %> + Showing {@total} {@rows_name}
<% end %> @@ -208,7 +208,7 @@ defmodule Phoenix.LiveDashboard.TableComponent do column={column} /> <% else %> - <%= column[:header] || column[:field] %> + {column[:header] || column[:field]} <% end %> @@ -217,9 +217,9 @@ defmodule Phoenix.LiveDashboard.TableComponent do <%= if column[:inner_block] do %> - <%= render_slot(column, row) %> + {render_slot(column, row)} <% else %> - <%= row[column.field] |> to_string() %> + {row[column.field] |> to_string()} <% end %> @@ -265,7 +265,7 @@ defmodule Phoenix.LiveDashboard.TableComponent do if assigns.table_params.sort_by == assigns.column.field do ~H""" <.link patch={PageBuilder.live_dashboard_path(@socket, @page, reverse_sort_dir(@table_params))}> - <%= column_header(@column) %> + {column_header(@column)} <.sort_link_icon dir={@table_params.sort_dir} /> """ @@ -274,7 +274,7 @@ defmodule Phoenix.LiveDashboard.TableComponent do <.link patch={ PageBuilder.live_dashboard_path(@socket, @page, replace_sort_dir(@table_params, @column)) }> - <%= column_header(@column) %> + {column_header(@column)} """ end diff --git a/lib/phoenix/live_dashboard/components/title_bar_component.ex b/lib/phoenix/live_dashboard/components/title_bar_component.ex index 57251289..fcd59b9d 100644 --- a/lib/phoenix/live_dashboard/components/title_bar_component.ex +++ b/lib/phoenix/live_dashboard/components/title_bar_component.ex @@ -10,7 +10,7 @@ defmodule Phoenix.LiveDashboard.TitleBarComponent do
- <%= render_slot(@inner_block) %> + {render_slot(@inner_block)}