26 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-07-13 11:08:01 -06:00
- territory = Carmen::Country.coded(@organization.locations[0].country).subregions.coded(@organization.locations[0].territory)
- location_name = @organization.locations[0].city + (territory ? ' ' + territory.name : '') + ', ' + Carmen::Country.coded(@organization.locations[0].country).name
- title @organization.name + ' (' + location_name + ')'
- description "#{@organization.name} is a bicycle collective, co-op, community bike project, or advocacy group in #{location_name}"
2014-07-12 20:19:48 -06:00
- banner_image @organization.cover_url, id: @organization.cover_attribution_id, name: @organization.cover_attribution_name, user_id: @organization.cover_attribution_user_id, src: @organization.cover_attribution_src
2014-07-12 13:08:51 -06:00
- page_style 'article'
2014-03-09 14:43:33 -06:00
- content_for :banner do
2014-07-06 19:02:23 -06:00
.row{:class => (@organization.avatar.is_landscape? ? 'landscape' : 'portrait')}
.columns{:class => (@organization.avatar.is_landscape? ? nil : ['medium-6', 'medium-push-6'])}
%figure
= image_tag(@organization.avatar.url)
.columns.info{:class => (@organization.avatar.is_landscape? ? nil : ['medium-6', 'medium-pull-6'])}
2014-03-09 14:43:33 -06:00
%h1=@organization.name
- territory = Carmen::Country.coded(@organization.locations[0].country).subregions.coded(@organization.locations[0].territory)
2014-07-13 11:08:01 -06:00
%h2=location_name
2014-03-09 14:43:33 -06:00
%p#notice= notice
= tabs!
2014-07-11 23:15:12 -06:00
%article.row
.columns.large-10
2014-07-06 19:02:23 -06:00
%h2=('About '+@organization.name)
2014-03-09 14:43:33 -06:00
=p @organization, :info