fix: message if logged but not perm.create_comment

This commit is contained in:
Élie Bouttier 2014-08-18 15:21:45 -07:00
parent f9f98d9796
commit bd584151bc

View file

@ -94,6 +94,8 @@
<button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-pencil"></span> Add a comment</button> <button type="submit" class="btn btn-success"><span class="glyphicon glyphicon-pencil"></span> Add a comment</button>
</div> </div>
</form> </form>
{% elif request.user.is_authenticated %}
Sorry, you are not allowed to comment this issue.
{% else %} {% else %}
To post a comment, please <a href="{% url 'login' %}?prev={{ request.path }}&next={{ request.path }}">login</a>. To post a comment, please <a href="{% url 'login' %}?prev={{ request.path }}&next={{ request.path }}">login</a>.
{% endif %} {% endif %}