Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
2e25be1c6efb
Commit
0175e665
authored
Aug 10, 2013
by
Dmitriy Zaporozhets
Browse files
hide no-ssh message if notice or alert present
parent
31124fd49510
Changes
3
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/common.scss
View file @
2e25be1c
...
...
@@ -49,12 +49,8 @@ table a code {
cursor
:
pointer
;
margin
:
0
;
text-align
:
center
;
border-radius
:
0
;
color
:
#fff
;
span
{
font-size
:
14px
;
}
font-size
:
14px
;
.flash-notice
{
background
:
#49C
;
...
...
app/views/layouts/_flash.html.haml
View file @
2e25be1c
.flash-container
-
if
alert
.flash-alert
%span
=
alert
=
alert
-
elsif
notice
.flash-notice
%span
=
notice
=
notice
app/views/shared/_no_ssh.html.haml
View file @
2e25be1c
-
if
current_user
.
require_ssh_key?
-
if
current_user
.
require_ssh_key?
&&
alert
.
blank?
&&
notice
.
blank?
%p
.error-message.centered
You won't be able to pull or push project code via SSH until you
#{
link_to
'add an SSH key'
,
new_profile_key_path
}
to your profile
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment