Commit e7af168a authored by Michal Čihař's avatar Michal Čihař

Place widget into breadcrumbs/title field

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent e677ac00
......@@ -4,16 +4,16 @@
{% block breadcrumbs %}
<li><a href="{{ object.get_absolute_url }}">{{ object }}</a></li>
<a class="pull-right" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image' project=object.slug widget='shields' color='badge' extension='svg' %}" />
</a>
{% endblock %}
{% block content %}
<h2>{% trans "Project Information" %}</h2>
<a class="menu-float" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image' project=object.slug widget='shields' color='badge' extension='svg' %}" />
</a>
<table class="info">
{% include "project_info.html" %}
</table>
......
......@@ -5,6 +5,10 @@
{% block breadcrumbs %}
<li><a href="{{ object.project.get_absolute_url }}">{{ object.project }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{{ object.name }}</a></li>
<a class="pull-right" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image' project=object.project.slug widget='shields' color='badge' extension='svg' %}" />
</a>
{% endblock %}
{% block content %}
......@@ -12,10 +16,6 @@
<h2>{% trans "Project Information" %}</h2>
<a class="menu-float" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image' project=object.project.slug widget='shields' color='badge' extension='svg' %}" />
</a>
<table class="info">
{% include "subproject_info.html" %}
</table>
......
......@@ -7,15 +7,15 @@
<li><a href="{{ object.subproject.project.get_absolute_url }}">{{ object.subproject.project }}</a></li>
<li><a href="{{ object.subproject.get_absolute_url }}">{{ object.subproject.name }}</a></li>
<li><a href="{{ object.get_absolute_url }}">{{ object.language }}</a></li>
<a class="pull-right" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image-lang' project=object.subproject.project.slug widget='shields' color='badge' lang=object.language.code extension='svg' %}" />
</a>
{% endblock %}
{% block content %}
{% include "show-lock.html" %}
<a class="menu-float" href="{{ object.get_widgets_url }}">
<img src="{% url 'widget-image-lang' project=object.subproject.project.slug widget='shields' color='badge' lang=object.language.code extension='svg' %}" />
</a>
<div class="row">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment