Commit a4873ba1 authored by svilayphiou's avatar svilayphiou

remade the menu

parent f2933d8f
......@@ -52,26 +52,14 @@
</nav>
<nav id="nav-right">
{% if pad %}
{% if mode == 'r' %}
<a class="active button read-button screen-only">Read</a>
{% if user.is_authenticated %}
<a class="button screen-only write-button" href="{% url 'pad-write' pad.display_slug %}">Write</a>
{% endif %}
<a class="button screen-only slide-button" href="#">Slide</a>
{% else %}
<a class="button screen-only read-button" href="{% url 'pad-read' 'r' pad.display_slug %}">Read</a>
<a class="active button screen-only write-button">Write</a>
{% endif %}
<a class="button screen-only read-button" href="{% url 'pad-read' 'r' pad.display_slug %}">Read</a>
<a class="button screen-only slide-button" href="{% url 'pad-read' 's' pad.display_slug %}">Slide</a>
<a class="button screen-only" href="{% url 'pad-read' 'p' pad.display_slug %}">Print</a>
{% if user.is_authenticated %}
<a class="button screen-only" href="{% url 'pad-read' 'p' pad.display_slug %}">Print</a>
<a class="button screen-only write-button" href="{% url 'pad-write' pad.display_slug %}">Write</a>
{% else %}
<a class="button screen-only" href="#" onclick="window.print()">Print</a>
{% endif %}
{% else %}
<a class="button read-button screen-only">Read</a>
<a class="button screen-only write-button" href="{% url 'login' %}">Write</a>
<a class="button screen-only" href="#" onclick="window.print()">Print</a>
{% endif %}
{% endif %}
</nav>
<div class="wrap">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment