diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 19:28:24 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 19:28:24 +0200 |
| commit | 6e6a66de5f648becd6aee00943d52cd9ce024ed3 (patch) | |
| tree | cd490f2d31cdff52f009598c69ad96a145da29c5 | |
| parent | ba789678f9e8ed189413afb1446ad210df34e488 (diff) | |
Fix: p elements can't contain buttons. Convert it to a div
| -rw-r--r-- | app/views/revisions/diff.html.erb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb index 149b17c..7e7b729 100644 --- a/app/views/revisions/diff.html.erb +++ b/app/views/revisions/diff.html.erb | |||
| @@ -56,7 +56,7 @@ | |||
| 56 | <% end %> | 56 | <% end %> |
| 57 | 57 | ||
| 58 | <% if @available_layer_pairs.present? %> | 58 | <% if @available_layer_pairs.present? %> |
| 59 | <p class="node_action_bar standalone_action_bar"> | 59 | <div class="node_action_bar standalone_action_bar"> |
| 60 | <% @available_layer_pairs.each do |pair| %> | 60 | <% @available_layer_pairs.each do |pair| %> |
| 61 | <% next if [params[:start_revision].to_s, params[:end_revision].to_s].sort == pair.map(&:to_s).sort %> | 61 | <% next if [params[:start_revision].to_s, params[:end_revision].to_s].sort == pair.map(&:to_s).sort %> |
| 62 | <%= button_to "Diff #{pair.first.to_s.capitalize} vs. #{pair.last.to_s.capitalize}", | 62 | <%= button_to "Diff #{pair.first.to_s.capitalize} vs. #{pair.last.to_s.capitalize}", |
| @@ -73,7 +73,7 @@ | |||
| 73 | <%= @node.draft && !@node.autosave ? "Destroy Draft" : "Discard Autosave" %> | 73 | <%= @node.draft && !@node.autosave ? "Destroy Draft" : "Discard Autosave" %> |
| 74 | <% end %> | 74 | <% end %> |
| 75 | <% end %> | 75 | <% end %> |
| 76 | </p> | 76 | </div> |
| 77 | <% end %> | 77 | <% end %> |
| 78 | 78 | ||
| 79 | <div id="diffview"> | 79 | <div id="diffview"> |
