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

Unified Diff: appengine/machine_provider/templates/macros.html

Issue 2517483002: Add missing macros.html (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/machine_provider/templates/macros.html
diff --git a/appengine/machine_provider/templates/macros.html b/appengine/machine_provider/templates/macros.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e85c7c0e56dbbbac53f3b70d579a0c182694478
--- /dev/null
+++ b/appengine/machine_provider/templates/macros.html
@@ -0,0 +1,7 @@
+{% macro render_message(message) %}
+ {% for field in message.all_fields()|sort(attribute='name') %}
+ {% if message.get_assigned_value(field.name) %}
+ <strong>{{field.name}}</strong>: {{message.get_assigned_value(field.name)}}<br />
+ {% endif %}
+ {% endfor %}
+{% endmacro %}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698