Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Unified Diff: appengine/monorail/templates/features/updates-entry-part.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/monorail/templates/features/updates-entry-part.ezt
diff --git a/appengine/monorail/templates/features/updates-entry-part.ezt b/appengine/monorail/templates/features/updates-entry-part.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..a1fde4e3017a8a8c3f3a8c31fc4d948630124a15
--- /dev/null
+++ b/appengine/monorail/templates/features/updates-entry-part.ezt
@@ -0,0 +1,57 @@
+[# Show one activity. arg0 is the activity.]
+
+[is arg0.highlight ""]
+ [define column_width]160[end]
+[else]
+ [define column_width]300[end]
+[end]
+
+<li [is even "Yes"]class="even"[end]>
+ <div class="g-section g-tpl-[column_width]">
+ <div class="g-unit g-first">
+ <div class="g-c">
+ [if-any arg0.highlight]
+ <div class="g-section g-tpl-160">
+ <div class="g-unit g-first">
+ <div class="g-c">
+ <span class="date [if-any arg0.escaped_body]below-more[else][end] activity" title="[arg0.date_tooltip]">[arg0.date_relative]</span>
+ </div>
+ </div>
+ <div class="g-unit">
+ <div class="g-c" style="padding-right:1em">
+ <span class="highlight-column">
+ [is arg0.highlight "project"]
+ <a href="/p/[arg0.project_name]/" title="[arg0.project_name]">[arg0.project_name]</a>
+ [else][is arg0.highlight "user"]
+ <a href="[arg0.user.profile_url]" title="[arg0.user.display_name]">[arg0.user.display_name]</a>
+ [end][end]
+ </span>
+ </div>
+ </div>
+ </div>
+ [else]
+ <span class="date [if-any arg0.escaped_body]below-more[end] activity" title="[arg0.date_tooltip]">[arg0.date_relative]</span>
+ [end]
+ </div>
+ </div>
+ <div class="g-unit">
+ <div class="g-c">
+ <span class="content">
+ [# SECURITY: OK to use "raw" here because escaped_title was preprocessed through the template engine.]
+ <span class="title">[format "raw"][arg0.escaped_title][end]</span>
+ [if-any arg0.escaped_body]
+ <span class="details-inline" style="margin-left:.5em">
+ [# SECURITY: OK to use "raw" here because escaped_body was preprocessed through the template engine.]
+ - [format "raw"][arg0.escaped_body][end]
+ </span>
+ <div class="details-wrapper">
+ [# SECURITY: OK to use "raw" here because escaped_body was preprocessed through the template engine.]
+ <div class="details">[format "raw"][arg0.escaped_body][end]</div>
+ </div>
+ [end]
+ </span>
+ </div>
+ </div>
+ </div>
+</li>
+[define even][is even "Yes"]No[else]Yes[end][end]
« no previous file with comments | « appengine/monorail/templates/features/updates-ending.ezt ('k') | appengine/monorail/templates/features/updates-issue-link.ezt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698