Sha256: a7ec83b4704aea351c923a9afb3565b21d8f52cdd533e80f7086abc2ea4af4cd
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
<div class='col-md-12 job-status'> <div id='job'> <div class='lead'><%= @dirmon_entry.job_class_name %></div> <div class='job-state inline-block'> <div class='left'>status</div> <div class="<%= @dirmon_entry.state %> right"><%= @dirmon_entry.state %></div> </div> <div class='btn-toolbar job-actions pull-right'> <div class='btn-group'> <% if (@dirmon_entry.disabled? || @dirmon_entry.pending?) && can?(:enable, @dirmon_entry) %> <%= link_to 'Enable', enable_dirmon_entry_path(@dirmon_entry.id), method: :put, class: 'btn btn-default' %> <% end %> <% if @dirmon_entry.enabled? && can?(:disable, @dirmon_entry)%> <%= link_to 'Disable', disable_dirmon_entry_path(@dirmon_entry.id), method: :put, class: 'btn btn-default', data: { confirm: 'Are you sure?' } %> <% end %> </div> <div class='btn-group'> <% if can?(:destroy, @dirmon_entry)%> <%= link_to 'Destroy', dirmon_entry_path(@dirmon_entry), method: :delete, class: 'btn btn-default', data: { confirm: 'Are you sure?' } %> <% end %> </div> <%# It shows the Copy button in each Dirmon%> <div class='btn-group'> <% if can?(:copy, @dirmon_entry)%> <%= link_to 'Copy', copy_dirmon_entry_path(@dirmon_entry), class: 'btn btn-default' %> <% end %> </div> <div class='btn-group'> <% if can?(:edit, @dirmon_entry)%> <%= link_to 'Edit', edit_dirmon_entry_path(@dirmon_entry), class: 'btn btn-default' %> <% end %> </div> </div> <div class='clearfix'></div> <%= render partial: 'status', locals: {dirmon_entry: @job} %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems