41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
<!DOCTYPE HTML>
|
||
<html class="<%= I18n.locale.to_s %>">
|
||
<head>
|
||
<script type="text/javascript">
|
||
var _gaq = _gaq || [];
|
||
_gaq.push(['_setAccount', 'UA-36964512-1']);
|
||
_gaq.push(['_setDomainName', 'ga.ntu.edu.tw']);
|
||
_gaq.push(['_setAllowLinker', true]);
|
||
_gaq.push(['_trackPageview']);
|
||
|
||
(function() {
|
||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||
})();
|
||
</script>
|
||
<meta charset="utf-8">
|
||
<%= page_title(@item).html_safe %>
|
||
<link rel="shortcut icon" href="<%= asset_path "favicon.ico" %>">
|
||
<%= page_metas(@item).html_safe %>
|
||
<!--[if lt IE 9]>
|
||
<%= javascript_include_tag "html5" %>
|
||
<![endif]-->
|
||
<%= page_stylesheets(@item).html_safe %>
|
||
<%= page_javascripts(@item).html_safe %>
|
||
<%= csrf_meta_tag %>
|
||
</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 -%>
|
||
</body>
|
||
</html>
|