From b536f4c65794d8c2c5e5ae0c0a63166106bc3303 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 4 Dec 2007 18:14:09 +0000 Subject: [PATCH] Restored wiki syntax quick ref pop-up (accessible from wiki/edit). git-svn-id: http://redmine.rubyforge.org/svn/trunk@953 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/wiki/edit.rhtml | 4 +-- public/help/wiki_syntax.html | 57 ++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 2 deletions(-) create mode 100644 public/help/wiki_syntax.html diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index 96295004a..94581104f 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -5,8 +5,8 @@ <%= error_messages_for 'content' %>
<%= l(:setting_text_formatting) %>: -<%= link_to l(:label_help), {:controller => 'help', :ctrl => 'wiki', :page => 'syntax' }, - :onclick => "window.open('#{ url_for :controller => 'help', :ctrl => 'wiki', :page => 'syntax' }', '', 'resizable=yes, location=no, width=300, height=500, menubar=no, status=no, scrollbars=yes'); return false;" %> +<%= link_to l(:label_help), '/help/wiki_syntax.html', + :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;" %>

<%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %>


<%= f.text_field :comments, :size => 120 %>

diff --git a/public/help/wiki_syntax.html b/public/help/wiki_syntax.html new file mode 100644 index 000000000..f02eb62ab --- /dev/null +++ b/public/help/wiki_syntax.html @@ -0,0 +1,57 @@ + + + +Wiki formatting + + + + + +

Wiki Syntax Quick Reference

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Font Styles
*Strong*Strong
_Italic_Italic
+Underline+Underline
-Deleted-Deleted
??Quote??Quote
@Code@Code
<pre>
 lines
 of code
</pre>
+
+ lines
+ of code
+
+
Lists
* Item 1
* Item 2
  • Item 1
  • Item 2
# Item 1
# Item 2
  1. Item 1
  2. Item 2
Headings
h1. Title 1

Title 1

h2. Title 2

Title 2

h3. Title 3

Title 3

Links
http://foo.barhttp://foo.bar
[[Wiki page]]Wiki page
Issue #12Issue #12
Revision r43Revision r43
Inline images
!image_url!
!attached_image!
+ + + \ No newline at end of file