|
@@ -1,8 +1,7 @@
|
|
{% extends "base.html" %}
|
|
{% extends "base.html" %}
|
|
|
|
|
|
{%block head%}
|
|
{%block head%}
|
|
-<link rel="stylesheet" href="{{ url_for('static', filename='style/fontello/css/fontello.css') }}"" />
|
|
|
|
-</script>
|
|
|
|
|
|
+<link rel="stylesheet" href="{{ url_for('static', filename='style/fontello.css') }}">
|
|
{%endblock%}
|
|
{%endblock%}
|
|
|
|
|
|
{%block title%}{{selected_project.info.name}}{%endblock%}
|
|
{%block title%}{{selected_project.info.name}}{%endblock%}
|
|
@@ -30,15 +29,13 @@
|
|
{%-if artifact.hash%}
|
|
{%-if artifact.hash%}
|
|
<a class="hash-button" href="{{selected_project.info.commit_url}}/{{artifact.hash}}">{{artifact.hash[:8]}}</a>
|
|
<a class="hash-button" href="{{selected_project.info.commit_url}}/{{artifact.hash}}">{{artifact.hash[:8]}}</a>
|
|
{%-endif%}
|
|
{%-endif%}
|
|
- <span>Build date: <span class="build-date">{{artifact.date}}</span></span>
|
|
|
|
- <span class="icon-down-open"></span>
|
|
|
|
|
|
+ <span class="build-date-text">Build date: <span class="build-date">{{artifact.date}}</span></span>
|
|
|
|
+ <span class="icon-downup icon-down-open"></span>
|
|
</div>
|
|
</div>
|
|
<div class="artifact-contents content">
|
|
<div class="artifact-contents content">
|
|
<h2>Downloads</h2>
|
|
<h2>Downloads</h2>
|
|
|
|
|
|
<div class="artifacts-list">
|
|
<div class="artifacts-list">
|
|
- <span class="artifacts-head">Artifact</span>
|
|
|
|
- <span class="artifacts-desc">Description</span>
|
|
|
|
{%-for download_item in artifact.artifacts%}
|
|
{%-for download_item in artifact.artifacts%}
|
|
<a class="artifact-link"
|
|
<a class="artifact-link"
|
|
href="{{ url_for('download_item', project_id=selected_project.id, artifact_id=artifact.id, download_item=download_item.file)}}">{{download_item.file}}</a>
|
|
href="{{ url_for('download_item', project_id=selected_project.id, artifact_id=artifact.id, download_item=download_item.file)}}">{{download_item.file}}</a>
|
|
@@ -48,7 +45,7 @@
|
|
</div>
|
|
</div>
|
|
{%- if artifact.changelog %}
|
|
{%- if artifact.changelog %}
|
|
<h2>Changelog</h2>
|
|
<h2>Changelog</h2>
|
|
- <p>
|
|
|
|
|
|
+ <p class="changelog">
|
|
{{artifact.changelog|safe}}
|
|
{{artifact.changelog|safe}}
|
|
</p>
|
|
</p>
|
|
{%- endif %}
|
|
{%- endif %}
|
|
@@ -69,16 +66,23 @@
|
|
for (let artifact of artifacts) {
|
|
for (let artifact of artifacts) {
|
|
let contents = artifact.querySelector(".artifact-contents");
|
|
let contents = artifact.querySelector(".artifact-contents");
|
|
let details = artifact.querySelector(".artifact-details");
|
|
let details = artifact.querySelector(".artifact-details");
|
|
|
|
+ let icon = details.querySelector(".icon-downup");
|
|
if (!contents || !(contents instanceof HTMLElement))
|
|
if (!contents || !(contents instanceof HTMLElement))
|
|
continue;
|
|
continue;
|
|
details.addEventListener("click", e => {
|
|
details.addEventListener("click", e => {
|
|
if(e.target instanceof HTMLElement && e.target.nodeName.toUpperCase() == "A")
|
|
if(e.target instanceof HTMLElement && e.target.nodeName.toUpperCase() == "A")
|
|
return;
|
|
return;
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
- if (contents.classList.contains("contents-visible"))
|
|
|
|
|
|
+ if (contents.classList.contains("contents-visible")) {
|
|
contents.classList.remove("contents-visible");
|
|
contents.classList.remove("contents-visible");
|
|
- else
|
|
|
|
|
|
+ icon.classList.remove("icon-up-open");
|
|
|
|
+ icon.classList.add("icon-down-open");
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
contents.classList.add("contents-visible");
|
|
contents.classList.add("contents-visible");
|
|
|
|
+ icon.classList.remove("icon-down-open");
|
|
|
|
+ icon.classList.add("icon-up-open");
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|