diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/que_jobs/index.html.erb | 7 | ||||
-rw-r--r-- | app/views/shared/_jobs.html.erb | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/app/views/que_jobs/index.html.erb b/app/views/que_jobs/index.html.erb new file mode 100644 index 0000000..0824ef9 --- /dev/null +++ b/app/views/que_jobs/index.html.erb @@ -0,0 +1,7 @@ + +<%= render( + partial: 'shared/jobs', + locals: { + jobs: @jobs + } +) %> diff --git a/app/views/shared/_jobs.html.erb b/app/views/shared/_jobs.html.erb index de6d7c1..951fa06 100644 --- a/app/views/shared/_jobs.html.erb +++ b/app/views/shared/_jobs.html.erb @@ -88,7 +88,7 @@ <% if job.args.last == 'build' %> <%# TODO: Generalise this somehow %> <dl class="dl-horizontal"> - <% @mini_environment.backend_data.each do |(key, value)| %> + <% (@mini_environment.try(:backend_data) || []).each do |(key, value)| %> <dt><%= key %></dt> <dd><pre><%= value %></pre></dd> <% end %> |