comparison 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
comparison
equal deleted inserted replaced
39:150ceac17a8d 119:8661b858af72
1 <div class="contextual"> 1 <div class="contextual">
2 <%= link_to_if_authorized l(:button_edit), 2 <%= link_to(l(:button_edit),
3 edit_news_path(@news), 3 edit_news_path(@news),
4 :class => 'icon icon-edit', 4 :class => 'icon icon-edit',
5 :accesskey => accesskey(:edit), 5 :accesskey => accesskey(:edit),
6 :onclick => 'Element.show("edit-news"); return false;' %> 6 :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %>
7 <%= link_to_if_authorized l(:button_delete), news_path(@news), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> 7 <%= link_to(l(:button_delete),
8 news_path(@news),
9 :confirm => l(:text_are_you_sure),
10 :method => :delete,
11 :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %>
8 </div> 12 </div>
9 13
10 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2> 14 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
11 15
12 <% if authorize_for('news', 'edit') %> 16 <% if authorize_for('news', 'edit') %>