Browse Source

Change top menu

If user is authenticated, hide GitHub link and Live demo link.
pull/33/head
Hironsan 6 years ago
parent
commit
f1c53b22bf
2 changed files with 5 additions and 7 deletions
  1. BIN
      app/db.sqlite3
  2. 12
      app/server/templates/base.html

BIN
app/db.sqlite3

12
app/server/templates/base.html

@ -55,9 +55,7 @@
</div>
<div id="topNav" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="{% url 'index' %}">
<span>Home</span>
</a>
{% if not user.is_authenticated %}
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link">
<span>Live Demo</span>
@ -74,15 +72,15 @@
</a>
</div>
</div>
<a class="navbar-item" href="https://github.com/chakki-works/doccano">
<span>GitHub</span>
</a>
{% endif %}
{% if user.is_authenticated %}
<a class="navbar-item" href="{% url 'projects' %}">
<span>Projects</span>
</a>
{% endif %}
<!--<a class="navbar-item" href="hoge.html">Live Demo</a>-->
<a class="navbar-item" href="https://github.com/chakki-works/doccano">
<span>GitHub</span>
</a>
{% if not user.is_authenticated %}
<a class="navbar-item" href="{% url 'login' %}">
<span>Login</span>

Loading…
Cancel
Save