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
6f8a9164
Commit
6f8a9164
authored
Mar 04, 2016
by
Matthew Taylor
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #376 from mewtaylor/issue/gh-374-tips-link
[Develop] Fix GH-374: Add tips to create link for logged out
parents
73b0766d
4a40482f
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 @
6f8a9164
...
...
@@ -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