Archived
Link to 'all messages' in message email fixed, added "delete_all" action
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
<% if @messages.any? %>
|
||||
<%= link_to "Delete all messages", destroy_all_messages_path, method: "post", class: "btn blue right", data: {confirm: "Delete all of your messages forever?"} %>
|
||||
<% end %>
|
||||
<%= link_to "Create new message", new_message_path, class: "btn blue right" %>
|
||||
<h3>Your private messages:</h3>
|
||||
<br>
|
||||
<h2>
|
||||
<% if Message.where(user_target_id: current_user.id).any? %>
|
||||
Your private messages:
|
||||
<% else %>
|
||||
You have no private messages.
|
||||
<% end %>
|
||||
</h2>
|
||||
|
||||
<div id="forum_groups">
|
||||
<% @messages.each do |message| %>
|
||||
<div class="item-group with-avatar">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<%= render_md(@message.text).html_safe %>
|
||||
</blockquote>
|
||||
|
||||
<p><%= link_to "Click here", messages_path %> to view your current messages.</p>
|
||||
<p><%= link_to "Click here", messages_url %> to view your current messages.</p>
|
||||
|
||||
<p>If you have any questions or problems, just ask one of our <%= link_to "Staff", users_url(role: "staff"), style: "text-decoration: none; color: #4096EE;" %> in-game or on the forums!</p>
|
||||
<p>Your Redstoner team</p>
|
||||
|
||||
Reference in New Issue
Block a user