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

Unified Diff: appengine/isolate/templates/isolated.html

Issue 2693953006: Isolate: Download files as their filename instead of hash (Closed)
Patch Set: Isolate: Download files as their filename instead of hash Created 3 years, 9 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
« no previous file with comments | « appengine/isolate/templates/browse.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/isolate/templates/isolated.html
diff --git a/appengine/isolate/templates/isolated.html b/appengine/isolate/templates/isolated.html
new file mode 100644
index 0000000000000000000000000000000000000000..644635150b9b5d1a79e7cceabf85d311f7a2a409
--- /dev/null
+++ b/appengine/isolate/templates/isolated.html
@@ -0,0 +1,47 @@
+{% block headers %}
+<style>
+ th, td {
+ padding: 5px;
+ }
+ tr:nth-child(even) {
+ background-color: #f2f2f2;
+ }
+ table {
+ overflow-x: auto;
+ }
+</style>
+{% endblock %}
+{% block body %}
+<div style="font-family:monospace;white-space:pre-wrap;">command:
+ {{isolated.get('command', '')|join('\n ')}}
+algo: {{isolated.get('algo', '')}}
+includes:
+{% for digest in isolated.get('includes', '') %}
+ <a target="_blank" href="/browse?namespace{{namespace}}&digest={{digest}}">{{digest}}</a>
+{% endfor %}
+read_only: {{isolated.get('read_only', '')}}
+relative_cwd: {{isolated.get('relative_cwd', '')}}
+version: {{isolated.get('version', '')}}
+<table>
+ <thead><tr><th>file</th><th>digest</th><th>mode</th><th>size</th><th>symlink</th><th>filetype</th></tr></thead>
+ <tbody>
+ {% for filepath, file in isolated.files.iteritems() %}
+ <tr>
+ <td>
+ {% if 'h' in file %}
+ <a target="_blank" href="/browse?namespace={{namespace}}&digest={{file.h}}&as={{filepath|basename|urlencode}}">{{filepath}}</a>
+ {% else %}
+ {{filepath}}
+ {% endif %}
+ </td>
+ <td>{{file.get('h', '')}}</td>
+ <td>{{file.get('m', '')}}</td>
+ <td>{{file.get('s', '')}}</td>
+ <td>{{file.get('l', '')}}</td>
+ <td>{{file.get('t', '')}}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+</table>
+</div>
+{% endblock %}
« no previous file with comments | « appengine/isolate/templates/browse.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698