public
Description: Meta Theme for Mephisto
Homepage: http://www.metaskills.net/meta-theme-for-mephisto
Clone URL: git://github.com/metaskills/metatheme.git
Search Repo:
metatheme / templates / _comments.liquid
100644 68 lines (55 sloc) 1.927 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
 
<a name="comments" class="cleanlink"></a>
 
{% if article.comments_count > 0 %}
  {% for comment in article.comments %}
  
   <a name="comment-{{ comment.id }}" class="cleanlink"></a>
   <div class="comment-box">
      
      <h3 class="title">{{ comment.author }}</h3>
      <div class="comment-info">
        {% if comment.author_url != 'http://' %}
          &nbsp;&nbsp;<a href="{{ comment.author_url }}" class="external-link">HOMEPAGE</a>&nbsp;&nbsp;|
        {% endif %}
        {{ comment.created_at | format_date: 'mdy', true }} at {{ comment.created_at | format_date: 'time_only' }}
      </div>
      <div class="comment {{ comment.presentation_class }}">
        <div class="tl"><div class="tr"><div class="br"><div class="bl">
          <div class="comment-vertspacer"></div>
          <div class="content">
            <span class="gravatar">{{ comment | gravatar: 35 }}</span>
            {{ comment.body }}
          </div>
          <div class="comment-links-box"><span class="comment-links"></span></div>
        </div></div></div></div>
      </div>
 
    </div>
    
  {% endfor %}
{% endif %}
 
 
{% if article.accept_comments %}
  
  <h2 id="respond">Leave a Comment</h2>
  {% commentform %}
  <table class="formTable commentFormTable">
    <tr>
      <th>Name</th>
      <td>{{ form.name }} <small>(required)</small></td>
    </tr>
    <tr>
      <th>Email</th>
      <td>{{ form.email }} <small>(will not be published)</small></td>
    </tr>
    <tr>
      <th>Website</th>
      <td>{{ form.url }}</td>
    </tr>
    <tr>
      <th>Comment</th>
      <td><textarea name="comment[body]" id="comment">{{ submitted.body }}</textarea></td>
    </tr>
    <tr>
      <th></th>
      <td>
        <input type="submit" name="submit" id="submit" value="Submit Comment" />
        <input type="submit" name="comment[preview]" value="Preview" />
      </td>
    </tr>
  </table>
  {% endcommentform %}
  
{% endif %}