~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/threadedcomments/inlines/comments.html

  • Committer: Timo Wingender
  • Date: 2010-06-10 12:42:55 UTC
  • mto: This revision was merged to the branch mainline in revision 218.
  • Revision ID: timo.wingender@gmx.de-20100610124255-4958hbhzx9aqcrpa
Implement password change

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
            {% endif %}
28
28
        </div>
29
29
    {% endfor %}
 
30
    {% if user.is_authenticated %}
30
31
    <br />
31
32
        <br />
32
 
        <div class="box_item_model fixed_site border">
33
 
    {% if user.is_authenticated %}
34
 
        <h3 class="title">Reply to Original:</h3>
35
 
        <form method="POST" action="{% get_comment_url object %}?next={{object.get_absolute_url}}">
36
 
            <div class="content">
37
 
                <table class="text full_site">
38
 
                    <tr>
39
 
                        <td width="99%">
40
 
                            <span class="errormessage">{{ form.comment.errors }}</span>
41
 
                            {{ form.comment }}
42
 
                        </td>
43
 
                        <td width="1%"></td>
44
 
                    </tr>
45
 
                </table>
46
 
            </div>
47
 
            <table class="info_line full_site">
48
 
                <tr>
49
 
                    <td class="show_center">
50
 
                        <input type="hidden" name="markup" value="1" />
51
 
                        <input type="hidden" value="next" value="{{ object.get_absolute_url }}" />
52
 
                        <input type="submit" value="Submit Comment" />
53
 
                    </td>
54
 
                </tr>
55
 
            </table>
56
 
            {% csrf_token %}
57
 
        </form>
 
33
        <div class="news_item">
 
34
                <h3 class="title">Reply to Original:</h3>
 
35
      <form method="POST" action="{% get_comment_url object %}?next={{object.get_absolute_url}}">
 
36
                <div class="content">
 
37
                        <table class="text" width="100%">
 
38
                                        <tr>
 
39
                                                <td width="99%">
 
40
                                                        <span class=errorclass">{{ form.comment.errors }}</span>
 
41
                                        {{ form.comment }}
 
42
                                                </td>
 
43
                                                <td width="1%"></td>
 
44
                                        </tr>
 
45
                        </table>
 
46
                        </div>
 
47
                        <table class="bottom_line" width="100%">
 
48
                                <tr>
 
49
                                        <td class="admin">
 
50
                                                <input type="hidden" name="markup" value="1" />
 
51
                  <input type="hidden" value="next" value="{{ object.get_absolute_url }}" />
 
52
                                                <input type="submit" value="Submit Comment" />
 
53
                                        </td>
 
54
                                </tr>
 
55
                        </table>
 
56
        </form>
 
57
        </div>
58
58
    {% else %}
59
 
        <h3 class="title">Comments</h3>
60
 
        <div class="info_line errormessage show_center">
61
 
            <br /> 
62
 
            !!! Log in to post comments !!!
63
 
            <br /> 
64
 
            <br /> 
65
 
        </div>
 
59
    <p>Log in to post comments</p>
66
60
    {% endif %}
67
 
    </div>
68
61
 
69
62