<% if user_signed_in? %>
<%= current_user.name %> · <%= current_user.email %> · <%= link_to 'Logout', destroy_user_session_path, method: :delete %>
<% else %>
Not logged in · <%= link_to 'Login', new_user_session_path %>
<% end %>
<%= link_to 'Notifications', notifications_path %> /
<% if User.subscription_enabled? %>
<%= link_to 'Subscriptions', subscriptions_path %>
<% end %>
<%= user.name %> · <%= user.email %>
<%= link_to 'Notifications', user_notifications_path(user) %> /
<% if User.subscription_enabled? %>
<%= link_to 'Subscriptions', user_subscriptions_path(user) %>
<% end %>
<% if user_signed_in? %>
<%= current_user.name %> · <%= current_user.email %> <%= current_user.admin? ? "(admin)" : "(not admin)" %>
<% else %>
Not logged in · <%= link_to 'Login', new_user_session_path %>
<% end %>
<%= link_to 'Notifications', admins_notifications_path %> /
<% if User.subscription_enabled? %>
<%= link_to 'Subscriptions', admins_subscriptions_path %>
<% end %>
<%= admin.user.name %> · <%= admin.user.email %>
<%= link_to 'Notifications', admin_notifications_path(admin) %> /
<% if Admin.subscription_enabled? %>
<%= link_to 'Subscriptions', admin_subscriptions_path(admin) %>
<% end %>
<%= article.user.name %> · <%= article.created_at.strftime("%b %d %H:%M") %>
<%= article.body.truncate(60) if article.body.present? %>
<%= link_to 'Read', article %>