OXYGENHUB
◆ v0.9.16 oxygenhub / templates / drops.html
1.6 KiB · HTML · last changed OxygenHub 0.6.1 15 days ago source blame history raw
166f6e9b Andy McCall 1
{% extends "base.html" %}
2
{% block title %}Drops · {{ owner }}{% endblock %}
3
{% block content %}
a549ddd5 Andy McCall ↶ 4
<div class="head with-action"><h1><a href="/{{ owner }}">{{ owner }}</a> / Drops <small>{% if is_me %}snippets of one or more files, each its own repository{% else %}public drops{% endif %}</small></h1>{% if is_me %}<a class="go primary" href="/drops/new">+ NEW DROP</a>{% endif %}</div>
166f6e9b Andy McCall 5
{% if let Some(n) = notice %}<div class="strip">{{ n }}</div>{% endif %}
6
{% if is_me %}<p class="small mute">A drop is a small Oxygen repository: every edit is a signed change with history, and <code>oxy clone</code> takes its address. Drops never appear among your repositories. A secret drop is listed nowhere and readable by anyone with its address.</p>{% endif %}
7
<section class="card-box"><div class="card-head"><h2>Drops</h2><span class="count-chip">{{ drops.len() }}</span></div>
8
{% if drops.is_empty() %}
9
<p class="empty small">{% if is_me %}No drops yet.{% else %}No public drops.{% endif %}</p>
10
{% else %}
11
<ul class="rows drops">
12
{% for d in drops %}
13
  <li>
14
    <div>
15
      <a class="name" href="{{ d.url }}"><strong>{{ d.title }}</strong></a>
16
      {% if d.secret %}<span class="tag" title="Listed nowhere; readable by anyone with its address">secret</span>{% endif %}
17
      {% if !d.description.is_empty() %}<p class="small">{{ d.description }}</p>{% endif %}
18
      <p class="small mute">{% for f in d.files %}<code>{{ f }}</code>{% if !loop.last %} · {% endif %}{% endfor %}</p>
19
    </div>
20
    <div class="right small">updated <time title="{{ d.updated_ms|when_i }}">{{ d.updated_ms|ago_i }}</time></div>
21
  </li>
22
{% endfor %}
23
</ul>
24
{% endif %}
25
</section>
26
{% endblock %}