Skip to content

Commit

Permalink
Style CI emails
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <[email protected]>
  • Loading branch information
dzaporozhets committed Jan 6, 2014
1 parent 8dd0da4 commit f80ac77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
11 changes: 3 additions & 8 deletions app/views/builds/show.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%h3
%h4
Project: #{@project.name}
.right
%a.btn.btn-default.btn-sml{href: edit_project_path(@project)}
= link_to edit_project_path(@project), class: "btn btn-default btn-small" do
%i.icon-edit.icon-white
Edit Project

Expand Down Expand Up @@ -33,7 +33,7 @@
.clearfix
- if @build.active?
.autoscroll-container.pull-right
%button.btn.btn-mini#autoscroll-button{:type => "button", :data => {:state => 'disabled'}} enable autoscroll
%button.btn.btn-default.btn-sm#autoscroll-button{:type => "button", :data => {:state => 'disabled'}} enable autoscroll
.clearfix
%pre.trace#build-trace
= preserve do
Expand Down Expand Up @@ -98,11 +98,6 @@


= paginate @builds
%br
.right
%a.btn.btn-small{href: edit_project_path(@project)}
%i.icon-edit.icon-white
Edit Project


- if @build.active?
Expand Down
15 changes: 9 additions & 6 deletions app/views/layouts/notify.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
%head
%meta{content: "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
%title
GitLab
GitLab CI
%body
%h1{style: "background: #EEE; border-bottom: 1px solid #DDD; color: #474D57; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"}
GitLab-CI
- if @project
\|
= link_to @project.name, project_url(@project), style: 'color: #29B; text-decoration: none'
%h1{style: "background: #228899; color: #FFF; font: normal 20px Helvetica, Arial, sans-serif; margin: 0; padding: 5px 10px; line-height: 32px; font-size: 16px;"}
GitLab CI
%table{align: "left", border: "0", cellpadding: "0", cellspacing: "0", style: "padding: 10px 0;", width: "100%"}
- if @project
%tr
%td{align: "left", style: "margin: 0; padding: 10px;"}
= link_to @project.name, project_url(@project), style: 'color: #29B; text-decoration: none'
%br

%tr
%td{align: "left", style: "margin: 0; padding: 10px;"}
= yield
Expand Down

0 comments on commit f80ac77

Please sign in to comment.