orbit-basic/app/views/layouts/standalone.html.erb

31 lines
902 B
Plaintext
Raw Permalink Normal View History

<!DOCTYPE HTML>
<html class="<%= I18n.locale.to_s %>">
<head>
<meta charset="utf-8">
<%= page_title(@item).html_safe %>
<link rel="shortcut icon" href="<%= asset_path "ncculogo.ico" %>">
<%= page_metas(@item).html_safe %>
<!--[if lt IE 9]>
<%= javascript_include_tag "html5" %>
<![endif]-->
<%= page_stylesheets(@item).html_safe %>
<link href='/assets/standalone.css' rel='stylesheet' type='text/css' />
<%= yield :page_stylesheets %>
<%= page_javascripts(@item).html_safe %>
<%= csrf_meta_tag %>
</head>
<body>
<div class="wrapper">
<%= yield %>
</div>
<% if flash[:error] %>
<div class="modal alert alert-error hide" id="myModal">
<p type="button" class="close" data-dismiss="modal">×</p>
<%= "<strong>#{flash[:error]}</strong><br/>".html_safe%>
</div>
<script>
$('#myModal').modal('show')
</script>
<% end -%>
</body>
</html>