Permalink
Browse files

more fixes

  • Loading branch information...
1 parent 974ca31 commit baed0da741a3f72fc49ec14e9dc6db5db637af6a Maciej Wiśniowski committed Mar 26, 2012
@@ -3,7 +3,7 @@
<h1>History for <strong>{{path}}</strong></h1>
<ul class="actions">
- <li class="minibutton"><a href="/history/{{escaped_name}}"
+ <li class="minibutton"><a href="/history/{{page_url}}"
class="action-page-history">Back to Page History</a></li>
</ul>
{{>searchbar}}
@@ -18,7 +18,7 @@
{{#show_revert}}
<ul class="actions">
<li class="minibutton">
- <form name="gollum-revert" action="{{base_path}}/revert/{{escaped_name}}/{{before}}/{{after}}" method="post" id="gollum-revert-form">
+ <form name="gollum-revert" action="{{base_path}}/revert/{{page_url}}/{{before}}/{{after}}" method="post" id="gollum-revert-form">
<a href="#" class="gollum-revert-button">Revert Changes</a>
</form>
</li>
@@ -2,9 +2,9 @@
<div id="head">
<h1>Editing <strong>{{title}}</strong></h1>
<ul class="actions">
- <li class="minibutton"><a href="{{base_path}}/{{escaped_name}}"
+ <li class="minibutton"><a href="{{base_path}}/{{page_url}}"
class="action-view-page">View Page</a></li>
- <li class="minibutton"><a href="{{base_path}}/history/{{escaped_name}}"
+ <li class="minibutton"><a href="{{base_path}}/history/{{page_url}}"
class="action-page-history">Page History</a></li>
</ul>
</div>
@@ -3,7 +3,7 @@
<form name="gollum-editor" action="{{base_path}}/create" method="post">
{{/is_create_page}}
{{#is_edit_page}}
-<form name="gollum-editor" action="{{base_path}}/edit/{{escaped_name}}" method="post">
+<form name="gollum-editor" action="{{base_path}}/edit/{{page_url}}" method="post">
{{/is_edit_page}}
<fieldset id="gollum-editor-fields">
{{#is_create_page}}
@@ -2,9 +2,9 @@
<div id="head">
<h1>History for <strong>{{title}}</strong></h1>
<ul class="actions">
- <li class="minibutton"><a href="{{base_path}}/{{escaped_name}}"
+ <li class="minibutton"><a href="{{base_path}}/{{page_url}}"
class="action-view-page">View Page</a></li>
- <li class="minibutton"><a href="{{base_path}}/edit/{{escaped_name}}"
+ <li class="minibutton"><a href="{{base_path}}/edit/{{page_url}}"
class="action-edit-page">Edit Page</a></li>
</ul>
{{>searchbar}}
@@ -17,7 +17,7 @@
</ul>
<form name="compare-versions" id="version-form" method="post"
- action="{{base_path}}/compare/{{escaped_name}}">
+ action="{{base_path}}/compare/{{page_url}}">
<fieldset>
<table>
<tbody>
@@ -37,7 +37,7 @@
<td class="commit-name">
<span class="time-elapsed">{{date}}:</span>&nbsp;
{{message}}
- [<a href="{{base_path}}/{{escaped_name}}/{{id}}" title="View commit">{{id7}}</a>]
+ [<a href="{{base_path}}/{{page_url}}/{{id}}" title="View commit">{{id7}}</a>]
</td>
</tr>
{{/versions}}
@@ -23,6 +23,10 @@ def title
def base_path
Precious::App.wiki_options[:base_path]
end
+
+ def page_url
+ @page.url
+ end
end
end
end
@@ -51,11 +51,7 @@ def sidebar_content
def sidebar_format
has_sidebar && @sidebar.format.to_s
- end
-
- def page_url
- @page.url
- end
+ end
end
end
end

0 comments on commit baed0da

Please sign in to comment.