blob: a1fde4e3017a8a8c3f3a8c31fc4d948630124a15 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[# Show one activity. arg0 is the activity.]
2
3[is arg0.highlight ""]
4 [define column_width]160[end]
5[else]
6 [define column_width]300[end]
7[end]
8
9<li [is even "Yes"]class="even"[end]>
10 <div class="g-section g-tpl-[column_width]">
11 <div class="g-unit g-first">
12 <div class="g-c">
13 [if-any arg0.highlight]
14 <div class="g-section g-tpl-160">
15 <div class="g-unit g-first">
16 <div class="g-c">
17 <span class="date [if-any arg0.escaped_body]below-more[else][end] activity" title="[arg0.date_tooltip]">[arg0.date_relative]</span>
18 </div>
19 </div>
20 <div class="g-unit">
21 <div class="g-c" style="padding-right:1em">
22 <span class="highlight-column">
23 [is arg0.highlight "project"]
24 <a href="/p/[arg0.project_name]/" title="[arg0.project_name]">[arg0.project_name]</a>
25 [else][is arg0.highlight "user"]
26 <a href="[arg0.user.profile_url]" title="[arg0.user.display_name]">[arg0.user.display_name]</a>
27 [end][end]
28 </span>
29 </div>
30 </div>
31 </div>
32 [else]
33 <span class="date [if-any arg0.escaped_body]below-more[end] activity" title="[arg0.date_tooltip]">[arg0.date_relative]</span>
34 [end]
35 </div>
36 </div>
37 <div class="g-unit">
38 <div class="g-c">
39 <span class="content">
40 [# SECURITY: OK to use "raw" here because escaped_title was preprocessed through the template engine.]
41 <span class="title">[format "raw"][arg0.escaped_title][end]</span>
42 [if-any arg0.escaped_body]
43 <span class="details-inline" style="margin-left:.5em">
44 [# SECURITY: OK to use "raw" here because escaped_body was preprocessed through the template engine.]
45 - [format "raw"][arg0.escaped_body][end]
46 </span>
47 <div class="details-wrapper">
48 [# SECURITY: OK to use "raw" here because escaped_body was preprocessed through the template engine.]
49 <div class="details">[format "raw"][arg0.escaped_body][end]</div>
50 </div>
51 [end]
52 </span>
53 </div>
54 </div>
55 </div>
56</li>
57[define even][is even "Yes"]No[else]Yes[end][end]