app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Project Lancaster</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<% if user_signed_in? %>
<%= link_to "sign out", destroy_user_session_path, method: :delete %>
<% if current_user.admin? %>
<%= link_to "Users", users_path %>
<%= link_to "Subscriptions", subscriptions_path %>
<%= link_to "Feeds", feeds_path %>
<%= link_to "Web Pages", web_pages_path %>
<%= link_to "Sidekiq", sidekiq_web_path %>
<% end %>
<% else %>
<%= link_to "sign in", new_user_session_path %>
<% end %>
<br>
<% flash.each do |key, value| %>
<%= content_tag :div, value, class: "alert alert-#{key}" %>
<% end %>
<%= yield %>
</body>
</html>