Files
@ 250db691e485
Branch filter:
Location: website/conservancy/usethesource/templates/usethesource/candidate.html - annotation
250db691e485
1.8 KiB
text/html
Document the new deployment approach
Also mentioned linkchecker.
Also mentioned linkchecker.
905e5c918d3f 905e5c918d3f 1b1e2b994fc7 1b1e2b994fc7 cc3224bb60dd cc3224bb60dd cc3224bb60dd cc3224bb60dd cc3224bb60dd 905e5c918d3f 905e5c918d3f 905e5c918d3f 905e5c918d3f 905e5c918d3f 905e5c918d3f 1b1e2b994fc7 1b1e2b994fc7 2a23a0a55ea0 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 905e5c918d3f 905e5c918d3f cc3224bb60dd cc3224bb60dd 905e5c918d3f 905e5c918d3f 905e5c918d3f dddf6058a9ba 905e5c918d3f 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 1b1e2b994fc7 905e5c918d3f 2a23a0a55ea0 cc3224bb60dd cc3224bb60dd 905e5c918d3f 905e5c918d3f | {% extends "usethesource/base.html" %}
{% block title %}{{ candidate.name }} - Software Freedom Conservancy{% endblock %}
{% block head %}
{{ block.super }}
<script src="https://unpkg.com/htmx.org@1.9.6"></script>
{% endblock %}
{% block content %}
{{ block.super }}
<section class="pa2 mt4 mb3">
<div style="display: flex; justify-content: space-between">
<div>
<div class="flex items-center">
<h2 class="f2 lh-title ttu mt0">{{ candidate.name }}</h2>
{% if user.is_staff or user.is_superuser %}<a href="{% url 'admin:usethesource_candidate_change' object_id=candidate.id %}" title="Edit candidate" class="f3 white bg-light-silver db ph2 mh2 mb3" style="transform: scaleX(-1); text-decoration: none !important">✎</a>{% endif %}
</div>
<p><strong>Vendor</strong>: {{ candidate.vendor }}</p>
<p><strong>Device</strong>: {{ candidate.device }}</p>
<p><strong>Released</strong>: {{ candidate.release_date }}</p>
</div>
<div class="mt2">
<div><a href="{% url 'usethesource:download' slug=candidate.slug download_type='source' %}" class="white bg-green db pv2 ph3 mb2">Download source</a></div>
<div><a href="{% url 'usethesource:download' slug=candidate.slug download_type='binary' %}" class="white bg-green db pv2 ph3">Download image</a></div>
</div>
</div>
{{ candidate.description|urlize|linebreaksbr }}
{% with comments=candidate.comment_set.all %}
{% if comments or user.is_staff %}<h3 class="f3 lh-title mt4">Comments</h3>{% endif %}
{% for comment in comments %}
{% include "usethesource/comment_partial.html" %}
{% endfor %}
{% endwith %}
{% if user.is_staff or user.is_superuser %}
{% include "usethesource/add_comment_button_partial.html" %}
{% endif %}
</section>
{% endblock content %}
|