euscanwww: Watched herds/maintainers/categories panel
* Refactored templates and templatetags * Added unfavourite views * Added button to favourite/unfavourite package * Panel for showing favourited objects Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
{% extends "euscan/_datatable.html" %}
 | 
			
		||||
 | 
			
		||||
{% load packages %}
 | 
			
		||||
{% load euscan %}
 | 
			
		||||
{% load url from future %}
 | 
			
		||||
 | 
			
		||||
{% block title %}
 | 
			
		||||
@@ -9,41 +9,7 @@
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
<h2>Maintainers</h2>
 | 
			
		||||
<table id="table" class="display">
 | 
			
		||||
  <thead>
 | 
			
		||||
    <th>Maintainer</th>
 | 
			
		||||
    <th><img src="{{ STATIC_URL }}img/gentoo-icon.png" alt="gentoo" title="Versions in Gentoo" /></th>
 | 
			
		||||
    <th><img src="{{ STATIC_URL }}img/overlay-icon.png" alt="overlays" title="Versions in Overlays" /></th>
 | 
			
		||||
    <th><img src="{{ STATIC_URL }}img/upstream-icon.png" alt="upstream" title="Versions only upstream" /></th>
 | 
			
		||||
    <th><img src="{{ STATIC_URL }}img/freshness-icon.png" title="Freshness" /></th>
 | 
			
		||||
    {% if request.GET.extras %}
 | 
			
		||||
      <th>Graphs</th>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
  </thead>
 | 
			
		||||
  <tbody>
 | 
			
		||||
  {% for maintainer in maintainers %}
 | 
			
		||||
    <tr>
 | 
			
		||||
      <td>
 | 
			
		||||
        <a href="{% url "maintainer" maintainer.maintainers__id %}">
 | 
			
		||||
          {% if maintainer.maintainers__name != maintainer.maintainers__email %}
 | 
			
		||||
            {{ maintainer.maintainers__name }} <{{ maintainer.maintainers__email }}>
 | 
			
		||||
          {% else %}
 | 
			
		||||
            {{ maintainer.maintainers__name }}
 | 
			
		||||
          {% endif %}
 | 
			
		||||
        </a>
 | 
			
		||||
        {% package_bar maintainer %}
 | 
			
		||||
      </td>
 | 
			
		||||
      {% package_cols maintainer %}
 | 
			
		||||
 | 
			
		||||
      {% if request.GET.extras %}
 | 
			
		||||
        <td>
 | 
			
		||||
          <img src="{% url "chart_maintainer" maintainer.maintainers__id 'packages-monthly-small' %}" />
 | 
			
		||||
          <img src="{% url "chart_maintainer" maintainer.maintainers__id 'versions-monthly-small' %}" />
 | 
			
		||||
        </td>
 | 
			
		||||
      {% endif %}
 | 
			
		||||
{% maintainers_table maintainers request.GET.extras %}
 | 
			
		||||
 | 
			
		||||
    </tr>
 | 
			
		||||
  {% endfor %}
 | 
			
		||||
  </tbody>
 | 
			
		||||
</table>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user