annotate .svn/pristine/a7/a7e526db97fd5703810f184244247a7fcf68dabb.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

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