summaryrefslogtreecommitdiff
path: root/templates/article.html
blob: 24b5b1727c09731bb93eef395a0d6165ab5f76b1 (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
<article>
  <h1><a href="{link|html-attr-value}">{title|html}</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="id" type="hidden" value="106" />
          <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="{comment-feed|html-attr-value}">{comments-label|html}</a>
    </footer>
  </div>
</article>

{.section commentary}
<div class="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 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="98" />
        <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="{field-id|html-attr-value}">{field-label|html}:</label>
            </div>
            <div class="comment-form-input">
              <input id="{field-id|html-attr-value}"
                     name="{field-name|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}