From b8371f25015a2e6ccd0b575d247ec994218ca397 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 15 Mar 2010 10:41:39 -0300 Subject: [PATCH] Creating new article directly from user menu --- app/views/shared/user_menu.rhtml | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/app/views/shared/user_menu.rhtml b/app/views/shared/user_menu.rhtml index d6b4c6e..25ff408 100644 --- a/app/views/shared/user_menu.rhtml +++ b/app/views/shared/user_menu.rhtml @@ -23,6 +23,10 @@ <%= link_to('' + _('My groups'), { :controller => 'memberships', :profile => user.identifier, :action => 'index' }) %> +
  • + <%= lightbox_link_to('' + _('New article'), user.admin_url.merge(:controller => 'cms', :action => 'new')) %> +
  • + <% for enterprise in user.enterprises %>
  • <%= link_to('' + (_('Manage %s') % enterprise.short_name), { :controller => 'profile_editor', :profile => enterprise.identifier, :action => 'index' }) %>
  • <% end %> -- libgit2 0.21.2