decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb in decidim-0.2.0 vs decidim-proposals/app/views/decidim/proposals/proposals/show.html.erb in decidim-0.3.0

- old
+ new

@@ -6,20 +6,10 @@ <%= render partial: "votes_limit" %> <div class="row column view-header"> <h2 class="heading2"><%= @proposal.title %></h2> <div class="author-data"> - <div class="author-data__main"> - <div class="author author--inline"> - <span class="author__avatar"> - <%= image_tag @proposal.author_avatar_url %> - </span> - <%= l @proposal.created_at, format: :long %> - <span class="author__name"> - <%= @proposal.author_name %> - </span> - </div> - </div> + <%= render partial: "author", locals: { proposal: @proposal } %> <div class="author-data__extra"> <button type="button" data-open="<%= current_user.present? ? 'flagModal' : 'loginModal' %>" title="<%= t('.report') %>" aria-controls="<%= current_user.present? ? 'flagModal' : 'loginModal' %>" aria-haspopup="true" tabindex="0"> <%= icon "flag", aria_label: t('.report'), class: 'icon--small' %> </button> </div>