mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
47 lines
2.3 KiB
Plaintext
47 lines
2.3 KiB
Plaintext
.row.active_table_row{"ng-if" => "hub.is_distributor", "ng-click" => "toggle($event)", "ng-class" => "{'closed' : !open(), 'is_distributor' : producer.is_distributor}", bindonce: true}
|
|
|
|
.columns.small-12.medium-5.large-5.skinny-head
|
|
%a.hub{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub", "data-is-link" => "true"}
|
|
%i{bo: {class: "hub.icon_font"}}
|
|
%span.margin-top.hub-name-listing{"bo-bind" => "hub.name | truncate:40"}
|
|
|
|
.columns.small-4.medium-2.large-2
|
|
%span.margin-top{"bo-text" => "hub.address.city"}
|
|
.columns.small-2.medium-1.large-1
|
|
%span.margin-top{"bo-bind" => "hub.address.state_name | uppercase"}
|
|
|
|
.columns.small-4.medium-3.large-3.text-right{"bo-if" => "hub.active"}
|
|
%a.hub.open_closed{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
|
%i.ofn-i_033-open-sign
|
|
%span.margin-top{ bo: { if: "current()" } }
|
|
%em Shopping here
|
|
%span.margin-top{ bo: { if: "!current()" } }
|
|
%span{"bo-bind" => "hub.orders_close_at | sensible_timeframe"}
|
|
|
|
.columns.small-4.medium-3.large-3.text-right{"bo-if" => "!hub.active"}
|
|
%a.hub.open_closed{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
|
%i.ofn-i_032-closed-sign
|
|
%span.margin-top{ bo: { if: "current()" } }
|
|
%em Shopping here
|
|
%span.margin-top{ bo: { if: "!current()" } } Orders closed
|
|
|
|
.columns.small-2.medium-1.large-1.text-right
|
|
%span.margin-top
|
|
%i{"ng-class" => "{'ofn-i_005-caret-down' : !open(), 'ofn-i_006-caret-up' : open()}"}
|
|
|
|
.row.active_table_row{"ng-if" => "!hub.is_distributor", "ng-class" => "closed"}
|
|
.columns.small-12.medium-6.large-5.skinny-head
|
|
%a.hub{"ng-click" => "openModal(hub)", "ng-class" => "{primary: hub.active, secondary: !hub.active}"}
|
|
%i{ng: {class: "hub.icon_font"}}
|
|
%span.margin-top.hub-name-listing{"bo-bind" => "hub.name | truncate:40"}
|
|
|
|
.columns.small-4.medium-2.large-2
|
|
%span.margin-top{"bo-text" => "hub.address.city"}
|
|
.columns.small-2.medium-1.large-1
|
|
%span.margin-top{"bo-bind" => "hub.address.state_name | uppercase"}
|
|
|
|
.columns.small-6.medium-3.large-4.text-right
|
|
%span.margin-top{ bo: { if: "!current()" } }
|
|
%em Profile only
|
|
|