summaryrefslogtreecommitdiffstats
path: root/app/views/projects/list_news.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/list_news.rhtml')
-rw-r--r--app/views/projects/list_news.rhtml18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/projects/list_news.rhtml b/app/views/projects/list_news.rhtml
new file mode 100644
index 000000000..6880de32f
--- /dev/null
+++ b/app/views/projects/list_news.rhtml
@@ -0,0 +1,18 @@
+<h2><%=l(:label_news_plural)%></h2>
+
+<% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
+
+<ul>
+<% for news in @news %>
+ <li><%= link_to news.title, :controller => 'news', :action => 'show', :id => news %><br />
+ <% unless news.summary.empty? %><%= news.summary %><br /><% end %>
+ <em><%= news.author.name %>, <%= format_time(news.created_on) %></em><br />&nbsp;
+ </li>
+<% end %>
+</ul>
+
+
+<%= pagination_links_full @news_pages %>
+<p>
+<%= link_to_if_authorized '&#187; ' + l(:label_news_new), :controller => 'projects', :action => 'add_news', :id => @project %>
+</p>