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