From e9418758513fea6a83f63d31ecac316fdb6fc151 Mon Sep 17 00:00:00 2001 From: hukl Date: Mon, 27 Apr 2009 16:11:47 +0200 Subject: seperated admin overview into partials. included recent changes --- app/views/admin/_drafts.html.erb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/views/admin/_drafts.html.erb (limited to 'app/views/admin/_drafts.html.erb') diff --git a/app/views/admin/_drafts.html.erb b/app/views/admin/_drafts.html.erb new file mode 100644 index 0000000..abda588 --- /dev/null +++ b/app/views/admin/_drafts.html.erb @@ -0,0 +1,25 @@ +

Drafts (<%= @drafts.size %>)

+
+ + + + + + + + + <% @drafts.each do |draft| %> + + + + + + + + <% end %> +
IDTitlePathauthor
<%= draft.id %><%= draft.title %><%= draft.node.unique_name %><%= draft.user.login rescue "" %> + <%= link_to 'Show', node_path(draft.node) %> + <%= link_to "Revisions", :controller => :revisions, :action => :diff, :id => draft.node.id %> + <%= link_to "Publish", publish_node_path(draft.node), :method => :put, :confirm => "Do you really want to publish?" %> +
+
\ No newline at end of file -- cgit v1.3