From a26dd329dea991159dbaa117415d960b12c9f507 Mon Sep 17 00:00:00 2001
From: Lisa Passing <mail@lislis.de>
Date: Mon, 11 May 2015 13:48:50 +0200
Subject: [PATCH] fix alignment for profile hooks without admin rights

---
 app/styles/app/layouts/profile.sass          | 11 ++++++++++-
 app/templates/account.hbs                    |  6 ++----
 app/templates/components/hooks-list-item.hbs |  1 -
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/app/styles/app/layouts/profile.sass b/app/styles/app/layouts/profile.sass
index ceae5ea1..5890bec9 100644
--- a/app/styles/app/layouts/profile.sass
+++ b/app/styles/app/layouts/profile.sass
@@ -2,7 +2,6 @@
   font-size: $font-size-sm
   font-weight: 400
 
-
 .profile-main
   header
     h1
@@ -32,6 +31,9 @@
         overflow: hidden;
         &:after
           @include fadeOut(right, -90deg, $white)
+  p
+    font-size: $font-size-m
+    color: #7a7a7a
 
   .cta-btn
     text-align: right
@@ -132,6 +134,7 @@ p.profile-user-last
       width: grid-calc(5, 24)
   .switch
     display: inline-block
+    vertical-align: middle
   .profile-settings
     display: inline-block
     margin-left: 1rem;
@@ -155,6 +158,7 @@ p.profile-user-last
   padding: .25em .5em .3em
   white-space: nowrap
   overflow: hidden
+  vertical-align: middle
   span:not(.sync-spinner)
     display: none
     margin-left: 2rem
@@ -219,3 +223,8 @@ p.profile-user-last
     top: 1em
     right: 1em
     @extend .icon--dismiss-red
+
+
+#unadministerable-hooks
+  p
+    margin-top: 2em
\ No newline at end of file
diff --git a/app/templates/account.hbs b/app/templates/account.hbs
index 74c1a589..45eb1c2e 100644
--- a/app/templates/account.hbs
+++ b/app/templates/account.hbs
@@ -94,10 +94,8 @@
       <ul class="profile-hooklist">
         {{#each hook in hooksWithoutAdmin}}
           <li {{bind-attr class="hook.active:active :row"}}>
-            <div class="columns">
-              <button class="switch disabled"></button>
-            </div>
-            <a {{bind-attr href="hook.urlGithub"}} rel="nofollow" class="profile-repo columns">
+            <button class="switch disabled"></button>
+            <a {{bind-attr href="hook.urlGithub"}} rel="nofollow" class="profile-repo">
               {{hook.slug}}
               <span>{{hook.description}}</span>
             </a>
diff --git a/app/templates/components/hooks-list-item.hbs b/app/templates/components/hooks-list-item.hbs
index 0b4af28a..46d6bd4c 100644
--- a/app/templates/components/hooks-list-item.hbs
+++ b/app/templates/components/hooks-list-item.hbs
@@ -1,6 +1,5 @@
 <div class="profile-hooks columns">
   {{hook-switch hook=hook onToggleError="handleToggleError" onToggle="resetErrors"}}
-  {{!-- <button class="switch is-on"></button> --}}
   {{#if hook.isSaving}}
     <span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
   {{else}}