move Wall to own resource

This commit is contained in:
Dmitriy Zaporozhets 2013-03-19 12:35:42 +02:00
parent f3dfd22993
commit 57f3409bcc
7 changed files with 39 additions and 25 deletions

View file

@ -41,7 +41,7 @@
- if @project.wall_enabled
= nav_link(path: 'projects#wall') do
= link_to 'Wall', wall_project_path(@project)
= link_to 'Wall', project_wall_path(@project)
- if @project.snippets_enabled
= nav_link(controller: :snippets) do

View file

@ -1,2 +0,0 @@
%div.wall_page
= render "notes/reversed_notes_with_form"

View file

@ -0,0 +1,11 @@
%div.wall-page
%ul.well-list.notes
.notes-busy.js-notes-busy
.js-main-target-form
= render "notes/form"
:javascript
$(function(){
Wall.init(#{@project.id});
});