Page MenuHomeGRNET

No OneTemporary

File Metadata

Created
Sat, Jun 7, 7:30 PM
diff --git a/app/views/jobs/show.html.erb b/app/views/jobs/show.html.erb
index 6560d76..0719508 100644
--- a/app/views/jobs/show.html.erb
+++ b/app/views/jobs/show.html.erb
@@ -1,25 +1,31 @@
-<div class="right">
- <%= link_to 'Edit', edit_host_job_path(@host, @job),
- class: "btn btn-primary", role: "button" %>
- <%= link_to 'Delete', host_job_path(@host, @job),
- method: :delete, data: { confirm: 'This will delete the job' },
- class: "btn btn-danger", role: "button" %>
-</div>
-
<div class="row">
<div class="col-xs-6">
<div class="panel panel-default">
<div class="panel-heading">
<h1>"<%= @job.name %>" Job Template</h1>
</div>
<div class="row">
<%= render partial: 'job_details' %>
</div>
</div>
<div class="col-xs-2 col-xs-offset-4 right">
<%= link_to 'Back to host', host_path(@host),
class: "btn btn-success", role: "button" %>
</div>
+ <div class="col-xs-1">
+ <%= link_to edit_host_job_path(@host, @job), class: "btn btn-default", role: "button" do %>
+ <label class="glyphicon glyphicon-edit text-primary"></label>
+ Edit
+ <% end %>
+ </div>
+ <div class="col-xs-1">
+ <%= link_to host_job_path(@host, @job),
+ method: :delete, data: { confirm: 'This will delete the job' },
+ class: "btn btn-default", role: "button" do %>
+ <label class="glyphicon glyphicon-ban-circle text-danger"></label>
+ Delete
+ <% end %>
+ </div>
</div>
</div>

Event Timeline