app/views/layouts/field_test/application.html.erb in field_test-0.6.0 vs app/views/layouts/field_test/application.html.erb in field_test-0.6.1
- old
+ new
@@ -1,10 +1,13 @@
+<!DOCTYPE html>
<html>
<head>
<title>Field Test</title>
- <style>
+ <meta charset="utf-8" />
+
+ <%= content_tag :style, nonce: request.content_security_policy_nonce_directives&.include?("style-src") ? content_security_policy_nonce : nil do %>
body {
margin: 0;
padding: 20px;
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
font-size: 16px;
@@ -76,10 +79,14 @@
.pagination a {
padding-left: 10px;
padding-right: 10px;
}
- </style>
+
+ .width-20 {
+ width: 20%;
+ }
+ <% end %>
</head>
<body>
<%= yield %>
</body>
</html>