af83/chouette-core

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

Summary

Maintainability
Test Coverage
- breadcrumb :stop_area_routing_constraint, @workbench, @stop_area_routing_constraint
- page_header_content_for @stop_area_routing_constraint

/ PageContent
.page_content
  .container-fluid
    .row
      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        - attributes = { StopAreaRoutingConstraint.tmf(:from) => link_to(@stop_area_routing_constraint.from_light.name, workbench_stop_area_referential_stop_area_path(@workbench, @stop_area_routing_constraint.from_light)) }
        - attributes.merge!({ StopAreaRoutingConstraint.tmf(:to) => link_to(@stop_area_routing_constraint.to_light.name,
workbench_stop_area_referential_stop_area_path(@workbench, @stop_area_routing_constraint.to_light)) })
        - attributes.merge!({ StopAreaRoutingConstraint.tmf(:both_way) => @stop_area_routing_constraint.both_way? ? 'yes'.t : 'no'.t })
        = definition_list t('metadatas'), attributes