annotate .svn/pristine/15/155d97c62e3af9eb00c14de47a9d0bc572afcd07.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 261b3d9a4903
children
rev   line source
Chris@1464 1 <div class="contextual">
Chris@1464 2 <% if @editable %>
Chris@1464 3 <% if @content.current_version? %>
Chris@1464 4 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
Chris@1464 5 <%= watcher_link(@page, User.current) %>
Chris@1464 6 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
Chris@1464 7 <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>
Chris@1464 8 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %>
Chris@1464 9 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :data => {:confirm => l(:text_are_you_sure)}, :class => 'icon icon-del') %>
Chris@1464 10 <% else %>
Chris@1464 11 <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') %>
Chris@1464 12 <% end %>
Chris@1464 13 <% end %>
Chris@1464 14 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
Chris@1464 15 </div>
Chris@1464 16
Chris@1464 17 <%= wiki_page_breadcrumb(@page) %>
Chris@1464 18
Chris@1464 19 <% unless @content.current_version? %>
Chris@1464 20 <%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)],
Chris@1464 21 [l(:label_history), history_project_wiki_page_path(@page.project, @page.title)],
Chris@1464 22 "#{l(:label_version)} #{@content.version}" %>
Chris@1464 23
Chris@1464 24 <p>
Chris@1464 25 <%= link_to(("\xc2\xab " + l(:label_previous)),
Chris@1464 26 :action => 'show', :id => @page.title, :project_id => @page.project,
Chris@1464 27 :version => @content.previous.version) + " - " if @content.previous %>
Chris@1464 28 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
Chris@1464 29 <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff',
Chris@1464 30 :id => @page.title, :project_id => @page.project,
Chris@1464 31 :version => @content.version) + ')'.html_safe if @content.previous %> -
Chris@1464 32 <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show',
Chris@1464 33 :id => @page.title, :project_id => @page.project,
Chris@1464 34 :version => @content.next.version) + " - " if @content.next %>
Chris@1464 35 <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
Chris@1464 36 <br />
Chris@1464 37 <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
Chris@1464 38 %>, <%= format_time(@content.updated_on) %> </em><br />
Chris@1464 39 <%=h @content.comments %>
Chris@1464 40 </p>
Chris@1464 41 <hr />
Chris@1464 42 <% end %>
Chris@1464 43
Chris@1464 44 <%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
Chris@1464 45
Chris@1464 46 <%= link_to_attachments @page %>
Chris@1464 47
Chris@1464 48 <% if @editable && authorize_for('wiki', 'add_attachment') %>
Chris@1464 49 <div id="wiki_add_attachment">
Chris@1464 50 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
Chris@1464 51 :id => 'attach_files_link' %></p>
Chris@1464 52 <%= form_tag({:controller => 'wiki', :action => 'add_attachment',
Chris@1464 53 :project_id => @project, :id => @page.title},
Chris@1464 54 :multipart => true, :id => "add_attachment_form",
Chris@1464 55 :style => "display:none;") do %>
Chris@1464 56 <div class="box">
Chris@1464 57 <p><%= render :partial => 'attachments/form' %></p>
Chris@1464 58 </div>
Chris@1464 59 <%= submit_tag l(:button_add) %>
Chris@1464 60 <%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); return false;" %>
Chris@1464 61 <% end %>
Chris@1464 62 </div>
Chris@1464 63 <% end %>
Chris@1464 64
Chris@1464 65 <% other_formats_links do |f| %>
Chris@1464 66 <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>
Chris@1464 67 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
Chris@1464 68 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
Chris@1464 69 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
Chris@1464 70
Chris@1464 71 <% content_for :sidebar do %>
Chris@1464 72 <%= render :partial => 'sidebar' %>
Chris@1464 73 <% end %>
Chris@1464 74
Chris@1464 75 <% html_title @page.pretty_title %>