Merge pull request #1069 from sgmap/fix_1065_alert_before_log_out

[fix #1065] Change logout logo for plain text
This commit is contained in:
LeSim 2017-12-11 17:07:12 +01:00 committed by GitHub
commit 21584ceee5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 17 deletions

View file

@ -106,19 +106,11 @@
} }
#sign-out { #sign-out {
text-align: center;
height: 60px; height: 60px;
.fa { a {
color: #003C92; line-height: 60px;
float: right;
width: 70px;
margin-top: 2%;
margin-right: 0.5em;
font-size: 40px;
}
.fa:hover {
color: #668ABD;
} }
} }
} }

View file

@ -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

View file

@ -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

View file

@ -2,7 +2,11 @@
#fconnect-profile{ "data-fc-logout-url" => '/users/sign_out" data-method="delete' } #fconnect-profile{ "data-fc-logout-url" => '/users/sign_out" data-method="delete' }
%a.text-info{ href: "#" } %a.text-info{ href: "#" }
= "#{current_user.given_name} #{current_user.family_name}" = "#{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 - 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

View file

@ -26,14 +26,13 @@ feature 'Administrator connection' do
scenario 'it displays the menu' do scenario 'it displays the menu' do
expect(page).to have_css('a#profile') expect(page).to have_css('a#profile')
expect(page).to have_css('#sign-out') expect(page).to have_css('#sign-out')
expect(page).to have_css('a.fa-sign-out')
end end
context 'when clicking on sign-out' do context 'when clicking on sign-out' do
before do before do
stub_request(:get, "https://api.github.com/repos/sgmap/tps/releases/latest") 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 => {}) .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 end
scenario 'admin is redireted to home page' do scenario 'admin is redireted to home page' do
expect(page).to have_css('.landing') expect(page).to have_css('.landing')