From c0491d298b7128643d707dd379a389cdb270caef Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 10 Feb 2012 18:03:10 +0000 Subject: [PATCH] Makes error class more specific to prevent clashes with syntax highlight (#10193). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8835 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/_form.html.erb | 2 +- public/stylesheets/application.css | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/repositories/_form.html.erb b/app/views/repositories/_form.html.erb index b8dfbd653..91a19ca43 100644 --- a/app/views/repositories/_form.html.erb +++ b/app/views/repositories/_form.html.erb @@ -4,7 +4,7 @@

<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %> <% if @repository && ! @repository.class.scm_available %> - <%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %> + <%= l(:text_scm_command_not_available) %> <% end %>

diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 6ff9d3682..bc04d7ee7 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -501,6 +501,7 @@ p.other-formats { text-align: right; font-size:0.9em; color: #666; } a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; } em.info {font-style:normal;font-size:90%;color:#888;display:block;} +em.info.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;} /* Project members tab */ div#tab-content-members .splitcontentleft, div#tab-content-memberships .splitcontentleft, div#tab-content-users .splitcontentleft { width: 64% } @@ -558,8 +559,6 @@ div.flash.warning, .conflict { color: #A6750C; } -span.error {padding-left:20px; background:url(../images/exclamation.png) no-repeat 0 50%;} - #errorExplanation ul { font-size: 0.9em;} #errorExplanation h2, #errorExplanation p { display: none; } -- 2.39.5