Files
nairobi/app/components/layout/notification_item_component.html.erb
Javi Martín 4c289f2489 Simplify notification item HTML
Other than simplifying the view, we can write tests using `click_link`,
which makes the tests more robust. Clicking the `.icon-notification`
element was causing some tests to fail when defining a window height of
750 pixels in the `admin_budgets` branch.
2021-02-16 23:21:51 +01:00

12 lines
379 B
Plaintext

<% if user %>
<li id="notifications">
<%= link_to notifications_path, rel: "nofollow", title: text,
class: "notifications #{notifications_class}" do %>
<span class="show-for-sr">
<%= t("layouts.header.notification_item.notifications") %>
</span>
<span class="show-for-small-only"><%= text %></span>
<% end %>
</li>
<% end %>