app/views/representatives/show.html.erb
<% page_title "#{@representative.full_name} - #{Representative.model_name.human(count: 2).capitalize} - #{t('app.title')}" %>
<% party = @representative.latest_party %>
<div class="representative-profile">
<%= image_tag @representative.image.versions[:large], width: '240', height: '320',
class: 'representative-image', alt: @representative.full_name %>
<h1 class="representative-name"><%= @representative.full_name %> (<%= @representative.age %>)</h1>
<aside>
<span class="representative-district">
<%= link_to @representative.district.name, @representative.district %>
</span>
<span class="representative-party">
<%= party && link_to(party.name, party, class: party.external_id) %>
</span>
<% if @representative.substitute? %>
<div class="muted">Vararepresentant</div>
<% end %>
<% unless @representative.attending? %>
<div class="muted"><%= Representative.human_attribute_name(:not_attending) %></div>
<% end %>
<dl class="representative-committee-list">
<% @representative.current_committees.each do |com| %>
<dd>Medlem av <%= link_to com.name, com %></dd>
<% end %>
</dl>
</aside>
</div>
<hr class="soften">
<div class='row-fluid'>
<div class="span6">
<%= render 'vote_list' %>
</div>
<div class="span6">
<%= render 'twitter' if @representative.has_twitter? %>
</div>
</div>