diff --git a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/edit.html.heex b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/edit.html.heex index 3022c54..ce0bdb4 100644 --- a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/edit.html.heex +++ b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/edit.html.heex @@ -2,7 +2,9 @@ <.link href={~p"/media_profiles"}> <.icon name="hero-arrow-left" class="w-10 h-10 hover:dark:text-white" /> -

Edit Media Profile

+

+ Editing "<%= @media_profile.name %>" +

diff --git a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex index 6ebc5b0..0cff841 100644 --- a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex +++ b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex @@ -4,7 +4,7 @@ <.icon name="hero-arrow-left" class="w-10 h-10 hover:dark:text-white" />

- Media Profile + <%= @media_profile.name %>

diff --git a/lib/pinchflat_web/controllers/searches/search_html/show.html.heex b/lib/pinchflat_web/controllers/searches/search_html/show.html.heex index b592391..de5d3c4 100644 --- a/lib/pinchflat_web/controllers/searches/search_html/show.html.heex +++ b/lib/pinchflat_web/controllers/searches/search_html/show.html.heex @@ -1,6 +1,6 @@

- Results for "<%= StringUtils.truncate(@search_term, 50) %>" + Results for "<%= StringUtils.truncate(@search_term, 50) %>"

@@ -10,7 +10,7 @@ <%= if match?([_|_], @search_results) do %> <.table rows={@search_results} table_class="text-black dark:text-white"> <:col :let={result} label="Title"> - <%= StringUtils.truncate(result.title, 40) %> + <%= result.title %> <:col :let={result} label="Excerpt"> <.highlight_search_terms text={result.matching_search_term} /> diff --git a/lib/pinchflat_web/controllers/sources/source_html/edit.html.heex b/lib/pinchflat_web/controllers/sources/source_html/edit.html.heex index 094dca2..5192a51 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/edit.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/edit.html.heex @@ -2,7 +2,9 @@ <.link href={~p"/sources"}> <.icon name="hero-arrow-left" class="w-10 h-10 hover:dark:text-white" /> -

Edit Source

+

+ Editing "<%= @source.custom_name %>" +

diff --git a/lib/pinchflat_web/controllers/sources/source_html/show.html.heex b/lib/pinchflat_web/controllers/sources/source_html/show.html.heex index 69530be..8474d64 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/show.html.heex +++ b/lib/pinchflat_web/controllers/sources/source_html/show.html.heex @@ -4,7 +4,7 @@ <.icon name="hero-arrow-left" class="w-10 h-10 hover:dark:text-white" />

- Source + <%= @source.custom_name %>

diff --git a/test/pinchflat_web/controllers/media_profile_controller_test.exs b/test/pinchflat_web/controllers/media_profile_controller_test.exs index 8a707eb..4a81025 100644 --- a/test/pinchflat_web/controllers/media_profile_controller_test.exs +++ b/test/pinchflat_web/controllers/media_profile_controller_test.exs @@ -81,7 +81,7 @@ defmodule PinchflatWeb.MediaProfileControllerTest do media_profile: media_profile } do conn = get(conn, ~p"/media_profiles/#{media_profile}/edit") - assert html_response(conn, 200) =~ "Edit Media Profile" + assert html_response(conn, 200) =~ "Editing \"#{media_profile.name}\"" end end @@ -98,7 +98,7 @@ defmodule PinchflatWeb.MediaProfileControllerTest do test "renders errors when data is invalid", %{conn: conn, media_profile: media_profile} do conn = put(conn, ~p"/media_profiles/#{media_profile}", media_profile: @invalid_attrs) - assert html_response(conn, 200) =~ "Edit Media Profile" + assert html_response(conn, 200) =~ "Editing \"#{media_profile.name}\"" end end diff --git a/test/pinchflat_web/controllers/source_controller_test.exs b/test/pinchflat_web/controllers/source_controller_test.exs index 342ce17..8282656 100644 --- a/test/pinchflat_web/controllers/source_controller_test.exs +++ b/test/pinchflat_web/controllers/source_controller_test.exs @@ -91,7 +91,7 @@ defmodule PinchflatWeb.SourceControllerTest do test "renders form for editing chosen source", %{conn: conn, source: source} do conn = get(conn, ~p"/sources/#{source}/edit") - assert html_response(conn, 200) =~ "Edit Source" + assert html_response(conn, 200) =~ "Editing \"#{source.custom_name}\"" end end @@ -114,7 +114,7 @@ defmodule PinchflatWeb.SourceControllerTest do invalid_attrs: invalid_attrs } do conn = put(conn, ~p"/sources/#{source}", source: invalid_attrs) - assert html_response(conn, 200) =~ "Edit Source" + assert html_response(conn, 200) =~ "Editing \"#{source.custom_name}\"" end end