##// END OF EJS Templates
Fixed: wrong url for wiki syntax pop-up when Redmine urls are prefixed....
Jean-Philippe Lang -
r1044:64eaf328eae1
parent child
Show More
@@ -1,31 +1,31
1 <h2><%= @page.pretty_title %></h2>
1 <h2><%= @page.pretty_title %></h2>
2
2
3 <% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:id => 'wiki_form'} do |f| %>
3 <% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:id => 'wiki_form'} do |f| %>
4 <%= f.hidden_field :version %>
4 <%= f.hidden_field :version %>
5 <%= error_messages_for 'content' %>
5 <%= error_messages_for 'content' %>
6 <div class="contextual">
6 <div class="contextual">
7 <%= l(:setting_text_formatting) %>:
7 <%= l(:setting_text_formatting) %>:
8 <%= link_to l(:label_help), '/help/wiki_syntax.html',
8 <%= link_to l(:label_help), compute_public_path('wiki_syntax', 'help', 'html'),
9 :onclick => "window.open('#{ url_for '/help/wiki_syntax.html' }', '', 'resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes'); return false;" %>
9 :onclick => "window.open('#{ compute_public_path('wiki_syntax', 'help', 'html') }', '', 'resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes'); return false;" %>
10 </div>
10 </div>
11 <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
11 <p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
12 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
12 <p><label><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
13 <p><%= submit_tag l(:button_save) %>
13 <p><%= submit_tag l(:button_save) %>
14 <%= link_to_remote l(:label_preview),
14 <%= link_to_remote l(:label_preview),
15 { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title },
15 { :url => { :controller => 'wiki', :action => 'preview', :id => @project, :page => @page.title },
16 :method => 'post',
16 :method => 'post',
17 :update => 'preview',
17 :update => 'preview',
18 :with => "Form.serialize('wiki_form')",
18 :with => "Form.serialize('wiki_form')",
19 :complete => "location.href='#preview-top'"
19 :complete => "location.href='#preview-top'"
20 }, :accesskey => accesskey(:preview) %></p>
20 }, :accesskey => accesskey(:preview) %></p>
21 <%= wikitoolbar_for 'content_text' %>
21 <%= wikitoolbar_for 'content_text' %>
22 <% end %>
22 <% end %>
23
23
24 <a name="preview-top"></a>
24 <a name="preview-top"></a>
25 <div id="preview" class="wiki"></div>
25 <div id="preview" class="wiki"></div>
26
26
27 <% content_for :header_tags do %>
27 <% content_for :header_tags do %>
28 <%= stylesheet_link_tag 'scm' %>
28 <%= stylesheet_link_tag 'scm' %>
29 <% end %>
29 <% end %>
30
30
31 <% html_title @page.pretty_title %>
31 <% html_title @page.pretty_title %>
General Comments 0
You need to be logged in to leave comments. Login now