diff --git a/app/views/wiki/edit.rhtml b/app/views/wiki/edit.rhtml index 9de0077..9caf965 100644 --- a/app/views/wiki/edit.rhtml +++ b/app/views/wiki/edit.rhtml @@ -6,7 +6,12 @@ <% form_for :content, @content, :url => {:action => 'edit', :page => @page.title}, :html => {:id => 'wiki_form'} do |f| %> <%= error_messages_for 'content' %> -

<%= f.text_area :text, :cols => 100, :rows => 25, :style => "width:99%;" %>

+
+<%= 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;" %> +
+

<%= f.text_area :text, :cols => 100, :rows => 25, :style => "width:99.5%;" %>


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

<%= submit_tag l(:button_save) %> <%= link_to_remote l(:label_preview), diff --git a/config/help.yml b/config/help.yml index eb1c38c..e67019d 100644 --- a/config/help.yml +++ b/config/help.yml @@ -73,4 +73,6 @@ pages: account: index: ch03.html lost_password: ch03s03.html - register: ch03s04.html \ No newline at end of file + register: ch03s04.html + wiki: + syntax: wiki_syntax.html \ No newline at end of file diff --git a/public/images/jstoolbar/bt_heading.png b/public/images/jstoolbar/bt_heading.png new file mode 100644 index 0000000000000000000000000000000000000000..a143f23a7aa4afb87cf3f96b0533b2e11e5aea2b GIT binary patch literal 415 zc%17D@N?(olHy`uVBq!ia0vp^A|TAc1SFYWcSQjyy%N`m66d1S#FEVXJcW?V+*F2? z%v?PMLqmn!#G+yaBLf3-1w$h%V>2rgGX-q}Lj!}t>8refI@wD+eO=kFGjnqrD?XQe zmNn{1`zj(ShhE&`-8e+)RVjy7C zZ_<>Yn34FB|4(~w!pm+Q-I}%umoE9$H1l6L<>ZlE$joi&bM3K6-|eKEb5rJ=<$IyA zRIdDS0YR-q^Cl=KR6)o8DZ$)#LeVpZcEH zR$GF+vKntE&wjEY&#gh=H$Mkc-My2ANS8c$bC9M+pTD)Q#H{444$rjF6*2U Fng9-Op=SU9 literal 0 Hc$@ + + +Wiki formatting + + + + + + + + + + + + + + + + + + + + + +

Font Styles

*Strong*Strong
_Italic_Italic
+Underline+Underline
-Deleted-Deleted
??Quote??Quote
@Code@Code

Lists

* Item 1
* Item 2
  • Item 1
  • Item 2
# Item 1
# Item 2
  1. Item 1
  2. Item 2

Titles

h2. Title 2

Title 2

Links

[[Wiki page]]Wiki page
Issue #12Issue #12
Revision r43Revision r43
+ + + \ No newline at end of file diff --git a/public/manual/fr/wiki_syntax.html b/public/manual/fr/wiki_syntax.html new file mode 100644 index 0000000..05f80a5 --- /dev/null +++ b/public/manual/fr/wiki_syntax.html @@ -0,0 +1,32 @@ + + + +Formatage Wiki + + + + + + + + + + + + + + + + + + + + + +

Mise en forme

*Gras*Gras
_Italique_Italique
+Souligné+Souligné
-Rayé-Rayé
??Citation??Citation
@Code@Code

Listes

* Item 1
* Item 2
  • Item 1
  • Item 2
# Item 1
# Item 2
  1. Item 1
  2. Item 2

Titres

h2. Titre 2

Titre 2

Liens

[[Page wiki]]Page wiki
Demande #12Demande #12
Révision r43Révision r43
+ + + \ No newline at end of file diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 138cf97..f00bb9c 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -599,4 +599,8 @@ div.wiki table, div.wiki td { padding: 4px; } +div.wiki code { + font-size: 1.2em; +} + #preview .preview { background: #fafbfc url(../images/draft.png); } diff --git a/public/stylesheets/jstoolbar.css b/public/stylesheets/jstoolbar.css index 8094b47..cf51c48 100644 --- a/public/stylesheets/jstoolbar.css +++ b/public/stylesheets/jstoolbar.css @@ -67,6 +67,9 @@ .jstb_br { background-image: url(../images/jstoolbar/bt_br.png); } +.jstb_heading { + background-image: url(../images/jstoolbar/bt_heading.png); +} .jstb_ul { background-image: url(../images/jstoolbar/bt_ul.png); }