This commit is contained in:
Xavier J 2015-12-08 18:34:43 +01:00
parent 6a471fe867
commit c2fbb246e7
2 changed files with 48 additions and 21 deletions

View file

@ -32,6 +32,31 @@ body {
max-height: 100%; max-height: 100%;
} }
#beta {
text-align: center;
text-transform: uppercase;
position: absolute;
top: 26px;
right: -35px;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
width: 150px;
background-color: #008cba;
color: #fff;
padding: 5px;
font-size: 15px;
font-weight: 700;
z-index: 10;
}
#sign_out {
decorate: none;
box-shadow: none;
float: right;
margin-top: 8px;
margin-right: 80px;
}
.alert.alert-success, .alert.alert-success,
.alert.alert-danger { .alert.alert-danger {
margin-top: -20px margin-top: -20px
@ -129,19 +154,18 @@ div.pagination {
border-bottom-right-radius: 0; border-bottom-right-radius: 0;
} }
.btn-nav.text-info:hover{ .btn-nav.text-info:hover {
color: #23527c; color: #23527c;
} }
.btn-nav.text-success:hover{ .btn-nav.text-success:hover {
color: #3c763d; color: #3c763d;
} }
.btn-nav.text-danger:hover{ .btn-nav.text-danger:hover {
color: #a94442; color: #a94442;
} }
#confirm { #confirm {
display:none; display: none;
} }

View file

@ -8,23 +8,26 @@
= javascript_include_tag 'application', 'data-turbolinks-track' => true = javascript_include_tag 'application', 'data-turbolinks-track' => true
= csrf_meta_tags = csrf_meta_tags
%body %body
#beta
Beta
%div %div
%div.navbar %div.navbar
= image_tag('marianne_small.png', class: 'logo') = image_tag('marianne_small.png', class: 'logo')
%a{href: '/', class:'btn btn-lg'} %a{href: '/', class:'btn btn-lg'}
='TPS' ='TPS'
#sign_out
-if gestionnaire_signed_in? -if gestionnaire_signed_in?
%div{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'} %div
= current_gestionnaire.email = current_gestionnaire.email
= link_to "Déconnexion", '/gestionnaires/sign_out', method: :delete, :class => 'btn btn-md' = link_to "Déconnexion", '/gestionnaires/sign_out', method: :delete, :class => 'btn btn-md'
-elsif administrateur_signed_in? -elsif administrateur_signed_in?
%div{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'} %div
= current_administrateur.email = current_administrateur.email
= link_to "Déconnexion", '/administrateurs/sign_out', method: :delete, :class => 'btn btn-md' = link_to "Déconnexion", '/administrateurs/sign_out', method: :delete, :class => 'btn btn-md'
- elsif user_signed_in? - elsif user_signed_in?
%div.user{style: 'decorate:none; box-shadow:none; float:right; margin-top:8px'} %div.user
-if current_user.loged_in_with_france_connect -if current_user.loged_in_with_france_connect
= image_tag('logo_FC_02_small.png', class: 'logo_fc_small') = image_tag('logo_FC_02_small.png', class: 'logo_fc_small')
-else -else