mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
41 lines
2.1 KiB
Plaintext
41 lines
2.1 KiB
Plaintext
.row.active_table_row{"ng-if" => "hub.is_distributor", "ng-click" => "toggle()", "ng-class" => "{'closed' : !open(), 'is_distributor' : producer.is_distributor}", bindonce: true}
|
|
|
|
.columns.small-12.medium-6.large-5.skinny-head
|
|
%a.hub{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"}
|
|
%i{ng: {class: "hub.icon_font"}}
|
|
%span.margin-top.hub-name-listing {{ hub.name | truncate:40}}
|
|
|
|
.columns.small-4.medium-2.large-2
|
|
%span.margin-top {{ hub.address.city }}
|
|
.columns.small-2.medium-1.large-1
|
|
%span.margin-top {{ hub.address.state_name | uppercase }}
|
|
|
|
.columns.small-6.medium-3.large-4.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()" } } {{ hub.orders_close_at | sensible_timeframe }}
|
|
|
|
.columns.small-6.medium-3.large-4.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
|
|
|
|
.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}", "ofn-empties-cart" => "hub"}
|
|
%i{ng: {class: "hub.icon_font"}}
|
|
%span.margin-top.hub-name-listing {{ hub.name | truncate:40}}
|
|
|
|
.columns.small-4.medium-2.large-2
|
|
%span.margin-top {{ hub.address.city }}
|
|
.columns.small-2.medium-1.large-1
|
|
%span.margin-top {{ hub.address.state_name | uppercase }}
|
|
|
|
.columns.small-6.medium-3.large-4.text-right
|
|
%span.margin-top{ bo: { if: "!current()" } }
|
|
%em Profile only
|