move templates into app/views/templates/_templates.haml

This commit is contained in:
danielgrippi 2011-12-11 11:46:34 -08:00 committed by Dennis Collinson
parent 52e3f1b240
commit 4883c70ae2
5 changed files with 13 additions and 8 deletions

View file

@ -75,14 +75,7 @@
= render 'layouts/header' = render 'layouts/header'
- if @backbone - if @backbone
%script{:id => "stream-element-template", :type => 'text/template'} = render 'templates/templates'
!= File.read("#{Rails.root}/app/views/templates/_stream_element.html.underscore")
%script{:id => "comment-template", :type => 'text/template'}
!= File.read("#{Rails.root}/app/views/templates/_comment.html.underscore")
%script{:id => "comment-stream-template", :type => 'text/template'}
!= File.read("#{Rails.root}/app/views/templates/_comment_stream.html.underscore")
.container{:style=> "#{yield(:break_the_mold)}"} .container{:style=> "#{yield(:break_the_mold)}"}
- if @aspsect == :getting_started || @page == :logged_out - if @aspsect == :getting_started || @page == :logged_out

View file

@ -0,0 +1,12 @@
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
%script{:id => "stream-element-template", :type => 'text/template'}
!= File.read("#{Rails.root}/app/views/templates/stream_element.ujs")
%script{:id => "comment-template", :type => 'text/template'}
!= File.read("#{Rails.root}/app/views/templates/comment.ujs")
%script{:id => "comment-stream-template", :type => 'text/template'}
!= File.read("#{Rails.root}/app/views/templates/comment_stream.ujs")