inserted the admin_post_create template in the admin_index view
This commit is contained in:
parent
b0f80f3b9a
commit
8c29826c6f
|
@ -1,10 +1,10 @@
|
|||
%a{:href => '/admin/logout'}="Logout"
|
||||
%h1="Index"
|
||||
#create
|
||||
-@post = Post.new
|
||||
=haml :admin_post_create, :layout => nil
|
||||
%hr
|
||||
#posts
|
||||
%a{:href => '/admin/post'}="Posts"
|
||||
-@account.posts.all(:order => [:written.desc]).each do |post|
|
||||
.post
|
||||
%p.title
|
||||
%a{:href => "/admin/post/#{post.id}"}=post.title
|
||||
%span.released{:class => "post-released-#{post.released}"}
|
||||
%span.written=post.written
|
||||
-@posts=Post.all(:order => [:id.desc])
|
||||
=haml :admin_posts, :layout => nil
|
||||
|
|
Loading…
Reference in New Issue