2006-07-29 23:54:22 +04:00
|
|
|
<h2><%=l(:label_news_plural)%></h2>
|
2006-06-28 22:11:03 +04:00
|
|
|
|
|
|
|
<% for news in @news %>
|
|
|
|
<p>
|
|
|
|
<b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small>
|
|
|
|
<%= link_to_if_authorized image_tag('edit_small'), :controller => 'news', :action => 'edit', :id => news %>
|
|
|
|
<%= link_to_if_authorized image_tag('delete'), { :controller => 'news', :action => 'destroy', :id => news }, :confirm => 'Are you sure?' %>
|
|
|
|
<br />
|
2006-07-29 13:32:58 +04:00
|
|
|
<%= news.summary %>
|
2006-07-29 23:54:22 +04:00
|
|
|
<small>[<%= link_to l(:label_read), :controller => 'news', :action => 'show', :id => news %>]</small>
|
2006-06-28 22:11:03 +04:00
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= pagination_links_full @news_pages %>
|
|
|
|
<p>
|
2006-07-29 23:54:22 +04:00
|
|
|
<%= link_to_if_authorized '» ' + l(:label_news_new), :controller => 'projects', :action => 'add_news', :id => @project %>
|
2006-06-28 22:11:03 +04:00
|
|
|
</p>
|