0
0
Fork 0

inserted the admin_post_create template in the admin_index view

This commit is contained in:
Gibheer 2011-07-01 14:57:05 +02:00
parent b0f80f3b9a
commit 8c29826c6f
1 changed files with 6 additions and 6 deletions

View File

@ -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