0
0
zero-blog/views/admin_index.haml
2011-06-30 21:39:01 +02:00

11 lines
338 B
Plaintext

%a{:href => '/admin/logout'}="Logout"
%h1="Index"
#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