clarion/lib/initfest/views/layouts/public/application.html.erb

29 lines
909 B
Plaintext
Raw Normal View History

2015-08-15 04:33:02 +03:00
<!DOCTYPE html>
<html>
<head>
<title>
<% if content_for? :title %>
2015-08-15 07:00:55 +03:00
<%= yield :title %>
<% end %>
<% if content_for?(:title) and current_conference? %>
<%= yield :title %> | <%= current_conference.try :title %>
<% elsif !content_for?(:title) and current_conference? %>
<%= current_conference.try :title %>
<% else %>
<%= yield :title %>
2015-08-15 04:33:02 +03:00
<% end %>
</title>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
<%= stylesheet_link_tag "initfest/application", media: "all" %>
<%= javascript_include_tag "initfest/application" %>
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'public/shared/nav' %>
<section class="content">
<%= render 'public/shared/flash_messages' unless flash.empty? %>
<%= yield %>
</section>
</body>
</html>