85cb7c2057
could probably use a prettier layout and auto-posting a weblog url to the main site (carrying tags)
64 lines
2.1 KiB
Plaintext
64 lines
2.1 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<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="robots" content="noarchive,noodp,noydir" />
|
|
<meta name="referrer" content="always" />
|
|
<% if @short_url %>
|
|
<link rev="canonical" rel="self alternate shorter shorturl shortlink"
|
|
href="<%= @short_url %>" />
|
|
<% end %>
|
|
<title><%= @title.present? ? "#{@title} | " : "" %>Planet <%=
|
|
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 %>
|
|
</head>
|
|
<body>
|
|
<div id="wrapper">
|
|
<div id="header">
|
|
<div id="headerleft">
|
|
<a id="l_holder" style="background-color: #<%= sprintf("%02x%02x%02x",
|
|
[ 255, (@traffic * 7).floor + 50.0 ].min, 0, 0) %>;" href="/"
|
|
title="<%= Rails.application.name %> (<%= @traffic.to_i %>)"></a>
|
|
<span id="headertitle">
|
|
<a href="/">Planet <%= Rails.application.name %></a>
|
|
</span>
|
|
</div>
|
|
|
|
<div id="headerright">
|
|
<span class="headerlinks">
|
|
<a href="<%= main_root_url %>"><%= Rails.application.name %></a>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
|
|
<div id="inside">
|
|
<% if flash[:error] %>
|
|
<div class="flash-error"><%= flash[:error] %></div>
|
|
<% elsif flash[:success] %>
|
|
<div class="flash-success"><%= flash[:success] %></div>
|
|
<% end %>
|
|
|
|
<%= yield %>
|
|
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|