From 79968ca76bedf9cf764061abce289ef374dbab10 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 28 Oct 2014 14:34:42 +0100 Subject: [PATCH] Compatibility fixes for new build header --- assets/scripts/app/templates/builds/show.hbs | 22 ++--- assets/scripts/app/templates/jobs/show.hbs | 38 +++++---- assets/scripts/app/templates/repos/show.hbs | 3 +- assets/styles/main/repository.sass | 3 +- assets/styles/main/summary.sass | 85 ++++++++++---------- 5 files changed, 75 insertions(+), 76 deletions(-) diff --git a/assets/scripts/app/templates/builds/show.hbs b/assets/scripts/app/templates/builds/show.hbs index fe83e0e9..d9ba5756 100644 --- a/assets/scripts/app/templates/builds/show.hbs +++ b/assets/scripts/app/templates/builds/show.hbs @@ -8,31 +8,27 @@
- - {{#if build.isFinished}}ran{{else}}running{{/if}} for {{formatDuration build.duration}} + {{#if build.isFinished}}ran{{else}}running{{/if}} for {{formatDuration build.duration}}
- {{formatTime build.finishedAt}}
-
- - {{formatTime build.finishedAt}} -
+ {{#if build.tagName}} +
+ {{build.tagName}} +
+ {{/if}}
-
{{#if build.pullRequest}} - {{else}} {{#if build.commit.compareUrl}} - {{/if}} {{/if}} @@ -47,9 +43,7 @@ - {{formatMessage build.commit.subject repoBinding=build.repo}}
-
-{{formatMessage build.commit.body repoBinding=build.repo pre=true}}
-    
+
{{formatMessage build.commit.body repoBinding=build.repo pre=true}}
- +
{{job.commit.branch}}
@@ -23,9 +42,7 @@ - {{formatMessage job.commit.subject repoBinding=job.repo}} -
-{{formatMessage job.commit.body repoBinding=job.repo pre=true}}
-      
+
{{formatMessage job.commit.body repoBinding=job.repo pre=true}}
diff --git a/assets/scripts/app/templates/repos/show.hbs b/assets/scripts/app/templates/repos/show.hbs index cc9b0b2a..ec99feb8 100644 --- a/assets/scripts/app/templates/repos/show.hbs +++ b/assets/scripts/app/templates/repos/show.hbs @@ -7,13 +7,14 @@

{{#link-to "repo" this}}{{slug}}{{/link-to}}

- {{view Travis.RepoShowToolsView}} + + {{view Travis.RepoShowToolsView}}

{{description}}

diff --git a/assets/styles/main/repository.sass b/assets/styles/main/repository.sass index dff0150c..88f1361a 100644 --- a/assets/styles/main/repository.sass +++ b/assets/styles/main/repository.sass @@ -14,7 +14,8 @@ width: 90px height: 25px display: inline-block - + margin-left: 15px + a#status-image-popup display: inline-block opacity: 1.0 diff --git a/assets/styles/main/summary.sass b/assets/styles/main/summary.sass index c71566dc..fc3ad1a9 100644 --- a/assets/styles/main/summary.sass +++ b/assets/styles/main/summary.sass @@ -24,7 +24,6 @@ @include clearfix @include border-radius(4px) background-color: #fafafa - min-height: 30px padding: 2px 11px margin-bottom: 20px padding-bottom: 10px @@ -51,7 +50,6 @@ .body min-width: 500px display: block - min-height: 30px font-size: 12px font-family: Monaco, 'Liberation Mono', Courier, monospace margin-bottom: 0px @@ -60,7 +58,7 @@ a text-decoration: underline - + .build-status @include border-radius(4px) color: white @@ -74,58 +72,56 @@ padding-left: 21px .runtime + background-image: inline-image('icons/run-time.svg') + + .finished + background-image: inline-image('icons/finished.svg') + + .tags + background-image: inline-image('icons/tags.svg') + + .commit-changes + background-image: inline-image('icons/github.svg') + + .runtime + margin-top: 5px + + .runtime, .finished, .tags, .commit-changes + background-position: left center + background-repeat: no-repeat + background-size: 14px 14px + padding-left: 20px font-size: 13px display: block width: 100% text-align: left - line-height: 25px - margin: 5px 0 0 12px - - img - height: 13px - width: 13px - opacity: 0.5 - padding-right: 4px - - .finished - font-size: 13px - width: 100% - text-align: left - line-height: 25px + line-height: 23px margin-left: 12px - img - height: 13px - width: 13px - opacity: 0.5 - padding-right: 4px - - .tags - font-size: 13px - width: 100% - text-align: left - line-height: 25px - margin-left: 12px - - img - height: 13px - width: 13px - opacity: 0.5 - padding-right: 4px - .commit-changes text-align: left text-decoration: underline width: inherit + + div + display: inline + clear: none + + a + text-overflow: ellipsis + white-space: nowrap + overflow: hidden + + .commit-changes + background: inline-image('icons/github.svg') left center no-repeat + background-size: 13px 13px + text-align: left + text-decoration: underline + width: inherit font-size: 13px margin-left: 12px - - img - margin-right: 2px - height: 13px - width: 13px - opacity: 0.5 - padding-right: 4px + padding-left: 20px + line-height: 20px div display: inline @@ -159,6 +155,7 @@ .author float: left + margin-top: 10px div display: inline @@ -202,7 +199,7 @@ .message white-space: normal min-width: 0 - + pre font-size: 12px display: inline-block