]> git.ozlabs.org Git - hiprofile/blobdiff - share/hiprofile/binary.html
Use jinja2 instead of django
[hiprofile] / share / hiprofile / binary.html
index 6e71cf77f45d0d02236961257b24e2e087592f0f..f94a7587112ad98ee674f90db11838a78701a701 100644 (file)
@@ -1,7 +1,7 @@
 {% extends "base.html" %}
 
 {% block heading %}
-Binary: {{ binary.shortname }}
+Binary: {{ binary.shortname() }}
 {% endblock %}
 
 {% block content %}
@@ -24,12 +24,12 @@ Binary: {{ binary.shortname }}
  </tr>
 {% for symbol in binary.references %}
  <tr>
-  <td><a href="{{ symbol.filename }}">{{ symbol.name }}</a></td>
+  <td><a href="{{ symbol.filename() }}">{{ symbol.name }}</a></td>
   <td>{{ symbol.count }}</td>
-  <td>{{ symbol.percentage|floatformat:2 }}</td>
+  <td>{{ "%.2f"|format(symbol.percentage) }}</td>
   <td><img src="bar.png" height="10"
-   width="{% widthratio symbol.percentage 100 100 %}"
-   alt="{{ symbol.percentage|floatformat:1 }}%"/></td>
+   width="{{ "%d"|format(symbol.percentage) }}"
+   alt="{{ "%.1f"|format(symbol.percentage) }}%"/></td>
  </tr>
 {% endfor %}
 </table>