Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urbanmetamapping
platform
MapMyMaps-p1
Commits
84eb8b6a
Commit
84eb8b6a
authored
Mar 04, 2022
by
Klaus Stein
Browse files
Improve login menu
parent
04ac087c
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/frontend/stylesheets/_main.scss
View file @
84eb8b6a
...
...
@@ -64,6 +64,10 @@ header.page {
&
.home
{
align-self
:
center
;
}
&
.user
{
margin-left
:
auto
;
color
:
#edc
;
}
}
a
{
...
...
app/views/layouts/_menu.html.erb
View file @
84eb8b6a
...
...
@@ -26,9 +26,9 @@
</li>
<li
class=
"user"
>
<%
if
current_user
%>
<%=
link_to
current_user
.
username
,
user_path
(
current_user
)
%>
<%
else
%>
<%=
link_to
"Login"
,
:login
%>
<%=
link_to
current_user
.
username
,
user_path
(
current_user
)
,
class:
'navlink'
%>
<%
else
%>
<%=
link_to
"Login"
,
:login
,
class:
'navlink'
%>
<%
end
%>
</li>
...
...
Write
Preview
Supports
Markdown
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