Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
202ab2e0
Commit
202ab2e0
authored
5 years ago
by
Stephan Porada
Browse files
Options
Downloads
Patches
Plain Diff
Add download icons to job page download buttons.
parent
1f9137be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/templates/main/corpora/corpus.html.j2
+16
-7
16 additions, 7 deletions
app/templates/main/corpora/corpus.html.j2
app/templates/main/jobs/job.html.j2
+2
-2
2 additions, 2 deletions
app/templates/main/jobs/job.html.j2
with
18 additions
and
9 deletions
app/templates/main/corpora/corpus.html.j2
+
16
−
7
View file @
202ab2e0
...
@@ -110,13 +110,22 @@
...
@@ -110,13 +110,22 @@
</div>
</div>
</div>
</div>
<span class="card-title">Files</span>
<span class="card-title">Files</span>
<p>
<table>
{% for file in files %}
<thead>
<a href="{{ url_for('main.corpus_download', corpus_id=corpus.id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small">
<tr>
<i class="material-icons left">file_download</i>{{ file }}
<th style="width: 50%;">Inputs</th>
</a>
</tr>
{% endfor %}
</thead>
</p>
<tbody>
{% for file in files %}
<tr>
<td>
<a href="{{ url_for('main.corpus_download', corpus_id=corpus.id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small"><i class="material-icons left">file_download</i>{{ file }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
...
...
This diff is collapsed.
Click to expand it.
app/templates/main/jobs/job.html.j2
+
2
−
2
View file @
202ab2e0
...
@@ -208,12 +208,12 @@
...
@@ -208,12 +208,12 @@
{% for file in files %}
{% for file in files %}
<tr>
<tr>
<td>
<td>
<a href="{{ url_for('main.job_download', job_id=job.id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small">{{ file }}</a>
<a href="{{ url_for('main.job_download', job_id=job.id, file=files[file]['path']) }}" class="waves-effect waves-light btn-small">
<i class="material-icons left">file_download</i>
{{ file }}</a>
</td>
</td>
<td>
<td>
{% if job.status == 'complete' %}
{% if job.status == 'complete' %}
{% for result in files[file]['results'] %}
{% for result in files[file]['results'] %}
<a href="{{ url_for('main.job_download', job_id=job.id, file=files[file]['results'][result]['path']) }}" class="waves-effect waves-light btn-small">{{ result }}</a>
<a href="{{ url_for('main.job_download', job_id=job.id, file=files[file]['results'][result]['path']) }}" class="waves-effect waves-light btn-small">
<i class="material-icons left">file_download</i>
{{ result }}</a>
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
</td>
</td>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment