app/views/decidim/debates/debates/show.html.erb in decidim-debates-0.11.2 vs app/views/decidim/debates/debates/show.html.erb in decidim-debates-0.12.0.pre

- old
+ new

@@ -6,25 +6,12 @@ <div class="row column view-header"> <h2 class="heading2"> <%== translated_attribute debate.title %> </h2> - <div class="author-data"> - <%= render partial: "decidim/shared/author_reference", locals: { author: Decidim::Debates::DebatePresenter.new(debate).author } %> - <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> - <% unless debate.official? %> - <%= link_to_current_or_new_conversation_with(debate.author) %> - <% end %> - </div> - <% if debate.commentable? %> - <a href="#comments" title="<%= t(".comments") %>"> - <%= icon "comment-square", aria_label: t(".comments"), role: "img" %> <%= debate.comments.count %> - </a> - <% end %> - </div> + + <%= cell "decidim/author", Decidim::Debates::DebatePresenter.new(debate).author, context: {extra_classes: ["author-data--small"]} %> + </div> <div class="row"> <div class="columns section view-side mediumlarge-4 mediumlarge-push-8 large-3 large-push-9"> <div class="card extra">