Commit edcb69ac authored by alexandre's avatar alexandre

Fix #14 Link by default to read-mode

parent ec2a06d4
......@@ -4,7 +4,7 @@
{% block content %}
<ul id="pads_list">
{% for pad in publicpads %}
<li><a data-uid="{{ pad.display_slug }}" href="{% url 'pad-write' slug=pad.display_slug %}" class="pad-link">{{ pad.display_slug|dewikify }}</a></li>
<li><a data-uid="{{ pad.display_slug }}" href="{% url 'pad-read' mode='r' slug=pad.display_slug %}" class="pad-link">{{ pad.display_slug|dewikify }}</a></li>
{% endfor %}
</ul>
{% endblock %}
......@@ -16,7 +16,7 @@
{% endfor %}
{% for pad in tree.pads %}
<li>
<a data-uid="{{ pad.display_slug }}" href="{% url 'pad-write' slug=pad.display_slug %}" class="pad-link">
<a data-uid="{{ pad.display_slug }}" href="{% url 'pad-read' mode='r' slug=pad.display_slug %}" class="pad-link">
{{ pad.display_slug|stripPath:folderPath|dewikify }}
{% if pad.is_public %}(public){% endif %}
</a>
......
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