%= favicon_link_tag %>
<%= stylesheet_link_tag :shipit, media: 'all' %>
<%= javascript_include_tag :shipit %>
<%= yield :update_subscription %>
<%= csrf_meta_tags %>
<% flash.each do |name, msg| %>
<%= content_tag :div, msg, class: ["flash-#{name}", :flash] %>
<% end %>
<% github_status = Shipit::GithubStatus.status
unless github_status.nil? || github_status[:status] == 'good' %>
GitHub is having issues
<% if github_status[:body].present? %>
"<%= github_status[:body] %>"
<% end %>
<% if github_status[:last_updated].present? %>
<%= time_ago_in_words(github_status[:last_updated]) %> ago
<% end %>
×
<% end %>
<%= yield %>