Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hiboo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cyrinux
Hiboo
Commits
c28ca71c
Commit
c28ca71c
authored
5 years ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Add a top navigation bar
parent
83a4ad9d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
trurt/configuration.py
+1
-0
1 addition, 0 deletions
trurt/configuration.py
trurt/templates/base.html
+30
-5
30 additions, 5 deletions
trurt/templates/base.html
with
31 additions
and
5 deletions
trurt/configuration.py
+
1
−
0
View file @
c28ca71c
...
...
@@ -9,6 +9,7 @@ DEFAULT_CONFIG = {
'
SQLALCHEMY_DATABASE_URI
'
:
'
sqlite:////tmp/trurt.db
'
,
'
SQLALCHEMY_TRACK_MODIFICATIONS
'
:
False
,
'
SECRET_KEY
'
:
'
changeMe
'
,
'
TEMPLATES_AUTO_RELOAD
'
:
False
}
class
ConfigManager
(
dict
):
...
...
This diff is collapsed.
Click to expand it.
trurt/templates/base.html
+
30
−
5
View file @
c28ca71c
...
...
@@ -13,15 +13,40 @@
<span
class=
"logo-mini"
>
RЯ
</span>
<span
class=
"logo-lg"
>
TRUЯT
</span>
</a>
<nav
class=
"navbar navbar-static-top"
>
<a
href=
"#"
class=
"sidebar-toggle"
data-toggle=
"push-menu"
role=
"button"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
</a>
<div
class=
"navbar-custom-menu"
>
<ul
class=
"nav navbar-nav"
>
{% if current_user.is_authenticated %}
<li
class=
"dropdown user"
>
<a
class=
"dropdown-toggle"
>
Logged in as
<strong>
{{ current_user.username }}
</strong>
</a>
</li>
<li
class=
"dropdown user"
>
<a
href=
"{{ url_for("
account.logout
")
}}"
class=
"dropdown-toggle"
>
<i
class=
"fa fa-sign-out"
></i>
Log out
</a>
</li>
{% else %}
<li
class=
"dropdown user"
>
<a
href=
"{{ url_for("
account.login
")
}}"
class=
"dropdown-toggle"
>
<i
class=
"fa fa-sign-in"
></i>
Log in
</a>
</li>
{% endif %}
</ul>
</div>
</header>
<aside
class=
"main-sidebar"
>
<section
class=
"sidebar"
>
{% if current_user.is_authenticated %}
<h4
class=
"text-center text-primary"
>
{{ current_user.username }}
</h4>
{% endif %}
<ul
class=
"sidebar-menu"
data-widget=
"tree"
>
{% include "sidebar.html" %}
</ul>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment