[fix #1065] Change logout logo for plain text
This commit is contained in:
parent
b2c9d8f227
commit
271abc72fb
5 changed files with 16 additions and 17 deletions
|
@ -106,19 +106,11 @@
|
|||
}
|
||||
|
||||
#sign-out {
|
||||
text-align: center;
|
||||
height: 60px;
|
||||
|
||||
.fa {
|
||||
color: #003C92;
|
||||
float: right;
|
||||
width: 70px;
|
||||
margin-top: 2%;
|
||||
margin-right: 0.5em;
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.fa:hover {
|
||||
color: #668ABD;
|
||||
a {
|
||||
line-height: 60px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
= link_to "", "/administrateurs/sign_out", method: :delete, class: "btn btn-md fa fa-sign-out"
|
||||
= link_to "/administrateurs/sign_out", method: :delete do
|
||||
%span.fa.fa-sign-out
|
||||
Se déconnecter
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
= link_to "", "/gestionnaires/sign_out", method: :delete, class: "btn btn-md fa fa-sign-out"
|
||||
= link_to "/gestionnaires/sign_out", method: :delete do
|
||||
%span.fa.fa-sign-out
|
||||
Se déconnecter
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
#fconnect-profile{ "data-fc-logout-url" => '/users/sign_out" data-method="delete' }
|
||||
%a.text-info{ href: "#" }
|
||||
= "#{current_user.given_name} #{current_user.family_name}"
|
||||
= link_to "", "/users/sign_out", method: :delete, class: "btn fa fa-power-off off-fc-link"
|
||||
= link_to "/users/sign_out", method: :delete do
|
||||
%span.fa.fa-sign-out
|
||||
Se déconnecter
|
||||
|
||||
- else
|
||||
= link_to "", "/users/sign_out", method: :delete, class: "btn btn-md fa fa-sign-out"
|
||||
= link_to "/users/sign_out", method: :delete do
|
||||
%span.fa.fa-sign-out
|
||||
Se déconnecter
|
||||
|
|
|
@ -26,14 +26,13 @@ feature 'Administrator connection' do
|
|||
scenario 'it displays the menu' do
|
||||
expect(page).to have_css('a#profile')
|
||||
expect(page).to have_css('#sign-out')
|
||||
expect(page).to have_css('a.fa-sign-out')
|
||||
end
|
||||
context 'when clicking on sign-out' do
|
||||
before do
|
||||
stub_request(:get, "https://api.github.com/repos/sgmap/tps/releases/latest")
|
||||
.to_return(:status => 200, :body => '{"tag_name": "plip", "body": "blabla", "published_at": "2016-02-09T16:46:47Z"}', :headers => {})
|
||||
|
||||
page.find_by_id('sign-out').find('a.fa-sign-out').click
|
||||
page.find_by_id('sign-out').find('a').click
|
||||
end
|
||||
scenario 'admin is redireted to home page' do
|
||||
expect(page).to have_css('.landing')
|
||||
|
|
Loading…
Reference in a new issue