##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r14964:bda78a4679bc
r15119:53710d80fc88
Show More
show.html.erb
78 lines | 4.1 KiB | text/plain | TextLexer
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="contextual">
Jean-Philippe Lang
Adds "New wiki page" link to create a new wiki page (#5536)....
r14964 <% if User.current.allowed_to?(:edit_wiki_pages, @project) %>
<%= link_to l(:label_wiki_page_new), new_project_wiki_page_path(@project), :remote => true, :class => 'icon icon-add' %>
<% end %>
Jean-Philippe Lang
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes)....
r1400 <% if @editable %>
Jean-Philippe Lang
Don't show watch, lock/unlock, delete links on previous wiki page versions....
r10474 <% if @content.current_version? %>
<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
Jean-Philippe Lang
Don't wrap watcher link with span....
r11104 <%= watcher_link(@page, User.current) %>
Jean-Philippe Lang
Don't show watch, lock/unlock, delete links on previous wiki page versions....
r10474 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
<%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>
<%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') %>
<%= 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') %>
<% else %>
<%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') %>
<% end %>
Jean-Philippe Lang
Wiki page protection (#851, patch #1146 by Mateo Murphy with slight changes)....
r1400 <% end %>
Eric Davis
Refactor: use :id instead of :page when linking to Wiki Pages...
r4182 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
Adds breadcrumb on all wiki page views....
r6062 <%= wiki_page_breadcrumb(@page) %>
Jean-Philippe Lang
Wiki page hierarchy (#528). Parent page can be assigned on Rename screen....
r1689
Jean-Philippe Lang
Adds #current_version? method to wiki content....
r7852 <% unless @content.current_version? %>
Jean-Philippe Lang
Adds some links for wiki history navigation....
r11991 <%= title [@page.pretty_title, project_wiki_page_path(@page.project, @page.title, :version => nil)],
[l(:label_history), history_project_wiki_page_path(@page.project, @page.title)],
"#{l(:label_version)} #{@content.version}" %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/wiki/show.rhtml....
r6297 <p>
Toshi MARUYAMA
replace &#171; and &#187; at app/views/wiki/show.rhtml to hexadecimal UTF-8 strings (#4796)....
r6294 <%= link_to(("\xc2\xab " + l(:label_previous)),
Toshi MARUYAMA
Replaced french word "anonyme" at app/views/wiki/show.rhtml with label_user_anonymous (#8994)....
r6291 :action => 'show', :id => @page.title, :project_id => @page.project,
Jean-Philippe Lang
Handle deleted wiki page versions (#10852)....
r10473 :version => @content.previous.version) + " - " if @content.previous %>
Jean-Philippe Lang
Added wiki diff....
r580 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %>
Toshi MARUYAMA
Rails3: view: html_safe for wiki/show.html.erb...
r8333 <%= '('.html_safe + link_to(l(:label_diff), :controller => 'wiki', :action => 'diff',
Toshi MARUYAMA
Replaced french word "anonyme" at app/views/wiki/show.rhtml with label_user_anonymous (#8994)....
r6291 :id => @page.title, :project_id => @page.project,
Jean-Philippe Lang
Handle deleted wiki page versions (#10852)....
r10473 :version => @content.version) + ')'.html_safe if @content.previous %> -
Toshi MARUYAMA
replace &#171; and &#187; at app/views/wiki/show.rhtml to hexadecimal UTF-8 strings (#4796)....
r6294 <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show',
Toshi MARUYAMA
Replaced french word "anonyme" at app/views/wiki/show.rhtml with label_user_anonymous (#8994)....
r6291 :id => @page.title, :project_id => @page.project,
Jean-Philippe Lang
Handle deleted wiki page versions (#10852)....
r10473 :version => @content.next.version) + " - " if @content.next %>
Jean-Philippe Lang
Wiki page versions routes cleanup....
r10476 <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <br />
Toshi MARUYAMA
Replaced french word "anonyme" at app/views/wiki/show.rhtml with label_user_anonymous (#8994)....
r6291 <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
%>, <%= format_time(@content.updated_on) %> </em><br />
Jean-Philippe Lang
Removed unneeded #h calls in views....
r13661 <%= @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
Hide 'New file' link and form for printing (#2949)....
r2506 <div id="wiki_add_attachment">
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 :id => 'attach_files_link' %></p>
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 <%= form_tag({:controller => 'wiki', :action => 'add_attachment',
:project_id => @project, :id => @page.title},
:multipart => true, :id => "add_attachment_form",
:style => "display:none;") do %>
Jean-Philippe Lang
Adds an optional description to attachments....
r1166 <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
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <%= link_to l(:button_cancel), {}, :onclick => "$('#add_attachment_form').hide(); 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 %>
Jean-Philippe Lang
Hide 'New file' link and form for printing (#2949)....
r2506 </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 <% 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| %>
Jean-Philippe Lang
Fixed: Wiki export link doesn't work for users without :view_wiki_edits permission (#9682)....
r7851 <%= f.link_to 'PDF', :url => {:id => @page.title, :version => params[:version]} %>
<%= f.link_to 'HTML', :url => {:id => @page.title, :version => params[:version]} %>
<%= f.link_to 'TXT', :url => {:id => @page.title, :version => params[:version]} %>
Jean-Philippe Lang
Adds a permission for exporting wiki pages....
r3257 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %>
Jean-Philippe Lang
Fixed 'export to' links positioning on wiki page....
r1010
Jean-Philippe Lang
Application layout refactored....
r736 <% content_for :sidebar do %>
<%= render :partial => 'sidebar' %>
<% end %>
Etienne Massip
Remove unecessary page title HTML escaping from views (#9252)....
r7445 <% html_title @page.pretty_title %>