Sha256: 5b5f40341f08913dcb65b553a13b75fe56f893208b7cbb0cbbd70b475fe68423

Contents?: true

Size: 1.05 KB

Versions: 10

Compression:

Stored size: 1.05 KB

Contents

- if display_reviewers?(current_task)
  = re_card_content do
    %h5.section-title Reviewers
    %ul.list-unstyled.mt-3
      - if reviewing_accounts.empty?
        %li.mt-2.small.text-muted.text-center Nobody!
      - else
        - reviewing_accounts.each do |task_review|
          %li.mt-2
            .row
              .col= render_user_info(task_review.owner, avatar_size: '20x20')
              .col-3.text-end= re_badge_color(task_review.status)

- if display_decide?(current_task)
  = re_card_content do
    %h5.section-title What is your decision?
    .row.mt-3
      .col= render_user_info(current_owner, avatar_size: '20x20')
      .col-6.text-end
        - unless task_reviewed_status(current_task)&.rejected?
          = link_to 'Reject', reject_task_path(current_task), method: :patch, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-danger'
        - unless task_reviewed_status(current_task)&.approved?
          = link_to 'Approve', approve_task_path(current_task), method: :patch, data: { confirm: 'Are you sure?' }, class: 'btn btn-sm btn-success'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_execution-0.1.12 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.11 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.10 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.9 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.8 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.7 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.5 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.4 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.2 app/views/rails_execution/tasks/_reviewers.html.haml
rails_execution-0.1.1 app/views/rails_execution/tasks/_reviewers.html.haml