2011-06-28 10:29:44 +02:00
|
|
|
%a{:href => '/admin/logout'}="Logout"
|
|
|
|
%h1="Index"
|
2011-07-01 14:57:05 +02:00
|
|
|
#create
|
|
|
|
-@post = Post.new
|
|
|
|
=haml :admin_post_create, :layout => nil
|
|
|
|
%hr
|
2011-06-30 21:39:01 +02:00
|
|
|
#posts
|
|
|
|
%a{:href => '/admin/post'}="Posts"
|
2011-07-01 14:57:05 +02:00
|
|
|
-@posts=Post.all(:order => [:id.desc])
|
|
|
|
=haml :admin_posts, :layout => nil
|