diff options
Diffstat (limited to 'app/views/workbenches')
| -rw-r--r-- | app/views/workbenches/index.html.slim | 5 | ||||
| -rw-r--r-- | app/views/workbenches/show.html.slim | 9 | 
2 files changed, 3 insertions, 11 deletions
diff --git a/app/views/workbenches/index.html.slim b/app/views/workbenches/index.html.slim index d35ed8121..14fc79222 100644 --- a/app/views/workbenches/index.html.slim +++ b/app/views/workbenches/index.html.slim @@ -1,8 +1,5 @@ -/ PageHeader -= pageheader 'tableau-de-bord', -             t('.title', organisation: current_organisation.name) -  / Below is secundary actions & optional contents (filters, ...) +- content_for :page_header_content do    .row.mb-sm     .col-lg-12.text-right       - if policy(Api::V1::ApiKey).create? diff --git a/app/views/workbenches/show.html.slim b/app/views/workbenches/show.html.slim index 66eedb68d..22869b2d7 100644 --- a/app/views/workbenches/show.html.slim +++ b/app/views/workbenches/show.html.slim @@ -1,17 +1,12 @@  - breadcrumb @workbench -/ PageHeader -= pageheader 'jeux-de-donnees', -             t('referentials.index.title'), -             '', -             '' do -  / Below is secundary actions & optional contents (filters, ...) +- page_header_content_for @workbench +- content_for :page_header_content do    .row.mb-sm      .col-lg-12.text-right        - if policy(Referential).create?          = link_to t('actions.import'), workbench_imports_path(@workbench), class: 'btn btn-primary'          = link_to t('actions.add'), new_referential_path(workbench_id: @workbench), class: 'btn btn-primary' -/ PageContent  .page_content    .container-fluid      - if params[:q].present? or @wbench_refs.any?  | 
