This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/layouts/page_layout.html.erb

46 lines
1.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML>
<html class="<%= I18n.locale.to_s %>">
<head>
<%= render 'layouts/meta' %>
<meta charset="utf-8">
<%= page_title(@item).html_safe %>
<!-- <link rel="shortcut icon" href="<%= asset_path "ncculogo.ico" %>"> -->
<%= page_metas(@item).html_safe %>
<%= 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 %>
<%= csrf_meta_tag %>
<!--[if lt IE 9]>
<%= javascript_include_tag "html5" %>
<![endif]-->
</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>
function externalFunction(Fn, iContents, pc) {
$(document).ajaxStop(function() {
Fn(iContents, pc);
});
};
</script>
<style>
.body {
margin: 0;
}
</style>
<% end %>
</body>
</html>