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

Loading…
Cancel
Save