comparison .svn/pristine/bc/bcc554e7744ab29cc1c8ca57d857bed00d539a54.svn-base @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents
children
comparison
equal deleted inserted replaced
1294:3e4c3460b6ca 1295:622f24f53b42
1 <div class="contextual">
2 <%= link_to(l(:label_news_new),
3 new_project_news_path(@project),
4 :class => 'icon icon-add',
5 :onclick => 'showAndScrollTo("add-news", "news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %>
6 </div>
7
8 <div id="add-news" style="display:none;">
9 <h2><%=l(:label_news_new)%></h2>
10 <%= labelled_form_for @news, :url => project_news_index_path(@project),
11 :html => { :id => 'news-form', :multipart => true } do |f| %>
12 <%= render :partial => 'news/form', :locals => { :f => f } %>
13 <%= submit_tag l(:button_create) %>
14 <%= preview_link preview_news_path(:project_id => @project), 'news-form' %> |
15 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-news").hide()' %>
16 <% end if @project %>
17 <div id="preview" class="wiki"></div>
18 </div>
19
20 <h2><%=l(:label_news_plural)%></h2>
21
22 <% if @newss.empty? %>
23 <p class="nodata"><%= l(:label_no_data) %></p>
24 <% else %>
25 <% @newss.each do |news| %>
26 <h3><%= avatar(news.author, :size => "24") %><%= link_to_project(news.project) + ': ' unless news.project == @project %>
27 <%= link_to h(news.title), news_path(news) %>
28 <%= "(#{l(:label_x_comments, :count => news.comments_count)})" if news.comments_count > 0 %></h3>
29 <p class="author"><%= authoring news.created_on, news.author %></p>
30 <div class="wiki">
31 <%= textilizable(news, :description) %>
32 </div>
33 <% end %>
34 <% end %>
35 <p class="pagination"><%= pagination_links_full @news_pages %></p>
36
37 <% other_formats_links do |f| %>
38 <%= f.link_to 'Atom', :url => {:project_id => @project, :key => User.current.rss_key} %>
39 <% end %>
40
41 <% content_for :header_tags do %>
42 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :page => nil, :key => User.current.rss_key})) %>
43 <%= stylesheet_link_tag 'scm' %>
44 <% end %>
45
46 <% html_title(l(:label_news_plural)) -%>