Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
118 lines (110 sloc) 4.04 KB
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png" />
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="referrer" content="always" />
<meta name="theme-color" content="#AC130D" />
<% if @meta_tags %>
<% @meta_tags.each do |k,v| %>
<meta name="<%= k %>" content="<%= v %>" />
<% end %>
<% end %>
<link rel="shortcut icon" href="/favicon.ico" />
<% if @short_url %>
<link rev="canonical" rel="self alternate shorter shorturl shortlink"
href="<%= @short_url %>" />
<% end %>
<title><%= @title.present? ? "#{@title} | " : "" %><%=
Rails.application.name %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<% if @user %>
<%= javascript_include_tag "application" %>
<script>
Lobsters.curUser = '<%= @user.id %>';
</script>
<% end %>
<%= csrf_meta_tags %>
<% if @rss_link %>
<link rel="alternate" type="application/rss+xml"
title="<%= @rss_link[:title] %>" href="<%= @rss_link[:href] %>" />
<% end %>
<% if @comments_rss_link %>
<link rel="alternate" type="application/rss+xml"
title="<%= @comments_rss_link[:title] %>"
href="<%= @comments_rss_link[:href] %>" />
<% end %>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="headerleft">
<a id="l_holder" style="<%= @traffic_style %>"
href="/" title="<%= Rails.application.name %> (Current traffic: <%=
@traffic.to_i %>)"></a>
<% if @cur_url.present? && !header_links.keys.include?(@cur_url) &&
@heading.present? %>
<span id="headertitle">
<a href="<%= @cur_url %>"><%= @heading %></a>
</span>
<% end %>
<span class="headerlinks">
<% header_links.each do |u,v| %>
<a href="<%= u %>" class="<%= v[:class].join(" ") %>"><%=
v[:title] %></a>
<% end %>
<% if !@user && Rails.application.open_signups? %>
<strong><a href="/invitations/open" class="signup-text">Sign Up Now</a></strong>
<% end %>
</span>
</div>
<div id="headerright">
<span class="headerlinks">
<% right_header_links.each do |u,v| %>
<a href="<%= u %>" class="<%= v[:class].join(" ") %>"><%=
v[:title] %></a>
<% end %>
</span>
</div>
<div class="clear"></div>
</div>
<div id="inside">
<% [ :error, :success, :notice ].each do |f| %>
<% if flash[f].present? %>
<div class="flash-<%= f %>"><%= flash[f] %></div>
<% end %>
<% end %>
<%= yield %>
<div id="footer">
<% if lookup_context.template_exists?("footer", "layouts", true) %>
<%= render :partial => "layouts/footer" %>
<% else %>
<% if !@user && Rails.application.open_signups? %>
<a href="/invitations/open">Join <%= Rails.application.name %></a>
<% end %>
<a href="/moderations">Moderation Log</a>
<% if @user && @user.can_see_invitation_requests? &&
(iqc = InvitationRequest.verified_count) > 0 %>
<a href="/invitations">Invitation Queue (<%= iqc %>)</a>
<% end %>
<% if @user && @user.is_moderator? &&
(hrc = HatRequest.count) > 0 %>
<a href="/hats/requests">Hat Requests (<%= hrc %>)</a>
<% else %>
<a href="/hats">Hats</a>
<% end %>
<a href="/chat">Chat</a>
<a href="/privacy">Privacy</a>
<a href="/about">About</a>
<% end %>
</div>
<div class="clear"></div>
</div>
</div>
</body>
</html>