Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
4a40482f
Commit
4a40482f
authored
Mar 04, 2016
by
Matthew Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tips to create link for logged out user
Fixes #374
parent
11a8eb17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/components/navigation/navigation.jsx
src/components/navigation/navigation.jsx
+2
-1
No files found.
src/components/navigation/navigation.jsx
View file @
4a40482f
...
...
@@ -191,13 +191,14 @@ var Navigation = React.createClass({
'
show
'
:
this
.
state
.
unreadMessageCount
>
0
});
var
formatMessage
=
this
.
props
.
intl
.
formatMessage
;
var
createLink
=
this
.
state
.
session
.
user
?
'
/projects/editor/
'
:
'
/projects/editor/?tip_bar=home
'
;
return
(
<
div
className=
{
classes
}
>
<
ul
>
<
li
className=
"logo"
><
a
href=
"/"
aria
-
label=
"Scratch"
></
a
></
li
>
<
li
className=
"link create"
>
<
a
href=
"/projects/editor"
>
<
a
href=
{
createLink
}
>
<
FormattedMessage
id=
"general.create"
defaultMessage=
{
'
Create
'
}
/>
...
...
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