Sha256: cc61001dd646f51653c22176344628fc6fc5706304359280e19bbfe99a1ae86d
Contents?: true
Size: 1.64 KB
Versions: 5
Compression:
Stored size: 1.64 KB
Contents
<div class='col-md-12 job-status'> <div id='job'> <div class='lead'><%= @dirmon_entry.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'> <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
5 entries across 5 versions & 1 rubygems