af83/chouette-core

View on GitHub
app/views/processing_rules/show.html.slim

Summary

Maintainability
Test Coverage
- breadcrumb :processing_rule, @workbench, @processing_rule

- page_header_content_for @processing_rule
- content_for :page_header_title, @processing_rule.name, flush: true

.page_content
  .container-fluid
    .row
      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        = simple_block_for @processing_rule, title: 'Information' do |d|
          = d.attribute :operation_step, value: @processing_rule.operation_step.text
          = d.attribute :processable, \
            as: :association, \
            label: @processing_rule.processable_type.text, \
            link: url_for([@workbench, @processing_rule.processable])
          = d.attribute :created_at, as: :datetime
          = d.attribute :updated_at, as: :datetime