app/views/delayed/web/jobs/show.html.erb in delayed-web-0.4.1 vs app/views/delayed/web/jobs/show.html.erb in delayed-web-0.4.2

- old
+ new

@@ -1,21 +1,30 @@ -<% title "Job ##{job.id}" %> +<% title "#{t('delayed/web.views.job')} ##{job.id}" %> <div class="page-header"> <h1> - <%= link_to 'Jobs', jobs_path %> / <%= title %> + <%= link_to t('delayed/web.views.jobs'), jobs_path %> / <%= title %> </h1> <div class="btn-group"> <% if job.can_queue? %> - <%= button_to 'Run Next', queue_job_path(job), method: :put, class: 'btn', form_class: 'btn-rails pull-left' %> + <%= button_to t('delayed/web.views.buttons.run_next'), queue_job_path(job), method: :put, class: 'btn', form_class: 'btn-rails pull-left' %> <% end %> <% if job.can_destroy? %> - <%= button_to 'Delete', job_path(job), method: :delete, class: 'btn btn-danger', form_class: 'btn-rails pull-right' %> + <%= button_to t('delayed/web.views.buttons.delete'), job_path(job), method: :delete, class: 'btn btn-danger', form_class: 'btn-rails pull-right', onclick: "return confirm('#{t('delayed/web.views.confirm.delete')}')" %> <% end %> </div> </div> -<h2>Last Error</h2> -<pre><%= job.last_error %></pre> +<h2><%= t('delayed/web.views.status') %></h2> +<p class="<%= status_dom_class(job.status) %>"> + <%= t(job.status, scope: 'delayed/web.views.statuses').capitalize %> +</p> -<h2>Handler</h2> +<h2><%= t('delayed/web.views.last_error') %></h2> +<% if job.last_error.present? %> + <pre><%= job.last_error %></pre> +<% else %> + <p class="label label-success"><%= t('delayed/web.views.errors.empty') %></p> +<% end %> + +<h2><%= t('delayed/web.views.handler') %></h2> <pre><%= job.handler %></pre>