hobo/hobo/applications/templates/hobo/applications/manifest.html

63 lines
2.2 KiB
HTML

{% extends "hobo/applications/home.html" %}
{% load i18n %}
{% block breadcrumb %}
{{ block.super }}
<a href="{% url 'application-manifest' app_slug=app.slug %}">{{ app.name }}</a>
{% endblock %}
{% block appbar %}
<h2>{{ app.name }}</h2>
<span class="actions">
<a rel="popup" href="{% url 'application-metadata' app_slug=app.slug %}">{% trans 'Metadata' %}</a>
</span>
{% endblock %}
{% block content %}
<ul class="objects-list single-links">
{% for relation in relations %}
{% if not relation.auto_dependency %}
<li><a>{{ relation.element.name }} <span class="extra-info">- {{ relation.element.type_label }}</span></a>
<a rel="popup" class="delete" href="{% url 'application-delete-element' app_slug=app.slug pk=relation.id %}">{% trans "remove" %}</a></li>
{% endif %}
{% endfor %}
{% for relation in relations %}
{% if relation.auto_dependency %}
<li class="auto-dependency"><a>{{ relation.element.name }} <span class="extra-info">- {{ relation.element.type_label }}</span></a></li>
{% endif %}
{% endfor %}
</ul>
{% if relations %}
<div class="buttons">
<a class="pk-button" href="{% url 'application-scandeps' app_slug=app.slug %}">{% trans "Scan dependencies" %}</a>
&nbsp; &nbsp;
<a class="pk-button" href="{% url 'application-generate' app_slug=app.slug %}">{% trans "Generate application bundle" %}</a>
{% if versions %}
&nbsp; &nbsp;
<a class="pk-button" download href="{% url 'application-download' app_slug=app.slug %}">{% trans "Download" %}</a>
{% endif %}
</div>
{% else %}
<div id="application-empty">
<div class="infonotice">
<p>{% trans "You should now assemble the different parts of your application." %}</p>
</div>
</div>
{% endif %}
{% endblock %}
{% block sidebar %}
<aside id="sidebar">
<h3>{% trans "Add" %}</h3>
{% for service, types in types_by_service.items %}
<h4>{{ service }}</h4>
{% for type in types %}
<a class="button button-paragraph" rel="popup" href="{% url 'application-add-element' app_slug=app.slug type=type.id %}">{{ type.text }}</a>
{% endfor %}
{% endfor %}
</aside>
{% endblock %}