##// END OF EJS Templates
Adds an helper to render other formats download links....
Adds an helper to render other formats download links. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2333 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r2331:f1aa0df32666
r2331:f1aa0df32666
Show More
show.rhtml
58 lines | 3.5 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="contextual">
Jean-Philippe Lang
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes)....
r1400 <% if @editable %>
Jean-Philippe Lang
Added some accesskeys:...
r793 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %>
Jean-Philippe Lang
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes)....
r1400 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :page => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
<%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :page => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>
Jean-Philippe Lang
Added the ability to rename wiki pages (specific permission required)....
r709 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %>
Jean-Philippe Lang
Added the ability to destroy wiki pages (content and its history are deleted from the database)....
r537 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
Jean-Philippe Lang
Merged 0.6 branch into trunk....
r663 <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :page => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %>
Jean-Philippe Lang
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes)....
r1400 <% end %>
Jean-Philippe Lang
Adds a permission 'view wiki edits' so that wiki history can be hidden to certain users (#1154)....
r1813 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
Wiki page hierarchy (#528). Parent page can be assigned on Rename screen....
r1689 <%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:page => parent.title}}) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% if @content.version != @page.content.version %>
<p>
<%= link_to(('&#171; ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) + " - " if @content.version > 1 %>
Jean-Philippe Lang
Added wiki diff....
r580 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
<%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :page => @page.title, :version => @content.version) + ')' if @content.version > 1 %> -
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <%= link_to((l(:label_next) + ' &#187;'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %>
<%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %>
<br />
<em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br />
Jean-Philippe Lang
Fixed: 10342 Creation of Schema in Oracle...
r476 <%=h @content.comments %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </p>
<hr />
<% end %>
Jean-Philippe Lang
A wiki page can now be attached to each version....
r561 <%= render(:partial => "wiki/content", :locals => {:content => @content}) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
AttachmentsController now handles attachments deletion....
r2114 <%= link_to_attachments @page %>
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538
Jean-Philippe Lang
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes)....
r1400 <% if @editable && authorize_for('wiki', 'add_attachment') %>
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;",
:id => 'attach_files_link' %></p>
<% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
<div class="box">
<p><%= render :partial => 'attachments/form' %></p>
</div>
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538 <%= submit_tag l(:button_add) %>
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %>
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538 <% end %>
<% end %>
Jean-Philippe Lang
Added code highlighting support in wiki, using this syntax:...
r699
Jean-Philippe Lang
Adds an helper to render other formats download links....
r2331 <% other_formats_links do |f| %>
<%= f.link_to 'HTML', :url => {:page => @page.title, :version => @content.version} %>
<%= f.link_to 'TXT', :url => {:page => @page.title, :version => @content.version} %>
<% end %>
Jean-Philippe Lang
Fixed 'export to' links positioning on wiki page....
r1010
Jean-Philippe Lang
Added code highlighting support in wiki, using this syntax:...
r699 <% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
Jean-Philippe Lang
Removed @html_title assignments in controllers....
r704
Jean-Philippe Lang
Application layout refactored....
r736 <% content_for :sidebar do %>
<%= render :partial => 'sidebar' %>
<% end %>
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title @page.pretty_title %>