diff options
Diffstat (limited to 'static/website/templates/ajax-revisions.html')
-rw-r--r-- | static/website/templates/ajax-revisions.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/static/website/templates/ajax-revisions.html b/static/website/templates/ajax-revisions.html new file mode 100644 index 0000000..d48c6c4 --- /dev/null +++ b/static/website/templates/ajax-revisions.html @@ -0,0 +1,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> |