Use button styles on message-reply-menu

pull/3855/head
Magdalena Kafka 9 years ago
parent 3d4e2b64ce
commit c13394637d
  1. 2
      app/assets/stylesheets/content/_legacy_actions.sass
  2. 19
      app/views/messages/show.html.erb

@ -93,7 +93,7 @@ ul.legacy-actions-more
position: relative
.message-reply-menu
@include contextual(-39px)
@include contextual(-60px)
.legacy-actions--inline-label
@extend .inline-label

@ -90,24 +90,24 @@ See doc/COPYRIGHT.rdoc for more details.
<%= authoring message.created_on, message.author %>
</h4>
<div class="message-reply-menu">
<%= link_to(icon_wrapper('icon-context icon-quote', l(:button_quote)),
<%= link_to(icon_wrapper('icon-quote', l(:button_quote)),
{ action: 'quote', id: message },
remote: true,
method: 'get',
title: l(:button_quote),
class: 'no-decoration-on-hover',
class: 'button -small',
alt: l(:button_quote)) if !@topic.locked? && authorize_for('messages', 'reply') %>
<%= link_to(icon_wrapper('icon-context icon-edit', l(:button_edit)),
<%= link_to(icon_wrapper('icon-edit', l(:button_edit)),
{ action: 'edit', id: message },
title: l(:button_edit),
class: 'no-decoration-on-hover',
class: 'button -small',
alt: l(:button_edit)) if message.editable_by?(User.current) %>
<%= link_to(icon_wrapper('icon-context icon-delete', l(:button_delete)),
<%= link_to(icon_wrapper('icon-delete', l(:button_delete)),
{ action: 'destroy', id: message},
method: :delete,
data: { confirm: l(:text_are_you_sure) },
title: l(:button_delete),
class: 'no-decoration-on-hover',
class: 'button -small',
alt: l(:button_delete)) if message.destroyable_by?(User.current) %>
</div>
<div class="wiki" ng-non-bindable>
@ -120,11 +120,14 @@ See doc/COPYRIGHT.rdoc for more details.
<% end %>
<% if !@topic.locked? && authorize_for('messages', 'reply') %>
<p><%= toggle_link l(:button_reply), "reply", focus: 'reply_content' %></p>
<div class="form--space">
<%= toggle_link l(:button_reply), "reply", {focus: 'reply_content'}, {class: 'button -highlight'} %>
</div>
<div id="reply" style="display:none;">
<hr class="form--separator">
<%= labelled_tabular_form_for @reply,
as: :reply,
url: reply_to_topic_path(@topic),

Loading…
Cancel
Save