- content_for :page_header_content do .row.mb-sm .col-lg-12.text-right - if policy(Api::V1::ApiKey).create? = link_to t('actions.create_api_key'), new_api_key_path, class: 'btn btn-primary' / PageContent .page_content .container-fluid .row .col-lg-12 h2.content_header = t('.offers.title') .row .col-lg-6.col-md-6.col-sm-6.col-xs-12 .panel.panel-default .panel-heading h3.panel-title = t('.offers.organisation') .panel-body em.small.text-muted = t('.offers.no_content') .panel.panel-default .panel-heading h3.panel-title = t('.offers.idf') .panel-body em.small.text-muted = t('.offers.no_content') .panel.panel-default .panel-heading h3.panel-title = t('.offers.api_keys') span.badge.ml-xs = current_organisation.api_keys.count if current_organisation.api_keys.any? - if current_organisation.api_keys.any? - current_organisation.api_keys.each do |api_key| .list-group = policy(api_key).edit? ? link_to( "#{api_key.name} : #{api_key.token}", edit_api_key_path(api_key), class: 'list-group-item') : "#{api_key.name} : #{api_key.token}" - else .panel-body em.small.text-muted = t('.offers.no_content') .col-lg-6.col-md-6.col-sm-6.col-xs-12 .panel.panel-default .panel-heading h3.panel-title.with_actions div = t('.offers.referentials') span.badge.ml-xs = @referentials.count if @referentials.any? div = link_to '', workbench_path(@workbench), class: ' fa fa-chevron-right pull-right', title: t('.offers.see') - if @referentials.any? .list-group - @referentials.each_with_index do |referential, i| = link_to referential.name, referential_path(referential, workbench_id: referential.workbench_id, current_workbench_id: @workbench.id), class: 'list-group-item' if i < 6 - else .panel-body em.small.text-muted = t('.offers.no_content') .panel.panel-default .panel-heading h3.panel-title.with_actions div = t('.offers.calendars') span.badge.ml-xs = @calendars.count if @calendars.any? div = link_to '', calendars_path, class: ' fa fa-chevron-right pull-right', title: t('.offers.see') - if @calendars.any? .list-group - @calendars.each_with_index do |calendar, i| = link_to calendar.name, calendar_path(calendar), class: 'list-group-item' if i < 6 - else .panel-body em.small.text-muted = t('.offers.no_content')