annotate .svn/pristine/99/999df512aeb4c0876f1878f63f27c75b32797102.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 <div class="contextual">
Chris@1295 2 <% if @editable %>
Chris@1295 3 <% if @content.current_version? %>
Chris@1295 4 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
Chris@1295 5 <%= watcher_link(@page, User.current) %>
Chris@1295 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@1295 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@1295 8 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %>
Chris@1295 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@1295 10 <% else %>
Chris@1295 11 <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') %>
Chris@1295 12 <% end %>
Chris@1295 13 <% end %>
Chris@1295 14 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
Chris@1295 15 </div>
Chris@1295 16
Chris@1295 17 <%= wiki_page_breadcrumb(@page) %>
Chris@1295 18
Chris@1295 19 <% unless @content.current_version? %>
Chris@1295 20 <p>
Chris@1295 21 <%= link_to(("\xc2\xab " + l(:label_previous)),
Chris@1295 22 :action => 'show', :id => @page.title, :project_id => @page.project,
Chris@1295 23 :version => @content.previous.version) + " - " if @content.previous %>
Chris@1295 24 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
Chris@1295 25 <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff',
Chris@1295 26 :id => @page.title, :project_id => @page.project,
Chris@1295 27 :version => @content.version) + ')'.html_safe if @content.previous %> -
Chris@1295 28 <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show',
Chris@1295 29 :id => @page.title, :project_id => @page.project,
Chris@1295 30 :version => @content.next.version) + " - " if @content.next %>
Chris@1295 31 <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
Chris@1295 32 <br />
Chris@1295 33 <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
Chris@1295 34 %>, <%= format_time(@content.updated_on) %> </em><br />
Chris@1295 35 <%=h @content.comments %>
Chris@1295 36 </p>
Chris@1295 37 <hr />
Chris@1295 38 <% end %>
Chris@1295 39
Chris@1295 40 <%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
Chris@1295 41
Chris@1295 42 <%= link_to_attachments @page %>
Chris@1295 43
Chris@1295 44 <% if @editable && authorize_for('wiki', 'add_attachment') %>
Chris@1295 45 <div id="wiki_add_attachment">
Chris@1295 46 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
Chris@1295 47 :id => 'attach_files_link' %></p>
Chris@1295 48 <%= form_tag({:controller => 'wiki', :action => 'add_attachment',
Chris@1295 49 :project_id => @project, :id => @page.title},
Chris@1295 50 :multipart => true, :id => "add_attachment_form",
Chris@1295 51 :style => "display:none;") do %>
Chris@1295 52 <div class="box">
Chris@1295 53 <p><%= render :partial => 'attachments/form' %></p>
Chris@1295 54 </div>
Chris@1295 55 <%= submit_tag l(:button_add) %>
Chris@1295 56 <%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); return false;" %>
Chris@1295 57 <% end %>
Chris@1295 58 </div>
Chris@1295 59 <% end %>
Chris@1295 60
Chris@1295 61 <% other_formats_links do |f| %>
Chris@1295 62 <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>
Chris@1295 63 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
Chris@1295 64 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
Chris@1295 65 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
Chris@1295 66
Chris@1295 67 <% content_for :sidebar do %>
Chris@1295 68 <%= render :partial => 'sidebar' %>
Chris@1295 69 <% end %>
Chris@1295 70
Chris@1295 71 <% html_title @page.pretty_title %>