d23464c0 Andy McCall 1 month ago ↶
1
{% extends "base.html" %}
2
{% import "repo_tabs.html" as m %}
3
{% block title %}Conflicts · {{ repo.owner }}/{{ repo.name }}{% endblock %}
4
{% block bodyattrs %} data-repo="{{ repo.url }}"{% endblock %}
5
{% block tabs %}{% call m::tabs(repo, "conflicts") %}{% endblock %}
6
{% block content %}
ffb67a81 Andy McCall 21 days ago
7
{% include "repo_backdrop.html" %}
8
< div data-backdrop-avoid >
d23464c0 Andy McCall 1 month ago ↶
9
< div class = " head " > < h1 > Conflicts < small > {{ conflicts.len() }}</ small > </ h1 > </ div >
10
{% if conflicts.is_empty() %}< p class = " empty " > No bookmark carries a conflict. Conflicts are values in Oxygen: when two changes disagree, the state records both sides and any collaborator can push a resolution.</ p > {% else %}
11
{% for c in conflicts %}
12
< section class = " file-diff " >
13
< header > < span class = " lbl lbl-bm " > {{ c.bookmark }}</ span > < strong > {{ c.path }}</ strong > < span class = " tag bad " > {{ c.kind }}</ span > </ header >
14
{% if !c.contributors.is_empty() %}< p class = " small " > Sides from: {% for x in c.contributors %}< a class = " chip " href = " {{ repo.url }}/change/{{ x.hash }}" title = " {{ x.title }}" > {{ x.short }}</ a > {% endfor %}</ p > {% endif %}
15
{% if let Some(text) = c.marked %}< pre class = " marked " > {{ text }}</ pre > {% endif %}
9e5ef6c2 Andy McCall 1 month ago ↶
16
{% if (c.kind.starts_with("name:") || c.kind.starts_with("replace")) & & repo.can(crate::auth::Access::Write) %}< p > < a class = " go small " href = " {{ repo.url }}/resolve/{{ c.bookmark }}/{{ c.path }}" > choose which to keep</ a > </ p > {% endif %}
c5f3bde4 Andy McCall 1 month ago ↶
17
{% if c.marked.is_some() & & repo.can(crate::auth::Access::Write) %}< p > < a class = " go small " href = " {{ repo.url }}/resolve/{{ c.bookmark }}/{{ c.path }}" > resolve region by region</ a > < span class = " small mute " > or < a href = " {{ repo.url }}/edit/{{ c.bookmark }}/{{ c.path }}" > edit the marked file</ a > </ span > </ p > {% endif %}
14530604 Andy McCall 1 month ago ↶
18
< p class = " small mute " > Or resolve from a client: < code > oxy bookmark switch {{ c.bookmark }}</ code > , edit the file, < code > oxy resolve</ code > , < code > oxy commit</ code > , < code > oxy push</ code > .</ p >
d23464c0 Andy McCall 1 month ago ↶
19
</ section >
20
{% endfor %}
21
{% endif %}
ffb67a81 Andy McCall 21 days ago
22
</ div >
d23464c0 Andy McCall 1 month ago ↶
23
{% endblock %}