summaryrefslogtreecommitdiff
path: root/templates/article.html
blob: 7bd233b0684555e26a359da9f4b5a2d49e0728f3 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<article>
<div class="article">
  <h1><a href="{link|html-attr-value}">{title}</a></h1>

  <div class="article-header">
    <header>
      <span class="article-date">
        <time pubdate="pubdate" datetime="{publishing-date|html-iso-date}">
          {publishing-date|html-human-date}
        </time>
      </span>
    </header>
  </div>

  <div class="article-body">
    {body}
  </div>

  <div class="article-footer">
    <footer>
      <form class="article-edit-button-form"
            style="display: inline;"
            action="{edit-link|html-attr-value}"
            method="get">
        <div style="display: inline;">
          <input name="edit" type="hidden" />
          <input type="submit" value="{edit-button-label|html-attr-value}" />
        </div>
      </form>
      |
      <a href="{comment-feed|html-attr-value}">{comment-feed-label|html}</a>
      |
      <a href="{comments-link|html-attr-value}">{comments-label|html}</a>
    </footer>
  </div>
</div>
</article>

{.section commentary}
<div class="comments" id="comments">
  <h2>{comments-heading|html}</h2>

  {.repeated section comments}
    <div class="comment">
      <div class="comment-header">
        {publishing-date|html-human-date}
        <a rel="nofollow" {.section author-link}href="{@|html-attr-value}"{.end}>{.section author}{@|html}{.or}{generic-commenter-name|html}{.end}</a>:
      </div>
      <div class="comment-body">
        {body}
      </div>
    </div>
  {.end}

  {.section comment-submission}
    <h2>{title}</h2>
    {notes}
    <form action="{action|html-attr-value}" accept-charset="UTF-8"
          enctype="application/x-www-form-urlencoded" method="post">
      <div style="display: none">
        <input name="id" type="hidden" value="{article-id|html-attr-value}" />
        <input name="action" type="hidden" value="post-comment" />
      </div>
      <div class="comment-form-table">
        {.repeated section fields}
          <div class="comment-form-row">
            <div class="comment-form-label">
              <label style="vertical-align: top"
                     for="comment-form-input-{field-id|html-attr-value}">{field-label|html}:</label>
            </div>
            <div class="comment-form-input">
              <input id="comment-form-input-{field-id|html-attr-value}"
                     name="{field-id|html-attr-value}" type="text" />
            </div>
          </div>
        {.end}
        <div class="comment-form-row">
          <div class="comment-form-label">
            <label style="vertical-align: top" for="comment-body">{body-label|html}:</label>
          </div>
          <div class="comment-form-input">
            <textarea id="comment-body" cols="60" rows="15"
                      name="comment-body">
            </textarea>
          </div>
        </div>
      </div>
      <div><input type="submit" value="{submit-button-label|html-attr-value}"></div>
    </form>
  {.end}

</div>
{.end}