Mercurial > hg > ltpdarepo
view src/ltpdarepo/templates/obj.html @ 230:5c5f6d93d9d4
Add hg revision id to version string for dev builds.
author | Daniele Nicolodi <daniele@grinta.net> |
---|---|
date | Wed, 30 Nov 2011 09:41:29 +0100 |
parents | b666c4b27e33 |
children |
line wrap: on
line source
{% extends "layout.html" %} {% block title %}{{ obj.name }}{% endblock %} {% block body %} <h2>Database «{{ database.id }}» object «{{ obj.name }}»</h2> <table class="obj"> {% for field in fields %} <tr><th id="{{ field }}">{{ field }}:</th><td>{{ obj[field] is not none and obj[field] or '' }}</td></tr> {% endfor %} <tr> <th>xml:</th> <td> {% if obj.xml %} <a href="{{ url_for('browse.download', frmt='xml', database=database.id, objid=obj.id) }}">download</a> {% else %} NA {% endif %} </td> </tr> <tr> <th>binary:</th> <td> {% if obj.mat %} <a href="{{ url_for('browse.download', frmt='mat', database=database.id, objid=obj.id) }}">download</a> {% else %} NA {% endif %} </td> </tr> </table> {% endblock %}