journalduhacker/app/views/layouts/application.html.erb

41 lines
1.1 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
2012-07-04 04:49:11 +02:00
<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" href="/apple-touch-icon.png"/>
2012-07-05 01:26:09 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2012-07-07 01:10:08 +02:00
<% if @short_url %>
<link rev="canonical" rel="self alternate shorter shorturl shortlink"
href="<%= @short_url %>" />
<% end %>
2012-07-11 22:34:53 +02:00
<title><%= @title.present? ? "#{@title} | Lobsters" : "Lobsters" %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
2012-07-01 01:42:53 +02:00
<% if @rss_link %>
<%= raw(@rss_link) %>
<% end %>
<% if @user %>
<script>
Lobsters.curUser = '<%= @user.id %>';
</script>
<% end %>
</head>
<body>
2012-07-04 04:49:11 +02:00
<div id="wrapper">
<%= render :partial => "global/header" %>
2012-07-04 04:49:11 +02:00
<div id="inside">
2012-06-30 21:14:35 +02:00
<% if flash[:error] %>
<div class="flash-error"><%= flash[:error] %></div>
<% elsif flash[:success] %>
<div class="flash-success"><%= flash[:success] %></div>
<% end %>
<%= yield %>
2012-07-04 04:49:11 +02:00
</div>
</div>
</body>
</html>