diff options
| author | Guillaume | 2017-10-02 12:41:27 +0200 | 
|---|---|---|
| committer | Guillaume | 2017-10-02 12:41:27 +0200 | 
| commit | 0f16c936c211a6ab7324e0765f0ef4a8bcf28aa8 (patch) | |
| tree | 45e5c517e808bef6695b539c1a7132f8b19d7d21 /app | |
| parent | eaf5b3fd868d68856ef94e18656dac39096d866b (diff) | |
| download | chouette-core-0f16c936c211a6ab7324e0765f0ef4a8bcf28aa8.tar.bz2 | |
add show link for compliance_control_block, wording links Refs #4659
Diffstat (limited to 'app')
| -rw-r--r-- | app/decorators/compliance_control_decorator.rb | 13 | ||||
| -rw-r--r-- | app/views/compliance_control_sets/show.html.slim | 3 | 
2 files changed, 13 insertions, 3 deletions
| diff --git a/app/decorators/compliance_control_decorator.rb b/app/decorators/compliance_control_decorator.rb index 3a05a5c59..e70ff5350 100644 --- a/app/decorators/compliance_control_decorator.rb +++ b/app/decorators/compliance_control_decorator.rb @@ -9,16 +9,25 @@ class ComplianceControlDecorator < Draper::Decorator          content: h.destroy_link_content,          href: h.compliance_control_set_compliance_control_path(object.compliance_control_set.id, object.id),          method: :delete, -        data: { confirm: h.t('compliance_controls.actions.destroy_confirm') } +        data: { confirm: h.t('compliance_control_sets.actions.destroy_confirm') }        )      # end      # if h.policy(object).edit?        links << Link.new( -        content: h.t('compliance_controls.actions.edit'), +        content: h.t('compliance_control_sets.actions.edit'),          href:  h.edit_compliance_control_set_compliance_control_path(object.compliance_control_set.id, object.id)        )      # end + + +    # if h.policy(object).show? +    links << Link.new( +      content: h.t('compliance_control_sets.actions.show'), +      href:  h.compliance_control_set_compliance_control_path(object.compliance_control_set.id, object.id) +    ) +    # end +      links    end diff --git a/app/views/compliance_control_sets/show.html.slim b/app/views/compliance_control_sets/show.html.slim index 3b0a123aa..0de6fb359 100644 --- a/app/views/compliance_control_sets/show.html.slim +++ b/app/views/compliance_control_sets/show.html.slim @@ -14,7 +14,7 @@                method: link.method,                data: link.data,                class: 'btn btn-primary' do -                = link.content +            = link.content  / PageContent  .page_content @@ -54,6 +54,7 @@                  ), \                ],                sortable: true, +              #links: [:show],                cls: 'table has-filter has-search'          .select_toolbox | 
