|
|
|
@ -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), |
|
|
|
|