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

Unified Diff: appengine/monorail/templates/features/updates-issueupdate-title.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-issueupdate-title.ezt
diff --git a/appengine/monorail/templates/features/updates-issueupdate-title.ezt b/appengine/monorail/templates/features/updates-issueupdate-title.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..1475df98ae7bd21fc3f9d02ffec810f9b52fe0e4
--- /dev/null
+++ b/appengine/monorail/templates/features/updates-issueupdate-title.ezt
@@ -0,0 +1,28 @@
+[# Pre-render the title of an activity for an issue update.]
+
+[include "updates-issue-link.ezt"]
+([issue.short_summary])
+
+[define field_changed][end]
+[define multiple_fields_changed][end]
+[for comment.amendments]
+ [if-any field_changed]
+ [define multiple_fields_changed]True[end]
+ [else]
+ [define field_changed][comment.amendments.field_name][end]
+ [end]
+[end]
+
+[if-any issue_change_id]
+ [if-any multiple_fields_changed]
+ changed
+ [else][if-any field_changed]
+ [field_changed] changed
+ [else]
+ commented on
+ [end][end]
+[else]
+ reported
+[end]
+
+[include "updates-ending.ezt"]

Powered by Google App Engine
This is Rietveld 408576698