forked from rsarky/patchwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprojects.html
More file actions
38 lines (37 loc) · 899 Bytes
/
Copy pathprojects.html
File metadata and controls
38 lines (37 loc) · 899 Bytes
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 %}