Skip to content

Commit

Permalink
Add empty partials for custom run data support (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Barros authored Jan 24, 2022
1 parent bfb86aa commit 48870e5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/maintenance_tasks/runs/_run.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<%= render "maintenance_tasks/runs/info/#{run.status}", run: run %>
</div>

<div class="content" id="custom-content">
<%= render "maintenance_tasks/runs/info/custom", run: run %>
</div>

<%= render "maintenance_tasks/runs/csv", run: run %>
<%= tag.hr if run.csv_file.present? && run.arguments.present? %>
<%= render "maintenance_tasks/runs/arguments", run: run %>
Expand Down
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions app/views/maintenance_tasks/tasks/_task.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
<%= render "maintenance_tasks/runs/info/#{run.status}", run: run %>
</div>

<div class="content" id="custom-content">
<%= render "maintenance_tasks/runs/info/custom", run: run %>
</div>

<%= render "maintenance_tasks/runs/csv", run: run %>
<%= tag.hr if run.csv_file.present? && run.arguments.present? %>
<%= render "maintenance_tasks/runs/arguments", run: run %>
Expand Down
5 changes: 5 additions & 0 deletions app/views/maintenance_tasks/tasks/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
<%= render "maintenance_tasks/runs/info/#{last_run.status}", run: last_run %>
</div>

<div class="content" id="custom-content">
<%= render "maintenance_tasks/runs/info/custom", run: last_run %>
</div>

<%= render "maintenance_tasks/runs/csv", run: last_run %>
<%= tag.hr if last_run.csv_file.present? %>
<%= render "maintenance_tasks/runs/arguments", run: last_run %>
Expand Down Expand Up @@ -46,6 +50,7 @@
<% end %>
</div>
<% end %>
<%= render "maintenance_tasks/tasks/custom", form: form %>
<div class="block">
<%= form.submit 'Run', class: "button is-success", disabled: @task.deleted? %>
</div>
Expand Down

0 comments on commit 48870e5

Please sign in to comment.