diff --git a/lib/frenzy_web/templates/feed/show.html.eex b/lib/frenzy_web/templates/feed/show.html.eex index 16183db..540afa9 100644 --- a/lib/frenzy_web/templates/feed/show.html.eex +++ b/lib/frenzy_web/templates/feed/show.html.eex @@ -1,4 +1,9 @@ -

<%= @feed.title %>

+

+ <%= if @feed.favicon do %> + <%= @feed.title %> favicon + <% end %> + <%= @feed.title %> +

<%= form_tag Routes.feed_path(@conn, :refresh, @feed.id), method: :post, class: "d-inline" do %> <%= submit "Refresh Feed", class: "btn btn-primary" %> diff --git a/lib/frenzy_web/templates/group/show.html.eex b/lib/frenzy_web/templates/group/show.html.eex index 18841d0..220d75a 100644 --- a/lib/frenzy_web/templates/group/show.html.eex +++ b/lib/frenzy_web/templates/group/show.html.eex @@ -29,7 +29,12 @@ <%= feed.feed_url %> - <%= feed.title %> + + <%= if feed.favicon do %> + <%= feed.title %> favicon + <% end %> + <%= feed.title %> + <% end %> diff --git a/lib/frenzy_web/templates/layout/app.html.eex b/lib/frenzy_web/templates/layout/app.html.eex index 8e45594..f4a42c0 100644 --- a/lib/frenzy_web/templates/layout/app.html.eex +++ b/lib/frenzy_web/templates/layout/app.html.eex @@ -58,8 +58,13 @@ diff --git a/priv/static/css/app.css b/priv/static/css/app.css index fa6f478..a0c96b2 100644 --- a/priv/static/css/app.css +++ b/priv/static/css/app.css @@ -132,3 +132,14 @@ label.sidebar-toggle > .oi { display: inline-block; } + +.favicon { + height: 1em; + vertical-align: baseline; +} + +.feed-nav-item .favicon, +.feed-nav-item .nav-link { + display: inline-block; +} +