hide notification help text when notifications are present

This commit is contained in:
byte[] 2019-11-18 12:35:11 -05:00
parent 2f4ba6d96d
commit 56fb4a154f

View file

@ -5,8 +5,13 @@ h1 Notification Area
.block__header .block__header
= render PhilomenaWeb.PaginationView, "_pagination.html", page: @notifications, route: route, conn: @conn = render PhilomenaWeb.PaginationView, "_pagination.html", page: @notifications, route: route, conn: @conn
= cond do
- Enum.any?(@notifications) ->
= for notification <- @notifications do = for notification <- @notifications do
= render PhilomenaWeb.NotificationView, "_notification.html", notification: notification, conn: @conn = render PhilomenaWeb.NotificationView, "_notification.html", notification: notification, conn: @conn
p To get notifications on new comments and forum posts, click the 'Subscribe' button in the bar at the top of an image or forum topic. You'll get notifications here for any new posts or comments. - true ->
p By default you'll be subscribed to any images or topics you reply to. You can configure this in your user settings page. p
' To get notifications on new comments and forum posts, click the
' 'Subscribe' button in the bar at the top of an image or forum topic.
' You'll get notifications here for any new posts or comments.