From c30546f4aa073f44e97b49f47c57a9a89062c3c6 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 29 Sep 2017 19:56:03 +0100 Subject: [PATCH] Adds login page, sidebar, header and form --- .../auth_buttons/signin_with_google.png | Bin 0 -> 3983 bytes app/views/projects/clusters/_form.html.haml | 39 ++++++++++++++++-- app/views/projects/clusters/_header.html.haml | 15 +++++++ .../projects/clusters/_sidebar.html.haml | 8 ++++ app/views/projects/clusters/login.html.haml | 16 ++++--- app/views/projects/clusters/new.html.haml | 7 ++-- 6 files changed, 72 insertions(+), 13 deletions(-) create mode 100644 app/assets/images/auth_buttons/signin_with_google.png create mode 100644 app/views/projects/clusters/_header.html.haml create mode 100644 app/views/projects/clusters/_sidebar.html.haml diff --git a/app/assets/images/auth_buttons/signin_with_google.png b/app/assets/images/auth_buttons/signin_with_google.png new file mode 100644 index 0000000000000000000000000000000000000000..b1327b4f7b47c04368da6c4b066645453398eca5 GIT binary patch literal 3983 zcmV;A4{-2_P)Px^Nl8RORCodHT?=$n)w%v==FB6L2}BY?f{qY1j6Ca>0o#JeY@9{|CU8! z5kS)ESnSSmKl}bNXWoH1cMvn7bbiA8FvsLF=tK5a$UQ9th3qQ1|SLMug9 zt{JPQNhlz8L4Ozr-jdPKl|pZ*va%&?{)!#B9|m#HGXb;=K|2E?fA_jI3B)&#Er9F( z)v(X1N$9G-aTmj$myz?WM_|qwl~6WRiRDYOu=1Kj$F_Km4S(3|#kv*+H%_;qasp63 zFNBT1>IW&(=y1`;te9I$XiH6~BKcF1GL34|P%+`=SrW>q`N>?8zsrPGOKhmlR|z`SJ#d|0`CXcx1-mkuVR922tinS*$r zG5M9VufbYakD#R(2$^Bd%SY}HpMhn3?|9x`GY8`Os3fP<79qZZrUL=|?ig_6Y#VBd zOjvNc4ZmOO#|~QjiM0HC|1!A57h^pAb^tFOP>|hDPcx*0CdvO8z`W54wnwaTWf>QP zO~J>k8u??*r_0%~R;-B-zw_N7o_{lhvTLnae3bKRxH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*^zn4O_#)mh?0J@7_%Ocpk@zkP!yF#tJ^!2sKOZEZ zFXG^aWz!9>_)vF1Mkj5s_`=Y~Z=K&@XtQ!x>Lc8t7{q|Wp5zWSojHyz$9LfPx%bfO zejol&0C|pFROOXpZt)G6!^_N2C=M|bjm=We+U@l?;l=<_6S12ApZ!OOk*hhL%<+^|L`)jM-T!A`A5)X8bj$H z0tWf}hnJx}f)FssKY}LH7)t*TFv#COybSFTgn*v>N=Wv7ApY~W;U>eePs0r(qdyl$ zK=7MdvA6y7FSdm{o3=i-deg177Hd}Q4bux(X=oS-41WYdL2qZr-(Pu@J&nCQq<^izxX_E7qWr%^mC5?bs p0OI}hnB~8uM`Lu}KwuyU{0ol9?A&&aoGkzV002ovPDHLkV1g7puproviders->google_oauth2 in gitlab.yml +.row.prepend-top-default + = render 'sidebar' + = render 'header' +.row + .col-sm-8.col-sm-offset-4 + - if @authorize_url + %a{ href: @authorize_url } + = image_tag('auth_buttons/signin_with_google.png') + -# - else + -# You have not configrued GitLab properly. So we can not proceed authentication. Please check if you have set up omniauth->providers->google_oauth2 in gitlab.yml diff --git a/app/views/projects/clusters/new.html.haml b/app/views/projects/clusters/new.html.haml index 7433f6759a0..e1ff4c6136e 100644 --- a/app/views/projects/clusters/new.html.haml +++ b/app/views/projects/clusters/new.html.haml @@ -1,3 +1,4 @@ -Create a cluster -%br -= render "form" +.row.prepend-top-default + = render 'sidebar' + = render 'header' += render 'form'