aboutsummaryrefslogtreecommitdiff
blob: 6b144aa55b48d512a674d6d2f15b2421b485484f (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
<def tag="card" for="Question" attrs="user">
  <card class="question" param="default" merge>
    <header: param>
      <h4 param="heading"><a><name/></a></h4>
      <if test="&this.answered?(user || current_user)">
        answered (<a with="&this.answer_of(user || current_user)">view answer</a>)
      </if>
    </header:>
  </card>
</def>

<def tag="card" for="ProjectAcceptance">
  <card class="project acceptance" param="default" merge>
    <header: param>
      <h4 param="heading">
        <a:user><name/></a>
        <a action="edit" if="&can_edit?">(edit)</a>
      </h4>
    </header:>
    <body:>
      <if test="&this.accepted">
        Accepted by <view:accepting_nick/>
      </if>
      <else>
        Waiting for acceptance by <view:accepting_nick/>
      </else>
    </body>
  </card>
</def>

<def tag="card" for="Answer">
  <card class="answer" param="default" merge>
    <a>
      Answer of <name:owner/> for <name:question/>
    </a>
  </card>
</def>

<def tag="card" for="Comment">
  <card class="comment" param="default" merge>
    <header: param>
      <h4 param="heading"><a:owner><name/></a>:</h4>
    </header:>
    <body: param>
      <view:content/>
    </body:>
  </card>
</def>