{# Expects: owner, repo, branch, latest_commit: Option, access, upload_path, commit_count #}
{{ branch }}
{% if upload_path != "" %} download folder {% else %} download {% endif %} {% if access.can_write() %}
upload
{% endif %}
{% if let Some(c) = latest_commit %}
{% if let Some(uname) = c.author_username %} {{ c.author }} {% else %} {{ c.author }} {% endif %} {{ c.message }}
{{ c.short_id }} {% let show_unverified = false %} {% include "partials/verified_badge.html" %} {{ commit_count }} commits
{% endif %}