Orbit/app/views/layouts/page_layout.html.erb

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2012-03-21 17:51:16 +00:00
<!DOCTYPE HTML>
<html class="<%= I18n.locale.to_s %>">
2012-03-21 17:51:16 +00:00
<head>
2013-10-22 02:33:05 +00:00
<%= render 'layouts/meta' %>
2012-03-21 17:51:16 +00:00
<meta charset="utf-8">
<%= page_title(@item).html_safe %>
<link rel="shortcut icon" href="<%= asset_path "ncculogo.ico" %>">
2012-03-21 17:51:16 +00:00
<%= page_metas(@item).html_safe %>
<!--[if lt IE 9]>
<%= javascript_include_tag "html5" %>
<![endif]-->
<%= stylesheet_link_tag "page_layout" %>
<%= page_stylesheets(@item).html_safe %>
<%= javascript_include_tag "page_layout" %>
<%= page_javascripts(@item).html_safe %>
<%= javascript_include_tag "orbit_js_1.0.1-front-end.js" unless @no_orbit_bar %>
2013-01-09 07:57:31 +00:00
<%= csrf_meta_tag %>
2012-03-21 17:51:16 +00:00
</head>
<body>
<%= yield %>
<% 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 -%>
<% if @edit %>
<script>
2013-10-29 03:09:20 +00:00
function externalFunction(Fn, iContents, pc) {
$(document).ajaxStop(function() {
Fn(iContents, pc);
});
2013-10-29 03:09:20 +00:00
};
</script>
<style>
.body {
margin: 0;
}
</style>
<% end %>
2013-11-20 10:15:57 +00:00
<div id='last_update_date_wrap' style='display:none;'><div id='last_update_date'><%= @last_update_date %></div></div>
2012-03-21 17:51:16 +00:00
</body>
</html>