blob: d48c6c4f5da25762e31de6ba9e4b5d0a3c9d611b (
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
|
<div id="revisions-one">
<label>Revision: </label>
<select id="revisions">
<option value="">Select a revision</option>
{% for revision in revisions %}
{% if revision.sha == commit_sha %}
<option value="{{ revision.sha }}"
selected>{{ forloop.counter }} - {{ revision.commit.message }}</option>
{% else %}
<option value="{{ revision.sha }}">
{{ forloop.counter }} - {{ revision.commit.message }}
</option>
{% endif %}
{% endfor %}
</select>
</div>
<div id="revisions-two">
<label>Diff with: </label>
<select id="revisions-diff">
<option value="">Select a revision</option>
{% for revision in revisions %}
<option value="{{ revision.sha }}">
{{ forloop.counter }} - {{ revision.commit.message }}
</option>
{% endfor %}
</select>
</div>
|