@@ -1,33 +1,33 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to_if_authorized l(:label_news_new), |
|
3 | 3 | {:controller => 'projects', :action => 'add_news', :id => @project}, |
|
4 | 4 | :class => 'icon icon-add', |
|
5 | 5 | :onclick => 'Element.show("add-news"); return false;' %> |
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <div id="add-news" style="display:none;"> |
|
9 | 9 | <h2><%=l(:label_news_new)%></h2> |
|
10 | 10 | <% labelled_tabular_form_for :news, @news, :url => { :action => "add_news", :id => @project } do |f| %> |
|
11 | 11 | <%= render :partial => 'news/form', :locals => { :f => f } %> |
|
12 | 12 | <%= submit_tag l(:button_create) %> |
|
13 | 13 | <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %> |
|
14 | 14 | <% end %> |
|
15 | 15 | </div> |
|
16 | 16 | |
|
17 | 17 | <h2><%=l(:label_news_plural)%></h2> |
|
18 | 18 | |
|
19 | 19 | <% if @newss.empty? %> |
|
20 | 20 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
21 | 21 | <% else %> |
|
22 | 22 | <% @newss.each do |news| %> |
|
23 | 23 | <h3><%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %> |
|
24 | 24 | <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %></h3> |
|
25 |
<p |
|
|
25 | <p class="author"><%= authoring news.created_on, news.author %></p> | |
|
26 | 26 | <%= textilizable(news.description) %> |
|
27 | 27 | <% end %> |
|
28 | 28 | <% end %> |
|
29 | 29 | <%= pagination_links_full @news_pages %> |
|
30 | 30 | |
|
31 | 31 | <% content_for :header_tags do %> |
|
32 | 32 | <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %> |
|
33 | 33 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now