-
+
<% if @page and (@page.name == 'HomePage') and %w( show published print ).include?(@action_name) %>
<%= h(@web.name) + (@show_diff ? ' (changes)' : '') %>
<% elsif @web %>
@@ -50,10 +50,11 @@
<% else %>
<%= @title %>
<% end %>
-
+
<%= render 'navigation' unless @web.nil? || @hide_navigation %>
+
<% if @flash[:info] %>
<%= escape_preserving_linefeeds @flash[:info] %>
<% end %>
@@ -66,8 +67,11 @@
<% if @show_footer %>
<% end %>
Index: views/wiki/_inbound_links.rhtml
===================================================================
--- views/wiki/_inbound_links.rhtml (revision 482)
+++ views/wiki/_inbound_links.rhtml (working copy)
@@ -1,13 +1,13 @@
<% unless @page.linked_from.empty? %>
| Linked from:
- <%= @page.linked_from.collect { |referring_page| link_to_existing_page referring_page }.join(", ") %>
+ <%= @page.linked_from.collect { |referring_page| link_to_published_page referring_page }.join(", ") %>
<% end %>
<% unless @page.included_from.empty? %>
| Included from:
- <%= @page.included_from.collect { |referring_page| link_to_existing_page referring_page }.join(", ") %>
+ <%= @page.included_from.collect { |referring_page| link_to_published_page referring_page }.join(", ") %>
<% end %>
Index: views/wiki/web_list.rhtml
===================================================================
--- views/wiki/web_list.rhtml (revision 482)
+++ views/wiki/web_list.rhtml (working copy)
@@ -1,18 +1,44 @@
<% @title = "Wiki webs" %>
-
+
+
+
+
+
+
+ Loading...
+
+

+
+
+
+
+
Index: views/wiki/published.rhtml
===================================================================
--- views/wiki/published.rhtml (revision 482)
+++ views/wiki/published.rhtml (working copy)
@@ -7,3 +7,27 @@
%>
<%= @renderer.display_published %>
+
+
+
+ <%= navigation_menu_for_page.join(' | ') %>
+
+
+ | Views:
+ <%= link_to('Print',
+ { :web => @web.address, :action => 'print', :id => @page.name },
+ { :accesskey => 'p', :name => 'view_print' }) %>
+ <% if defined? RedClothForTex and RedClothForTex.available? and @web.markup == :textile %>
+ |
+ <%= link_to 'TeX', {:web => @web.address, :action => 'tex', :id => @page.name},
+ {:name => 'view_tex'} %>
+ |
+ <%= link_to 'PDF', {:web => @web.address, :action => 'pdf', :id => @page.name},
+ {:name => 'view_pdf'} %>
+ <% end %>
+
+
+ <%= render :partial => 'inbound_links' %>
+
+
+
Index: views/wiki/edit.rhtml
===================================================================
--- views/wiki/edit.rhtml (revision 482)
+++ views/wiki/edit.rhtml (working copy)
@@ -4,17 +4,12 @@
@hide_navigation = true
%>
-
- <%= render("#{@web.markup}_help") %>
- <%= render 'wiki_words_help' %>
-
-
+
Show Help
+
+ <%= render("#{@web.markup}_help") %>
+ <%= render 'wiki_words_help' %>
+
+
Hide Help
+
+
Textile formatting tips (advanced)
| _your text_ | → | your text |
@@ -22,3 +40,6 @@
);
}
+
+Hide Help
+
Index: views/wiki_words_help.rhtml
===================================================================
--- views/wiki_words_help.rhtml (revision 482)
+++ views/wiki_words_help.rhtml (working copy)
@@ -1,9 +0,0 @@
-Wiki words
-
- Two or more uppercase words stuck together (camel case) or any phrase surrounded by double
- brackets is a wiki word. A camel-case wiki word can be escaped by putting \ in front of it.
-
-
- Wiki words: HomePage, ThreeWordsTogether, [[C++]], [[Let's play again!]]
- Not wiki words: IBM, School
-