summaryrefslogtreecommitdiff
path: root/patchwork/templates/patchwork/projects.html
blob: 9ce1918caad6c83bf9dc6a2f24632f6a4587ae10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{% extends "base.html" %}

{% block title %}Project List{% endblock %}
{% block body %}
<div style="margin-top:20px;"></div>
{% if projects %}
{% for p in projects %}
{% cycle '<div class="row">' '' '' %}
  <div class="col-sm-6 col-md-4">
    <div class="thumbnail">
      <div class="caption">
        <h3>{{p.name}}</h3>
        <p class="core-info">
         <span>
          <a href="{% url 'patch-list' project_id=p.linkname %}">
           View patches
          </a>
        </span>
        </p>
{% if p.web_url %}
      <p><a href="{{p.web_url}}">{{p.web_url}}</a></p>
{% endif %}
{% if p.webscm_url %}
      <p><a href="{{p.webscm_url}}">{{p.webscm_url}}</a></p>
{% endif %}
     </div>
   </div>
 </div>
{% if forloop.last %}
</div>
{% else %}
{% cycle '' '' '</div>' %}
{% endif %}
{% endfor %}
{% else %}
<p>Patchwork doesn't have any projects to display!</p>
{% endif %}
{% endblock %}