From 3ed4d553254c6221fa6e37eed6397ff87fa6f74a Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Wed, 31 Jan 2024 10:46:28 -0800 Subject: [PATCH] Added more fields to media profile show page --- .../media_profiles/media_profile_html/show.html.heex | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 80ea07f..1f23a8c 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 @@ -9,8 +9,14 @@ <.list> - <:item title="Name"><%= @media_profile.name %> - <:item title="Output path template"><%= @media_profile.output_path_template %> + <:item + :for={ + attr <- ~w(name output_path_template download_subs download_auto_subs embed_subs sub_langs)a + } + title={attr} + > + <%= Map.get(@media_profile, attr) %> + <.back navigate={~p"/media_profiles"}>Back to media_profiles