~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/main/pages/question_list.html

  • Committer: Janos Gyerik
  • Date: 2012-02-22 16:58:19 UTC
  • Revision ID: janos@axiom-20120222165819-wkvvdtbjok7t2ayz
do not show buttons when not logged in, its not pretty

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
<p>If you have a question that can be answered by an appropriate bash one-liner,
16
16
feel free to ask it here!</p>
17
17
 
 
18
{% if user.is_authenticated %}
18
19
<p><a href="{% url bashoneliners.main.views.question_new %}" class="btn btn-primary">Post a question</a></p>
 
20
{% else %}
 
21
<div class="alert alert-warning">
 
22
    <strong class="alert-heading">Note:</strong>
 
23
    you have to <a href="{% url bashoneliners.main.views.login %}">login (with an OpenID)</a> to post a question. 
 
24
</div>
 
25
{% endif %}
19
26
 
20
27
</div>
21
28