summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-10 18:03:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-10 18:03:10 +0000
commitc0491d298b7128643d707dd379a389cdb270caef (patch)
tree8fe80985c11eda810ce6b1481d5a7176d7001ce3
parent71f35892388f7f6652ce85df1668ca2545352aa0 (diff)
downloadredmine-c0491d298b7128643d707dd379a389cdb270caef.tar.gz
redmine-c0491d298b7128643d707dd379a389cdb270caef.zip
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
-rw-r--r--app/views/repositories/_form.html.erb2
-rw-r--r--public/stylesheets/application.css3
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 @@
<p>
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
<% if @repository && ! @repository.class.scm_available %>
- <em class="info"><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em>
+ <em class="info error"><%= l(:text_scm_command_not_available) %></em>
<% end %>
</p>
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; }