summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-06 20:35:22 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-06 20:35:22 +0000
commitfee3a3ae5067638792d7d6549475d9cbbbd99a9d (patch)
treef415594cd52fc9f439b923064279206fc1473d57
parent3a0a340bbde6ecfd9c5367c89b93c9b19fa1fd0e (diff)
downloadredmine-fee3a3ae5067638792d7d6549475d9cbbbd99a9d.tar.gz
redmine-fee3a3ae5067638792d7d6549475d9cbbbd99a9d.zip
Use em.info tags.
git-svn-id: http://svn.redmine.org/redmine/trunk@13567 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/helpers/repositories_helper.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb
index 8a2b302f2..a5fd132f5 100644
--- a/app/helpers/repositories_helper.rb
+++ b/app/helpers/repositories_helper.rb
@@ -152,8 +152,7 @@ module RepositoriesHelper
def subversion_field_tags(form, repository)
content_tag('p', form.text_field(:url, :size => 60, :required => true,
:disabled => !repository.safe_attribute?('url')) +
- '<br />'.html_safe +
- '(file:///, http://, https://, svn://, svn+[tunnelscheme]://)') +
+ content_tag('em', '(file:///, http://, https://, svn://, svn+[tunnelscheme]://)', :class => 'info')) +
content_tag('p', form.text_field(:login, :size => 30)) +
content_tag('p', form.password_field(
:password, :size => 30, :name => 'ignore',
@@ -178,12 +177,12 @@ module RepositoriesHelper
:size => 60, :required => true,
:disabled => !repository.safe_attribute?('url')
) +
- '<br />'.html_safe + l(:text_mercurial_repository_note)) +
+ content_tag('em', l(:text_mercurial_repository_note), :class => 'info')) +
content_tag('p', form.select(
:path_encoding, [nil] + Setting::ENCODINGS,
:label => l(:field_scm_path_encoding)
) +
- '<br />'.html_safe + l(:text_scm_path_encoding_note))
+ content_tag('em', l(:text_scm_path_encoding_note), :class => 'info'))
end
def git_field_tags(form, repository)
@@ -192,13 +191,12 @@ module RepositoriesHelper
:size => 60, :required => true,
:disabled => !repository.safe_attribute?('url')
) +
- '<br />'.html_safe +
- l(:text_git_repository_note)) +
+ content_tag('em', l(:text_git_repository_note), :class => 'info')) +
content_tag('p', form.select(
:path_encoding, [nil] + Setting::ENCODINGS,
:label => l(:field_scm_path_encoding)
) +
- '<br />'.html_safe + l(:text_scm_path_encoding_note)) +
+ content_tag('em', l(:text_scm_path_encoding_note), :class => 'info')) +
content_tag('p', form.check_box(
:extra_report_last_commit,
:label => l(:label_git_report_last_commit)
@@ -223,7 +221,7 @@ module RepositoriesHelper
:path_encoding, [nil] + Setting::ENCODINGS,
:label => l(:field_scm_path_encoding)
) +
- '<br />'.html_safe + l(:text_scm_path_encoding_note))
+ content_tag('em', l(:text_scm_path_encoding_note), :class => 'info'))
end
def bazaar_field_tags(form, repository)
@@ -245,7 +243,7 @@ module RepositoriesHelper
:path_encoding, [nil] + Setting::ENCODINGS,
:label => l(:field_scm_path_encoding)
) +
- '<br />'.html_safe + l(:text_scm_path_encoding_note))
+ content_tag('em', l(:text_scm_path_encoding_note), :class => 'info'))
end
def index_commits(commits, heads)