2012-03-21 17:51:16 +00:00
|
|
|
|
<!DOCTYPE HTML>
|
2012-08-07 10:11:39 +00:00
|
|
|
|
<html class="<%= I18n.locale.to_s %>">
|
2012-03-21 17:51:16 +00:00
|
|
|
|
<head>
|
2013-07-18 14:36:51 +00:00
|
|
|
|
<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>
|
2012-03-21 17:51:16 +00:00
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<%= page_title(@item).html_safe %>
|
2013-09-13 07:42:52 +00:00
|
|
|
|
<link rel="shortcut icon" href="<%= asset_path "favicon.ico" %>">
|
2012-03-21 17:51:16 +00:00
|
|
|
|
<%= page_metas(@item).html_safe %>
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
|
<%= javascript_include_tag "html5" %>
|
|
|
|
|
<![endif]-->
|
|
|
|
|
<%= page_stylesheets(@item).html_safe %>
|
|
|
|
|
<%= page_javascripts(@item).html_safe %>
|
2013-01-09 07:57:31 +00:00
|
|
|
|
<%= csrf_meta_tag %>
|
2012-03-21 17:51:16 +00:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2012-08-07 11:21:54 +00:00
|
|
|
|
<%= yield %>
|
2012-08-15 07:55:29 +00:00
|
|
|
|
<% if flash[:error] %>
|
2012-08-07 11:21:54 +00:00
|
|
|
|
<div class="modal alert alert-error hide" id="myModal">
|
|
|
|
|
<p type="button" class="close" data-dismiss="modal">×</p>
|
2012-08-15 07:55:29 +00:00
|
|
|
|
<%= "<strong>#{flash[:error]}</strong><br/>".html_safe%>
|
2012-08-07 11:21:54 +00:00
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
$('#myModal').modal('show')
|
|
|
|
|
</script>
|
|
|
|
|
<% end -%>
|
2012-03-21 17:51:16 +00:00
|
|
|
|
</body>
|
|
|
|
|
</html>
|