Skip to content

Commit

Permalink
Changed unobtrusive pre and codes classes names, fixed build and proj…
Browse files Browse the repository at this point in the history
…ect headers
  • Loading branch information
antekpiechnik committed Feb 6, 2012
1 parent ac0cefe commit 89443df
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 13 deletions.
6 changes: 3 additions & 3 deletions app/views/builds/_build_details.html.haml
Expand Up @@ -9,7 +9,7 @@
%td
%span.label.label-info Commit
%td
%code.page-code= @build.commit_data? ? @build.commit : "Commit hash not yet available"
%code.dark= @build.commit_data? ? @build.commit : "Commit hash not yet available"
%tr
%td
%span.label.label-info Author
Expand All @@ -22,7 +22,7 @@
%td
%span.label.label-info Message
%td
%code.page-code= @build.commit_data? ? @build.commit_message : "Message not yet available"
%pre.unobstrusive= @build.commit_data? ? @build.commit_message : "Message not yet available"
%tr
%td
%span.label.label-info Scheduled
Expand All @@ -47,7 +47,7 @@
%td
%span.label.label-info Directory
%td
%code.page-code= truncate(strip_rails_root(@build.build_dir), :length => 40, :omission => '..')
%code.dark= truncate(strip_rails_root(@build.build_dir), :length => 40, :omission => '..')



Expand Down
4 changes: 2 additions & 2 deletions app/views/builds/show.html.haml
Expand Up @@ -4,9 +4,9 @@
= "##{@build.build_no}"
%small
via
%code= @build.project.vcs_source
%code.dark= @build.project.vcs_source
on
%code= @build.project.vcs_branch
%code.dark= @build.project.vcs_branch
- unless BigTuna.read_only?
= link_to("Build now", build_project_path(@build.project), :class => "btn crm btn-large btn-success pull-right")

Expand Down
4 changes: 2 additions & 2 deletions app/views/projects/_builds.html.haml
Expand Up @@ -14,7 +14,7 @@
%td Commit
%td
- if build.commit_data?
%code{:class => "page-code", :title => build.commit}= truncate(build.commit, :length => 10, :omission => '..')
%code{:class => "dark", :title => build.commit}= truncate(build.commit, :length => 10, :omission => '..')
by
= (mail_to(build.email, build.author)).html_safe
= " on #{l(build.committed_at, :format => :long)}"
Expand All @@ -23,6 +23,6 @@
%tr
%td Message
%td
%code.page-code= build.commit_data? ? build.commit_message : "Message not yet available"
%pre.unobstrusive= build.commit_data? ? build.commit_message : "Message not yet available"
.span12
%hr
4 changes: 2 additions & 2 deletions app/views/projects/_projects.html.haml
Expand Up @@ -30,7 +30,7 @@
%td Commit
%td
- if build.commit_data?
%code{:class => "page-code", :title => build.commit}= truncate(build.commit, :length => 10, :omission => '..')
%code{:class => "dark", :title => build.commit}= truncate(build.commit, :length => 10, :omission => '..')
by
= (mail_to(build.email, build.author)).html_safe
= " on #{l(build.committed_at, :format => :long)}"
Expand All @@ -39,7 +39,7 @@
%tr
%td Message
%td
%code.page-code= build.commit_data? ? build.commit_message : "Message not yet available"
%pre.unobstrusive= build.commit_data? ? build.commit_message : "Message not yet available"
%tr
%td Stability
%td= format_stability(project.stability)
4 changes: 2 additions & 2 deletions app/views/projects/show.html.haml
Expand Up @@ -3,9 +3,9 @@
= @project.name
%small
via
%code= @project.vcs_source
%code.dark= @project.vcs_source
on
%code= @project.vcs_branch
%code.dark= @project.vcs_branch
- unless BigTuna.read_only?
= link_to("Build now", build_project_path(@project), :class => "btn crm btn-large btn-success pull-right")
.btn-toolbar
Expand Down
11 changes: 9 additions & 2 deletions public/stylesheets/master_new.css
Expand Up @@ -2,9 +2,16 @@
display: none;
}

code.page-code {
border: 0;
code.dark {
color: #555;
border: 1px solid #CCC;
border: 1px solid rgba(0, 0, 0, 0.15);
}

pre.unobstrusive {
padding: 3px 4px;
color: #555;
margin: 0;
}

pre.code {
Expand Down

0 comments on commit 89443df

Please sign in to comment.