Sha256: c7054b54e2981dada54b214e4fb2f938398e33f64b71525eed615de46f51e4e6

Contents?: true

Size: 1009 Bytes

Versions: 51

Compression:

Stored size: 1009 Bytes

Contents

<%= alert(:close => false, :class => 'alert-info', :header => '',
          :text => _("You can find resource locks on this page. Exclusive lock marked with locked icon means that no other task can use locked resource while this task is running. Non-exclusive lock marked with unlocked icon means other tasks can access the resource freely, it is only used to indicate the relation of this task with the resource")) %>

<div class="container-fluid container-cards-pf">
  <div class="row row-cards-pf">
    <% @task.locks.each do |lock| %>
      <div class="col-xs-6 col-sm-4 col-md-4">
        <div class="card-pf card-pf-accented card-pf-aggregate-status">
          <h2 class="card-pf-title">
            <span class="fa <%= lock.exclusive ? 'fa-lock' : 'fa-unlock-alt' %>"></span> <%= lock.name %>
          </h2>
          <div class="card-pf-body">
            <%= format('%s id:%s', lock.resource_type, lock.resource_id) %><br>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
foreman-tasks-0.15.11 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.10 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.9 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.8 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.14.6 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.7 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.16.0 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.6 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.5 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.4 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.3 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.2 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.1 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.15.0 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.14.5 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.14.4 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.14.3 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.14.2 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.14.1 app/views/foreman_tasks/tasks/_locks.html.erb
foreman-tasks-0.11.3 app/views/foreman_tasks/tasks/_locks.html.erb