lib/generators/dry_crud/templates/app/views/layouts/crud.html.erb in dry_crud-1.2.7 vs lib/generators/dry_crud/templates/app/views/layouts/crud.html.erb in dry_crud-1.3.0
- old
+ new
@@ -2,37 +2,39 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <title><%= @title %></title>
+ <title><%= strip_tags(@title) %></title>
<%= stylesheet_link_tag 'crud' %>
- <%= javascript_include_tag :all %>
<%= csrf_meta_tag %>
- <%= yield :head %>
+ <%= yield :head %>
</head>
<body>
<div id="container">
<ul id="menu">
- <%= render :partial => 'layouts/menu' %>
+ <%= render 'layouts/menu' %>
</ul>
<h1><%= @title %></h1>
<% if flash.notice.present? %>
- <div id="flash_notice"><%= flash.notice %></div>
+ <div id="flash_notice"><%= raw(flash.notice) %></div>
<% elsif flash.alert.present? %>
- <div id="flash_alert"><%= flash.alert %></div>
+ <div id="flash_alert"><%= raw(flash.alert) %></div>
<% end %>
<div class="actions">
- <%= yield :actions %>
+ <%= yield :actions %>
</div>
<div id="content">
<%= yield %>
</div>
</div>
+
+<%= javascript_include_tag :defaults, :cache => 'all' %>
+<%= javascript_tag content_tag_for(:javascripts) if content_for?(:javascripts) %>
</body>
</html>