Mercurial > hg > soundsoftware-site
diff app/views/news/.svn/text-base/show.rhtml.svn-base @ 119:8661b858af72
* Update to Redmine trunk rev 4705
author | Chris Cannam |
---|---|
date | Thu, 13 Jan 2011 14:12:06 +0000 |
parents | 94944d00e43c |
children | cbce1fd3b1b7 |
line wrap: on
line diff
--- a/app/views/news/.svn/text-base/show.rhtml.svn-base Fri Nov 19 14:05:24 2010 +0000 +++ b/app/views/news/.svn/text-base/show.rhtml.svn-base Thu Jan 13 14:12:06 2011 +0000 @@ -1,10 +1,14 @@ <div class="contextual"> -<%= link_to_if_authorized l(:button_edit), - edit_news_path(@news), - :class => 'icon icon-edit', - :accesskey => accesskey(:edit), - :onclick => 'Element.show("edit-news"); return false;' %> -<%= link_to_if_authorized l(:button_delete), news_path(@news), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> +<%= link_to(l(:button_edit), + edit_news_path(@news), + :class => 'icon icon-edit', + :accesskey => accesskey(:edit), + :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %> +<%= link_to(l(:button_delete), + news_path(@news), + :confirm => l(:text_are_you_sure), + :method => :delete, + :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %> </div> <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>