Skip to content

Commit

Permalink
Merge pull request #1101 from oskarhane/add-docs-links
Browse files Browse the repository at this point in the history
Add sidebar links to browser release, changelog, and developer pages
  • Loading branch information
oskarhane authored May 20, 2020
2 parents f17502d + 0f589a9 commit 0b5c073
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/browser/modules/Sidebar/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ const About = ({ serverVersion, serverEdition }) => (
<DrawerSection>
<DrawerSubHeader>You are running</DrawerSubHeader>
<DrawerSectionBody>
<p>Neo4j Browser version: {version}</p>
<p>
Neo4j Browser version:{' '}
<a
href={`https://github.com/neo4j/neo4j-browser/releases/tag/${version}`}
target="_blank"
>
{version}
</a>
</p>
<Render if={serverVersion && serverEdition}>
<p>
Neo4j Server version:{' '}
Expand All @@ -60,6 +68,14 @@ const About = ({ serverVersion, serverEdition }) => (
({serverEdition})
</p>
</Render>
<p>
<a
href="https://github.com/neo4j/neo4j-browser/wiki/changelog"
target="_blank"
>
Neo4j Browser Changelog
</a>
</p>
</DrawerSectionBody>
</DrawerSection>
<DrawerSection>
Expand Down
5 changes: 5 additions & 0 deletions src/browser/modules/Sidebar/Documents.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ const getReferences = (version, v) => {
name: 'Knowledge Base',
command: 'https://neo4j.com/developer/kb/',
type: 'link'
},
{
name: 'Neo4j Browser Developer Pages',
command: 'https://neo4j.com/developer/neo4j-browser/',
type: 'link'
}
]
return [].concat(shouldLinkToNewRefs(version) ? newRefs : oldRefs, commonRefs)
Expand Down

0 comments on commit 0b5c073

Please sign in to comment.