12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- {% extends "base.html" %}
- {%block head%}
- <script src="{{ url_for('static', filename='script/artifacts.js') }}"></script>
- {%endblock%}
- {%block title%}{{selected_project.info.name}}{%endblock%}
- {%block content%}
- <div class="content">
- <div class="readme">
- {%- if readme %}
- {{readme|safe}}
- {%-else%}
- <h1>{{selected_project.info.name}}</h1>
- <p>
- Here you can find artifacts for project "{{selected_project.info.name}}"
- </p>
- {%-endif%}
- </div>
- </div>
- <h1 class="is-size-2">Artifacts</h1>
- <hr class="content-divider" />
- {%-for artifact in artifacts %}
- <div class="artifact-item">
- <div class="artifact-details">
- <div class="artifact-id">
- <p class="is-size-5">#{{artifact.id}}</p>
- </div>
- <div class="artifact-info">
- <div class="artifact-info-content" style="align-items: center">
- <p>Build date: {{artifact.date}}</p>
- <div class="dropdown-button">
- <i class="fas fa-chevron-down fa-lg"></i>
- </div>
- </div>
- </div>
- </div>
- <div class="artifact-contents" style="display: none">
- <div class="column content">
- <h2>Downloads</h2>
- <div>
- <table class="table is-hoverable is-striped is-bordered is-narrow">
- <thead>
- <tr>
- <th>Artifact</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- {%-for download_item in artifact.artifacts%}
- <tr>
- <td><a class="button is-link" href="{{ url_for('download_item', project_id=selected_project.id, artifact_id=artifact.id, download_item=download_item.file)}}">{{download_item.file}}</a></td>
- <td>{{download_item.description}}</td>
- </tr>
- {%-endfor%}
- </tbody>
- </table>
- </div>
- {%- if artifact.changelog %}
- <h2>Changelog</h2>
- <p>
- {{artifact.changelog|safe}}
- </p>
- {%- endif %}
- </div>
- </div>
- </div>
- {%-endfor%}
- {%endblock%}
|