Skip to content

Commit

Permalink
update index, dashboard template
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoWzk committed Feb 17, 2019
1 parent 5d7b539 commit 82fcb29
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 93 deletions.
166 changes: 76 additions & 90 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/templates/auth/dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends 'base.html' %}
{% block main %}
<div class="jumbotron">
<span class="display-4">dashboard</span>
</div>
{% endblock %}
12 changes: 9 additions & 3 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,15 @@
<li class="nav-item">
<a class="nav-link" href="{{ url_for('main.user_register') }}">REGISTER</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('auth.sign_in') }}">LOGIN</a>
</li>
{% if current_user.is_authenticated %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('auth.logout') }}">LOGOUT</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="{{ url_for('auth.sign_in') }}">LOGIN</a>
</li>
{% endif %}
</ul>
<form class="form-inline mt-2 mt-md-0">
<input class="form-control mr-sm-2" type="text" placeholder="Search" aria-label="Search">
Expand Down

0 comments on commit 82fcb29

Please sign in to comment.