de505df5 Andy McCall 1 month ago ↶
1
{% extends "base.html" %}
2
{% import "repo_tabs.html" as m %}
3
{% block title %}Proposals · {{ repo.owner }}/{{ repo.name }}{% endblock %}
4
{% block bodyattrs %} data-repo="{{ repo.url }}"{% endblock %}
5
{% block tabs %}{% call m::tabs(repo, "proposals") %}{% endblock %}
6
{% block content %}
7
< div class = " head " > < h1 > Proposals < small > changes offered for a bookmark; they never go stale</ small > </ h1 > </ div >
8
< div class = " bar " >
9
< span class = " modes " >
10
< a href = " ?state=open" {% if filter = = "open" %} class = " on " {% endif %}> {{ counts.0 }} open</ a >
11
< a href = " ?state=landed" {% if filter = = "landed" %} class = " on " {% endif %}> {{ counts.1 }} landed</ a >
12
< a href = " ?state=closed" {% if filter = = "closed" %} class = " on " {% endif %}> {{ counts.2 }} closed</ a >
13
</ span >
14
{% if shell.user.is_some() %}< a class = " go small " href = " {{ repo.url }}/proposals/new" > new proposal</ a > {% endif %}
15
</ div >
16
{% if rows.is_empty() %}
17
< p class = " empty " > No {{ filter }} proposals. Push a bookmark, then < a href = " {{ repo.url }}/proposals/new" > propose it</ a > for {{ repo.default_bookmark }}.{% if bookmarks.len() > 1 %} Bookmarks here: {% for b in bookmarks %}< a href = " {{ repo.url }}/proposals/new?source={{ b }}" > {{ b }}</ a > {% if !loop.last %}, {% endif %}{% endfor %}.{% endif %}</ p >
18
{% else %}
19
< ul class = " rows " >
20
{% for p in rows %}
21
< li >
22
< div >
23
< a class = " name " href = " {{ repo.url }}/proposal/{{ p.number }}" > < span class = " mute " > #{{ p.number }}</ span > < strong > {{ p.title }}</ strong > </ a >
24
{% if p.state == "draft" %}< span class = " tag " > draft</ span > {% endif %}
25
{% if p.conflicted %}< span class = " tag bad " > conflicts</ span > {% endif %}
26
< p class = " small " > {{ p.author }} wants < span class = " lbl lbl-bm " > {{ p.source_bookmark }}</ span > into < span class = " lbl lbl-bm " > {{ p.target }}</ span > · {{ p.projected_changes().len()|plural("change", "changes") }}</ p >
27
</ div >
28
< div class = " right small " > updated < time title = " {{ p.updated_ms|when_i }}" > {{ p.updated_ms|ago_i }}</ time > </ div >
29
</ li >
30
{% endfor %}
31
</ ul >
32
{% endif %}
33
{% endblock %}