Source

sumatra-wiki / sumatra_wiki / templates / record_detail.html

{% extends "base.html" %}
{% load filters %}

{% block title %}{{project_name}}: {{record.label}}{% endblock %}

{% block header %}
<form action='{{ request.path }}' method='POST'>
<h1>{{project_name}}: <i>{{record.label}}</i></h1>
<input type="submit" value='Save changes' class="headeritem">
<input type="submit" value='Delete' class="headeritem" name="delete">
{% endblock %}

{% block content %}

{% with record.get_previous_by_timestamp as previous %}{% with record.get_next_by_timestamp as next %}
<p>{% if previous %}<a href="../{{previous|escapeslash}}/"><img src="/media/Go-previous.png" alt="previous record"/></a> {% endif %}
{% if next %}<a href="../{{next|escapeslash}}/"><img src="/media/Go-next.png" alt="next record"/></a> {% endif %}
<a href="/">Return to record list</a></p>
{% endwith %}{% endwith %}

{{form.errors}}

<table>
    <tr><th>Label:</th><td>{{record.label}}</td></tr>
    <tr><th>Reason:</th><td>{{form.reason}}</td></tr>
    <tr><th>Outcome:</th><td>{{form.outcome}}</td></tr>
    <tr><th>Timestamp:</th><td>{{record.timestamp|date:"d/m/Y H:i:s"}}</td></tr>
    <tr><th>Duration:</th><td>{{record.duration|floatformat:"2"}}&nbsp;s</td></tr>
    <tr><th>Executable:</th><td>{{record.executable.name}} version {{record.executable.version}} ({{record.executable.path}})</td></tr>
    <tr><th>Launch mode:</th><td>{% ifequal record.launch_mode.type "SerialLaunchMode" %}serial{% else %}distributed, n={{record.launch_mode.get_parameters.n}}{% endifequal %}</td></tr>
    <tr><th>Repository:</th><td>{{record.repository.url}}</td></tr>
    <tr><th>Main file:</th><td>{{record.main_file}}</td></tr>
    <tr><th>Version:</th><td>{{record.version}}{% if record.diff %}* (<a href="diff/">diff</a>){% endif %}</td></tr>
    <tr><th>Arguments:</th><td>{{record.script_arguments}}</td></tr>
    <tr><th>Tags:</th><td>{{form.tags}}</td></tr>
</table>

</form>

<h2>Data files</h2>
<table>
  <tr><td colspan="3">{{record.datastore.access_parameters.root}}</td></tr>
{% for file in datafiles %}
  <tr class="{% cycle odd even %}"><td><a href="datafile?path={{file}}">{{file}}</a></td>
                                   <td>{{file.mimetype|default:""}}</td>
                                   <td>{{file.size|filesizeformat}}</td></tr>
{% endfor %}
</table>

<h2>Parameters</h2>
{% for name, value in parameters.items %}
{{name}} = {{value}}<br>{% endfor %}
                        
<h2>Dependencies</h2>
<table>
<tr><th>Name</th><th>Path</th><th>Version</th></tr>
{% for dep in record.dependencies.all %}
<tr><td>{{dep.name}}</td><td>{{dep.path}}</td><td>{{dep.version}}{% if dep.diff %}* (<a href="diff/{{dep.name}}">diff</a>){% endif %}</td></tr>{% endfor %}
</table>

<h2>Platform information</h2>
<table>
<tr><th>Name</th><th>IP address</th><th>Processor</th>
    <th colspan="2">Architecture</th><th>System type</th>
    <th>Release</th><th>Version</th>
</tr>
{% for platform in record.platforms.all %}
<tr><td>{{platform.network_name}}</td>
    <td>{{platform.ip_addr}}</td>
    <td>{{platform.processor}} {{platform.machine}}</td>
    <td>{{platform.architecture_bits}}</td>
    <td>{{platform.architecture_linkage}}</td>
    <td>{{platform.system_name}}</td>
    <td>{{platform.release}}</td>
    <td>{{platform.version}}</td>
</tr>{% endfor %}
</table>

{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.