%h5 Active Deploy Tokens (#{active_tokens.length}) - if active_tokens.present? .table-responsive.deploy-tokens %table.table %thead %tr %th Name %th Created %th Expires %th Scopes %th %tbody - active_tokens.each do |token| %tr %td= token.name %td= token.created_at.to_date.to_s(:medium) %td - if token.expires? %span{ class: ('text-warning' if token.expires_soon?) } In #{distance_of_time_in_words_to_now(token.expires_at)} - else %span.token-never-expires-label Never %td= token.scopes.present? ? token.scopes.join(", ") : "" %td= link_to "Revoke", "#", class: "btn btn-danger pull-right", data: { toggle: "modal", target: "#revoke-modal-#{token.id}"} = render 'projects/deploy_tokens/revoke_modal', token: token, project: project - else .settings-message.text-center This project has no active Deploy Tokens.