]> source.dussan.org Git - redmine.git/commitdiff
Prettier wiki syntax help link.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 28 Mar 2011 20:12:15 +0000 (20:12 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 28 Mar 2011 20:12:15 +0000 (20:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5241 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/wiki_formatting/textile/helper.rb
public/stylesheets/jstoolbar.css

index 639e159275f81c90b5fce0f2adc6e946a12c0af9..dbf0cb71312371fa6bb9871b3c322de31be181a5 100644 (file)
@@ -1,5 +1,5 @@
 # Redmine - project management software
-# Copyright (C) 2006-2008  Jean-Philippe Lang
+# Copyright (C) 2006-2011  Jean-Philippe Lang
 #
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
@@ -23,10 +23,8 @@ module Redmine
           heads_for_wiki_formatter
           # Is there a simple way to link to a public resource?
           url = "#{Redmine::Utils.relative_url_root}/help/wiki_syntax.html"
-          
-          help_link = l(:setting_text_formatting) + ': ' +
-            link_to(l(:label_help), url,
-                    :onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;")
+          help_link = link_to(l(:setting_text_formatting), url,
+            :onclick => "window.open(\"#{ url }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;")
       
           javascript_tag("var wikiToolbar = new jsToolBar($('#{field_id}')); wikiToolbar.setHelpLink('#{help_link}'); wikiToolbar.draw();")
         end
index 9514e3eb0843dc129aae22445357ec1f12dab34e..91eae7b5bf84014eff15f5e8341c18353d4a1b16 100644 (file)
@@ -44,7 +44,8 @@
        margin-right: 4px;
 }
 
-.jstElements .help { float: right; margin-right: 1em; padding-top: 8px; font-size: 0.9em; }
+.jstElements .help { float: right; margin-right: 0.5em; padding-top: 8px; font-size: 0.9em; }
+.jstElements .help a {padding: 2px 0 2px 20px; background: url(../images/help.png) no-repeat 0 50%;}
 
 /* Buttons
 -------------------------------------------------------- */