From cb01f58f4d6a48370bd288cd077ddc26e48dfb15 Mon Sep 17 00:00:00 2001 From: Lisa P Date: Thu, 17 Sep 2015 16:16:37 +0200 Subject: [PATCH] new icons for the sidebar --- app/components/branch-row.coffee | 5 +++- app/styles/app/layouts/branches.sass | 2 +- app/templates/components/repos-list-item.hbs | 27 +++++++++++++++++--- public/images/line-icons/icon-clock.svg | 9 +++++++ public/images/line-icons/icon-hash.svg | 10 ++++++++ 5 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 public/images/line-icons/icon-clock.svg create mode 100644 public/images/line-icons/icon-hash.svg diff --git a/app/components/branch-row.coffee b/app/components/branch-row.coffee index 46ee17a0..29f30887 100644 --- a/app/components/branch-row.coffee +++ b/app/components/branch-row.coffee @@ -52,7 +52,10 @@ BranchRowComponent = Ember.Component.extend ).property() canTrigger: (-> - @get('auth.signedIn') + if !@get('auth.signedIn') + return false + else + true ).property() triggerBuild: (-> diff --git a/app/styles/app/layouts/branches.sass b/app/styles/app/layouts/branches.sass index 3cea43a5..8080d1b6 100644 --- a/app/styles/app/layouts/branches.sass +++ b/app/styles/app/layouts/branches.sass @@ -237,7 +237,7 @@ .label-align vertical-align: middle - line-height: 1.4 + line-height: 1.5 // @todo refactor to status-icon module .status-icon diff --git a/app/templates/components/repos-list-item.hbs b/app/templates/components/repos-list-item.hbs index 8a408f1a..ba106a21 100644 --- a/app/templates/components/repos-list-item.hbs +++ b/app/templates/components/repos-list-item.hbs @@ -9,7 +9,18 @@ {{#if repo.slug}} {{#if lastBuild.id}}

- + + + + + {{#link-to "build" repo lastBuild.id class="last_build"}}{{lastBuild.number}}{{/link-to}}

@@ -18,7 +29,17 @@ {{/with}}

- + + + + + + + + Duration: {{format-duration repo.lastBuildDuration}} @@ -27,7 +48,7 @@

- + diff --git a/public/images/line-icons/icon-clock.svg b/public/images/line-icons/icon-clock.svg new file mode 100644 index 00000000..132af39a --- /dev/null +++ b/public/images/line-icons/icon-clock.svg @@ -0,0 +1,9 @@ + + + + + + diff --git a/public/images/line-icons/icon-hash.svg b/public/images/line-icons/icon-hash.svg new file mode 100644 index 00000000..6bcd4ad9 --- /dev/null +++ b/public/images/line-icons/icon-hash.svg @@ -0,0 +1,10 @@ + + +