37d20fa9cc
This will allow cleaner url in templates and javascripts.
21 lines
711 B
Plaintext
21 lines
711 B
Plaintext
<div id="wiki-wrapper" class="edit">
|
|
<div id="head">
|
|
<h1>Editing <strong>{{title}}</strong></h1>
|
|
<ul class="actions">
|
|
<li class="minibutton"><a href="{{base_url}}/{{escaped_url_path}}"
|
|
class="action-view-page">View Page</a></li>
|
|
<li class="minibutton"><a href="{{base_url}}/history/{{escaped_url_path}}"
|
|
class="action-page-history">Page History</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="wiki-content">{{>editor}}</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
window.onbeforeunload = function(){ return "Leaving will discard all edits!" };
|
|
$("#gollum-editor-submit").click( function() { window.onbeforeunload = null; } );
|
|
|
|
jQuery(document).ready(function() {
|
|
$.GollumEditor();
|
|
});
|
|
</script>
|