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' %>
|
2019-08-17 20:46:25 -04:00
|
|
|
<% else %>
|
|
|
|
<%= image_tag 'image_placeholder.png', class: 'img-thumbnail mb-4' %>
|
2019-03-23 19:59:38 -04:00
|
|
|
<% 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-08-11 18:20:59 -04:00
|
|
|
<% if @account.superuser? %>
|
|
|
|
<div>
|
|
|
|
<span class="badge badge-primary">
|
|
|
|
<%= translate :superuser %>
|
|
|
|
</span>
|
2019-03-24 15:09:57 -04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2019-08-11 18:20:59 -04:00
|
|
|
<div class="mt-2">
|
2019-08-11 19:12:53 -04:00
|
|
|
<div>
|
2019-08-14 16:30:03 -04:00
|
|
|
<i class="fas fa-user-tag fa-fw"></i>
|
2019-08-14 22:41:34 -04:00
|
|
|
<%= relationship_status_or_none \
|
|
|
|
@account.person&.current_relationship %>
|
2019-08-11 19:12:53 -04:00
|
|
|
</div>
|
|
|
|
|
2019-08-14 23:46:00 -04:00
|
|
|
<% if @account.person&.current_relationship&.position %>
|
|
|
|
<div>
|
|
|
|
<i class="fas fa-briefcase fa-fw"></i>
|
|
|
|
<%= relationship_short_position_or_none \
|
|
|
|
@account.person.current_relationship %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2019-08-11 18:20:59 -04:00
|
|
|
<% if @account.person&.current_regional_office %>
|
|
|
|
<div>
|
2019-08-14 16:30:03 -04:00
|
|
|
<i class="fas fa-map-marker-alt fa-fw"></i>
|
2019-08-14 17:15:58 -04:00
|
|
|
<%= regional_office_link_or_none \
|
|
|
|
@account.person.current_regional_office %>
|
2019-08-11 18:20:59 -04:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2019-08-11 16:11:59 -04:00
|
|
|
|
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>
|