summaryrefslogtreecommitdiff
path: root/templates/article.html
blob: aed5406472a0e80b668e7eb16caeee9f95446e90 (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
94
<article>
<div class="article">
  <h1><a href="{link|html-attr-value}">{title}</a></h1>

  <div class="article-header">
    <header>
      {.section publishing-date}
      <span class="article-date">
        <time pubdate="pubdate" datetime="{@|html-iso-date}">
          {@|html-human-date}
        </time>
      </span>
      {.end}
    </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 name="revision" type="hidden" value="{revision|html-attr-value}" />
          <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}
    {@|comment-html}
  {.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"
          class="comment-form">
      <div style="display: none">
        <input name="article" type="hidden" value="{article-id|html-attr-value}" />
        <input name="revision" type="hidden" value="{revision|html-attr-value}" />
        <input name="post-comment" type="hidden" />
      </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"
                     {.section require-js}disabled="disabled"{.end} />
            </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="body"  {.section require-js}disabled="disabled"{.end}></textarea>
          </div>
        </div>
      </div>
      <div>
        <input type="submit"
               value="{submit-button-label|html-attr-value}"
               class="comment-submit-button"  {.section require-js}disabled="disabled"{.end} />
      </div>
    </form>
  {.end}

</div>
{.end}