+
+
+ {{#link-to "job" repo job}}#{{job.number}} {{job.state}}{{/link-to}}
+
+
+
+ ran for {{formatDuration job.duration}}
+
+
+
+ {{formatTime job.finishedAt}}
+
+
+
+
+ {{job.commit.branch}}
+
+ -
+
+ {{formatMessage job.commit.subject repoBinding=job.repo}}
- {{#with job}}
-
{{view Travis.AnnotationsView annotationsBinding="view.annotations"}}
diff --git a/assets/scripts/spec/support/expectations.coffee b/assets/scripts/spec/support/expectations.coffee
index b5f168ed..60c3be99 100644
--- a/assets/scripts/spec/support/expectations.coffee
+++ b/assets/scripts/spec/support/expectations.coffee
@@ -9,36 +9,36 @@
equal($("#tab_#{name}").hasClass('display-inline'), !tab.hidden, "#{name} tab should have class display-inline") if name in ['build', 'job']
@displaysSummaryBuildLink = (link, number) ->
- element = $('#summary .number a')
+ element = $('#new-summary .build-status a')
equal( element.attr('href') , link)
- equal( element.text().trim() , "#{number}")
+ equal( element.text().trim() , "##{number} started")
@displaysSummary = (data) ->
- element = $('#summary .left:first-child dt:first-child')
- equal(element.text(), $.camelize(data.type))
-
- element = $('#summary .number a')
+ element = $('#new-summary .build-status a')
equal(element.attr('href'), "/#{data.repo}/#{data.type}s/#{data.id}")
- element = $('#summary .finished_at')
- equal(element.text(), data.finishedAt)
+ element = $('#new-summary .finished')
+ equal(element.text().trim(), data.finishedAt)
- element = $('#summary .duration')
- equal(element.text(), data.duration)
+ element = $('#new-summary .runtime')
+ equal(element.text().trim(), "ran for #{data.duration}")
- element = $('#summary .commit a')
+ element = $('#new-summary .commit-changes a.commit')
equal(element.attr('href'), "https://github.com/#{data.repo}/commit/#{data.commit}")
- element = $('#summary .commit a')
- equal(element.text(), "#{data.commit} (#{data.branch})")
+ element = $('#new-summary .commit-changes a.commit')
+ equal(element.text(), "Commit #{data.commit}")
- element = $('#summary .compare a')
+ element = $('#new-summary .branch')
+ equal(element.text().trim(), data.branch)
+
+ element = $('#new-summary .commit-changes a.compare')
equal(element.attr('href'), "https://github.com/compare/#{data.compare}")
- element = $('#summary .compare a')
- equal(element.text(), data.compare)
+ element = $('#new-summary .commit-changes a.compare')
+ equal(element.text(), "Compare #{data.compare}")
- element = $('#summary .message')
+ element = $('#new-summary .subject')
equal(element.text().trim(), data.message)
@displaysLog = (lines) ->
diff --git a/assets/styles/main/summary.sass b/assets/styles/main/summary.sass
index 783d74a5..ca92f101 100644
--- a/assets/styles/main/summary.sass
+++ b/assets/styles/main/summary.sass
@@ -1,5 +1,124 @@
@import "_mixins/all"
+.green .build-status
+ background-color: #0d8136
+
+.yellow .build-status
+ background-color: #e7d700
+
+.red .build-status
+ background-color: #e10000
+
+.gray .build-status
+ background-color: #a8a8a9
+
+#new-summary
+ @include clearfix
+ @include border-radius(5px)
+ background-color: #fafafa
+ min-height: 30px
+ padding: 5px 15px
+ margin-bottom: 20px
+ padding-bottom: 10px
+
+ .branch
+ font-weight: bold
+ font-size: 16px
+ max-width: 200px
+ display: inline-block
+ margin-top: 10px
+ overflow: hide
+
+ .subject
+ display: inline
+ font-size: 15px
+ overflow: hide
+ margin-top: 10px
+
+ .body
+ min-width: 500px
+ display: block
+ min-height: 30px
+ font-size: 12px
+ font-family: Monaco, 'Liberation Mono', Courier, monospace
+ margin-bottom: 0px
+
+ a
+ text-decoration: underline
+
+ .build-status
+ @include border-radius(4px)
+ float: right
+ min-height: 30px
+ min-width: 90px
+ color: white
+ padding-top: 5px
+ padding-left: 10px
+ padding-right: 10px
+ font-size: 16px
+ text-align: center
+
+ a
+ color: white
+
+ .runtime
+ float: right
+ font-size: 11px
+ display: block
+ width: 100%
+ text-align: right
+ line-height: 13px
+ margin-top: 5px
+
+ .finished
+ float: right
+ font-size: 11px
+ width: 100%
+ text-align: right
+ line-height: 20px
+
+ .right
+ margin-top: 10px
+ float: right
+ width: 150px
+ font-size: 11px
+
+ .footer
+ a
+ text-decoration: underline
+
+ img
+ vertical-align: middle
+
+ .commit-changes
+ text-align: right
+ width: inherit
+ margin-top: 0px
+ float: right
+
+ div
+ display: inline
+ clear: none
+
+ img
+ margin-right: 2px
+ margin-left: 4px
+ height: 15px
+ width: 15px
+
+ .author
+ float: left
+
+ div
+ display: inline
+ clear: none
+
+ img
+ height: 15px
+ width: 15px
+ margin-right: 4px
+ margin-left: 2px
+
#summary
margin: 0 0 0 12px
@include clearfix