summaryrefslogtreecommitdiffstats
path: root/redmine/app/views/projects/list_news.rhtml
blob: ae7ae0f8630fb22fa32f19d8f3b9c2bb0232038f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<h2><%=l(:label_news_plural)%></h2>

<% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>

<% for news in @news %>
	<p>
	<b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small><br />
	<% unless news.summary.empty? %><%= news.summary %><br /><% end %>
	<small>[<%= link_to l(:label_read), :controller => 'news', :action => 'show', :id => news %>]</small>
	</p>
<% end %>

<%= pagination_links_full @news_pages %>
<p>
<%= link_to_if_authorized '&#187; ' + l(:label_news_new), :controller => 'projects', :action => 'add_news', :id => @project %>
</p>