Browse Source

Add icon to header menu

pull/10/head
Hironsan 6 years ago
parent
commit
d108268f40
1 changed files with 27 additions and 23 deletions
  1. 50
      app/server/templates/base.html

50
app/server/templates/base.html

@ -31,9 +31,19 @@
</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' %}">Home</a>
<a class="navbar-item" href="{% url 'index' %}">
<span class="icon is-small">
<i class="fas fa-home"></i>
</span>
<span>&nbsp;Home</span>
</a>
{% if user.is_authenticated %} {% if user.is_authenticated %}
<a class="navbar-item" href="{% url 'projects' %}">Projects</a>
<a class="navbar-item" href="{% url 'projects' %}">
<span class="icon is-small">
<i class="fas fa-people-carry"></i>
</span>
<span>&nbsp;Projects</span>
</a>
{% endif %} {% endif %}
<!--<a class="navbar-item" href="hoge.html">Live Demo</a>--> <!--<a class="navbar-item" href="hoge.html">Live Demo</a>-->
<a class="navbar-item" href="https://github.com/chakki-works/doccano"> <a class="navbar-item" href="https://github.com/chakki-works/doccano">
@ -42,27 +52,21 @@
</span> </span>
<span>&nbsp;GitHub</span> <span>&nbsp;GitHub</span>
</a> </a>
<div class="navbar-item">
<div class="field is-grouped">
<p class="control">
{% if not user.is_authenticated %}
<a class="button is-small is-primary is-outlined" href="{% url 'login' %}">
<span class="icon">
<i class="fa fa-user"></i>
</span>
<span>Login</span>
</a>
{% else %}
<a class="button is-small is-outlined" href="{% url 'logout' %}">
<span class="icon">
<i class="fa fa-user"></i>
</span>
<span>Logout</span>
</a>
{% endif %}
</p>
</div>
</div>
{% if not user.is_authenticated %}
<a class="navbar-item" href="{% url 'login' %}">
<span class="icon is-small">
<i class="fa fa-user"></i>
</span>
<span>&nbsp;Login</span>
</a>
{% else %}
<a class="navbar-item" href="{% url 'logout' %}">
<span class="icon is-small">
<i class="fa fa-user"></i>
</span>
<span>&nbsp;Logout</span>
</a>
{% endif %}
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save