diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-08 20:28:07 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-08 20:28:07 -0700 |
commit | 7fa6631a13467e983e8e7d78d7897a86be322c50 (patch) | |
tree | 2523c3c591a7cc5718ef9bac21110dda7cbf4ff4 /ui/src/components/navbar.tsx | |
parent | 4cfe9700892e85562c4f296be8c4c6f699f52710 (diff) |
Adding versioning to front page.
- Fixes #51
Diffstat (limited to 'ui/src/components/navbar.tsx')
-rw-r--r-- | ui/src/components/navbar.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index c4b51e37..ca0c5a2a 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -2,6 +2,7 @@ import { Component, linkEvent } from 'inferno'; import { Link } from 'inferno-router'; import { repoUrl } from '../utils'; import { UserService } from '../services'; +import { version } from '../version'; interface NavbarState { isLoggedIn: boolean; @@ -40,7 +41,7 @@ export class Navbar extends Component<any, NavbarState> { navbar() { return ( <nav class="navbar navbar-expand-sm navbar-light bg-light p-0 px-3 shadow"> - <a class="navbar-brand" href="#"> + <a title={version} class="navbar-brand" href="#"> <svg class="icon mr-2"><use xlinkHref="#icon-mouse"></use></svg> Lemmy </a> |