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

Unified Diff: appengine/monorail/templates/framework/artifact-list-group-row.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/framework/artifact-list-group-row.ezt
diff --git a/appengine/monorail/templates/framework/artifact-list-group-row.ezt b/appengine/monorail/templates/framework/artifact-list-group-row.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..09b36efc7cc165951c262a2fe25b11ab28d434df
--- /dev/null
+++ b/appengine/monorail/templates/framework/artifact-list-group-row.ezt
@@ -0,0 +1,33 @@
+[# Display a group header row, if this is the start of a new group of rows.
+
+Args:
+ arg0: singular form of artifact type name.
+ arg1: plural form of artifact type name.
+]
+
+[if-any table_data.group][if-any table_data.group.cells]
+ <tbody class="opened"> [# The next tbody implicitly closes this one]
+ <tr class="group_row">
+ <td colspan="100" class="toggleHidden">
+ <img class="ifClosed" src="/static/images/plus.gif">
+ <img class="ifOpened" src="/static/images/minus.gif">
+ [table_data.group.rows_in_group]
+ [is table_data.group.rows_in_group "1"][arg0][else][arg1][end]:
+ [for table_data.group.cells]
+ [define any_group_value]No[end]
+ [for table_data.group.cells.values]
+ [if-any table_data.group.cells.values.item]
+ [define any_group_value]Yes[end]
+ [end]
+ [end]
+ [is any_group_value "Yes"]
+ [for table_data.group.cells.values]
+ [table_data.group.cells.group_name]=[table_data.group.cells.values.item]
+ [end]
+ [else]
+ -has:[table_data.group.cells.group_name]
+ [end]
+ [end]
+ </td>
+ </tr>
+[end][end]

Powered by Google App Engine
This is Rietveld 408576698