feat: add import template download link
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
{% else %}
|
||||
<a class="btn btn-outline-secondary btn-lg disabled" aria-disabled="true" href="#download">客户端下载暂未发布</a>
|
||||
{% endif %}
|
||||
{% if current_import_template_download_url %}
|
||||
<a class="btn btn-outline-secondary btn-lg" href="{{ current_import_template_download_url }}">下载导入模板</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="home-proof" aria-label="服务要点">
|
||||
<span class="home-chip">注册送 100 点</span>
|
||||
@@ -140,6 +143,9 @@
|
||||
<p>当前版本已发布,可下载后填入 cmhub API Key 使用。</p>
|
||||
<div class="home-actions">
|
||||
<a class="btn btn-primary" href="{{ current_release.download_url }}">下载客户端</a>
|
||||
{% if current_import_template_download_url %}
|
||||
<a class="btn btn-outline-secondary" href="{{ current_import_template_download_url }}">下载导入模板</a>
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<a class="btn btn-outline-secondary" href="{% url 'portal-apikeys' %}">管理 API Key</a>
|
||||
{% else %}
|
||||
@@ -170,6 +176,9 @@
|
||||
<p>后台尚未配置当前 Windows 版本。发布后这里会展示版本号、下载按钮、SHA256 和版本说明。</p>
|
||||
<div class="home-actions">
|
||||
<a class="btn btn-primary disabled" aria-disabled="true" href="#">暂未发布</a>
|
||||
{% if current_import_template_download_url %}
|
||||
<a class="btn btn-outline-secondary" href="{{ current_import_template_download_url }}">下载导入模板</a>
|
||||
{% endif %}
|
||||
{% if user.is_authenticated %}
|
||||
<a class="btn btn-outline-secondary" href="{% url 'portal-dashboard' %}">进入控制台</a>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user