Skip to content

Commit

Permalink
Improved CSP support
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Jun 30, 2024
1 parent 06223d7 commit 04ed26c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1 (unreleased)

- Improved CSP support

## 0.3.0 (2024-06-24)

- Dropped support for Clockwork < 3
Expand Down
14 changes: 9 additions & 5 deletions app/views/clockwork_web/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<meta charset="utf-8" />

<style>
<%= content_tag :style, nonce: content_security_policy_nonce do %>
body {
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
margin: 0;
Expand Down Expand Up @@ -47,7 +47,11 @@
.disabled {
background-color: pink;
}
</style>

.width-15 {
width: 15%;
}
<% end %>
</head>
<body>
<div class="container">
Expand All @@ -74,9 +78,9 @@
<thead>
<tr>
<th>Job</th>
<th style="width: 15%;">Period</th>
<th style="width: 15%;">Last Run</th>
<th style="width: 15%;">Action</th>
<th class="width-15">Period</th>
<th class="width-15">Last Run</th>
<th class="width-15">Action</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit 04ed26c

Please sign in to comment.