2019-02-01 16:36:10 -05:00
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-3">
|
2019-03-23 19:59:38 -04:00
|
|
|
<% if @account.avatar.attached? %>
|
|
|
|
<%= image_tag @account.avatar, class: 'img-thumbnail mb-4' %>
|
|
|
|
<% end %>
|
|
|
|
|
2019-02-01 16:54:30 -05:00
|
|
|
<% if @account.public_name.present? %>
|
|
|
|
<h1><%= @account.public_name %></h1>
|
|
|
|
<% end %>
|
|
|
|
|
2019-03-24 15:27:06 -04:00
|
|
|
<p class="h3 text-muted"><%= @account.nickname %></p>
|
2019-02-01 16:54:30 -05:00
|
|
|
|
2019-03-24 15:04:39 -04:00
|
|
|
<div class="mb-2">
|
|
|
|
<i class="fas fa-user-tag"></i>
|
|
|
|
|
|
|
|
<% if @account.person&.party_member? %>
|
|
|
|
<%= translate :member, scope: %i[helpers person_status] %>
|
|
|
|
<% elsif @account.person&.party_supporter? %>
|
|
|
|
<%= translate :supporter, scope: %i[helpers person_status] %>
|
|
|
|
<% elsif @account.person&.excluded_from_party? %>
|
|
|
|
<%= translate :excluded, scope: %i[helpers person_status] %>
|
|
|
|
<% else %>
|
|
|
|
<%= translate :not_in_party, scope: %i[helpers person_status] %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
2019-03-24 15:09:57 -04:00
|
|
|
<% if @account.person&.regional_office %>
|
|
|
|
<div class="mb-2">
|
|
|
|
<i class="fas fa-map-marker-alt"></i>
|
2019-03-24 17:37:36 -04:00
|
|
|
<%= link_to(
|
|
|
|
@account.person.regional_office.country_state.display_name,
|
|
|
|
@account.person.regional_office.country_state,
|
|
|
|
) %>
|
2019-03-24 15:09:57 -04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2019-03-24 15:32:52 -04:00
|
|
|
<hr/>
|
|
|
|
|
2019-02-01 16:54:30 -05:00
|
|
|
<% if @account.biography %>
|
|
|
|
<p><%= @account.biography %></p>
|
|
|
|
<% end %>
|
2019-02-01 16:36:10 -05:00
|
|
|
</div>
|
2019-02-01 16:54:30 -05:00
|
|
|
|
2019-02-01 16:36:10 -05:00
|
|
|
<div class="col-md-9">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|