| 1 |
<!doctype html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta charset="utf-8"> |
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 |
<title>{{ title }} · {{ owner }}'s drop</title> |
| 7 |
<link rel="stylesheet" href="/static/style.css?v={{ assets }}"> |
| 8 |
</head> |
| 9 |
<body class="drop-embedded"> |
| 10 |
<header class="embed-head"><a href="{{ url }}" target="_blank" rel="noopener"><strong>{{ title }}</strong></a> <span class="small mute">a drop by {{ owner }} on <a href="{{ site_url }}" target="_blank" rel="noopener">{{ site }}</a></span></header> |
| 11 |
{% for f in files %} |
| 12 |
<section class="filebox drop-filebox"> |
| 13 |
<header><strong>{{ f.path }}</strong> <span class="small mute">{{ f.size|bytes }}{% if let Some(l) = f.language %} · {{ l }}{% endif %}</span></header> |
| 14 |
{% if let Some(html) = f.markdown %} |
| 15 |
<article class="doc">{{ html|safe }}</article> |
| 16 |
{% else if let Some(note) = f.note %} |
| 17 |
<p class="empty">{{ note }} <a href="{{ url }}" target="_blank" rel="noopener">Open the drop</a>.</p> |
| 18 |
{% else %} |
| 19 |
<table class="code"> |
| 20 |
{% for line in f.lines %} |
| 21 |
<tr><td class="n">{{ loop.index }}</td><td class="t"><pre>{{ line|safe }}</pre></td></tr> |
| 22 |
{% endfor %} |
| 23 |
</table> |
| 24 |
{% endif %} |
| 25 |
</section> |
| 26 |
{% endfor %} |
| 27 |
</body> |
| 28 |
</html> |