btn - Zeus link - deploy

This commit is contained in:
benji 2015-09-11 17:08:46 +02:00
parent 4982d9503d
commit 274059d10f
3 changed files with 5 additions and 2 deletions

View file

@ -14,6 +14,9 @@
- if current_user - if current_user
%li.pure-menu-item %li.pure-menu-item
= link_to current_user.name.capitalize, current_user, class: "pure-menu-link" = link_to current_user.name.capitalize, current_user, class: "pure-menu-link"
- if current_user.penning
%li.pure-menu-item
=link_to "Zeus", User.zeus, class: "pure-menu-link"
- else - else
= link_to "Sign in", user_omniauth_authorize_path(:zeuswpi), class: "pure-menu-link" unless current_user = link_to "Sign in", user_omniauth_authorize_path(:zeuswpi), class: "pure-menu-link" unless current_user
.pure-u-1 .pure-u-1

View file

@ -15,4 +15,4 @@
= f.number_field :euros, value: amount(@transaction.amount), = f.number_field :euros, value: amount(@transaction.amount),
placeholder: "Bedrag", step: 0.01, min: (0.01 unless current_user.penning), placeholder: "Bedrag", step: 0.01, min: (0.01 unless current_user.penning),
class: "form-control", size: 20, required: true class: "form-control", size: 20, required: true
= f.submit "Send it!", class: "pure-button pure-button-primary" = f.submit "Send it!", class: "pure-button pure-button-primary btn"

View file

@ -1,4 +1,4 @@
server 'king.ugent.be', user: 'tap', roles: %w{web app db}, ssh_options: { server 'king.ugent.be', user: 'tab', roles: %w{web app db}, ssh_options: {
forward_agent: true, forward_agent: true,
auth_methods: ['publickey'], auth_methods: ['publickey'],
port: 2222 port: 2222