Mercurial > hg > soundsoftware-site
comparison app/views/wiki/.svn/text-base/show.rhtml.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
22:40f7cfd4df19 | 37:94944d00e43c |
---|---|
1 <div class="contextual"> | 1 <div class="contextual"> |
2 <% if @editable %> | 2 <% if @editable %> |
3 <%= 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 %> | 3 <%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :id => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %> |
4 <%= watcher_tag(@page, User.current) %> | 4 <%= watcher_tag(@page, User.current) %> |
5 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :page => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> | 5 <%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :id => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %> |
6 <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :page => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> | 6 <%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :id => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %> |
7 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> | 7 <%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :id => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %> |
8 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> | 8 <%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :id => @page.title}, :method => :delete, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %> |
9 <%= 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 %> | 9 <%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :id => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %> |
10 <% end %> | 10 <% end %> |
11 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %> | 11 <%= link_to_if_authorized(l(:label_history), {:action => 'history', :id => @page.title}, :class => 'icon icon-history') %> |
12 </div> | 12 </div> |
13 | 13 |
14 <%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:page => parent.title}}) %> | 14 <%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:id => parent.title, :project_id => parent.project}}) %> |
15 | 15 |
16 <% if @content.version != @page.content.version %> | 16 <% if @content.version != @page.content.version %> |
17 <p> | 17 <p> |
18 <%= link_to(('« ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) + " - " if @content.version > 1 %> | 18 <%= link_to(('« ' + l(:label_previous)), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version - 1)) + " - " if @content.version > 1 %> |
19 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> | 19 <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> |
20 <%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :page => @page.title, :version => @content.version) + ')' if @content.version > 1 %> - | 20 <%= '(' + link_to('diff', :controller => 'wiki', :action => 'diff', :id => @page.title, :project_id => @page.project, :version => @content.version) + ')' if @content.version > 1 %> - |
21 <%= link_to((l(:label_next) + ' »'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %> | 21 <%= link_to((l(:label_next) + ' »'), :action => 'show', :id => @page.title, :project_id => @page.project, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %> |
22 <%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %> | 22 <%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project) %> |
23 <br /> | 23 <br /> |
24 <em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br /> | 24 <em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br /> |
25 <%=h @content.comments %> | 25 <%=h @content.comments %> |
26 </p> | 26 </p> |
27 <hr /> | 27 <hr /> |
33 | 33 |
34 <% if @editable && authorize_for('wiki', 'add_attachment') %> | 34 <% if @editable && authorize_for('wiki', 'add_attachment') %> |
35 <div id="wiki_add_attachment"> | 35 <div id="wiki_add_attachment"> |
36 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", | 36 <p><%= link_to l(:label_attachment_new), {}, :onclick => "Element.show('add_attachment_form'); Element.hide(this); Element.scrollTo('add_attachment_form'); return false;", |
37 :id => 'attach_files_link' %></p> | 37 :id => 'attach_files_link' %></p> |
38 <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> | 38 <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :project_id => @project, :id => @page.title }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %> |
39 <div class="box"> | 39 <div class="box"> |
40 <p><%= render :partial => 'attachments/form' %></p> | 40 <p><%= render :partial => 'attachments/form' %></p> |
41 </div> | 41 </div> |
42 <%= submit_tag l(:button_add) %> | 42 <%= submit_tag l(:button_add) %> |
43 <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %> | 43 <%= link_to l(:button_cancel), {}, :onclick => "Element.hide('add_attachment_form'); Element.show('attach_files_link'); return false;" %> |
44 <% end %> | 44 <% end %> |
45 </div> | 45 </div> |
46 <% end %> | 46 <% end %> |
47 | 47 |
48 <% other_formats_links do |f| %> | 48 <% other_formats_links do |f| %> |
49 <%= f.link_to 'HTML', :url => {:page => @page.title, :version => @content.version} %> | 49 <%= f.link_to 'HTML', :url => {:id => @page.title, :version => @content.version} %> |
50 <%= f.link_to 'TXT', :url => {:page => @page.title, :version => @content.version} %> | 50 <%= f.link_to 'TXT', :url => {:id => @page.title, :version => @content.version} %> |
51 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %> | 51 <% end if User.current.allowed_to?(:export_wiki_pages, @project) %> |
52 | 52 |
53 <% content_for :header_tags do %> | 53 <% content_for :header_tags do %> |
54 <%= stylesheet_link_tag 'scm' %> | 54 <%= stylesheet_link_tag 'scm' %> |
55 <% end %> | 55 <% end %> |