Added messaging feature

This commit is contained in:
MrYummy
2017-05-27 00:34:47 +02:00
parent 992406a20b
commit e378dfab02
23 changed files with 236 additions and 38 deletions

View File

@@ -1,5 +1,7 @@
<% title "News" %>
<% if current_user %>
<%= link_to "Private Messages (#{Message.where(user_target: current_user).count})", messages_path, class: "btn right blue" %>
<% end %>
<h1>News</h1>
<%= link_to 'Make new Post', new_blogpost_path, class: "btn blue" if mod? %>
<div id="posts">