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
44688eff
Commit
44688eff
authored
4 years ago
by
Stephan Porada
Browse files
Options
Downloads
Patches
Plain Diff
Add more cosmetics
parent
b99bfd98
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/app/templates/jobs/job.html.j2
+44
-19
44 additions, 19 deletions
web/app/templates/jobs/job.html.j2
with
44 additions
and
19 deletions
web/app/templates/jobs/job.html.j2
+
44
−
19
View file @
44688eff
...
@@ -106,12 +106,27 @@
...
@@ -106,12 +106,27 @@
<p>Processed result files.</p>
<p>Processed result files.</p>
</div>
</div>
<div class="col s12 m10">
<div class="col s12 m10">
<div class="results row">
<table class="highlight responsive-table">
<div class="show-if-only-child">
<thead>
<span class="card-title"><i class="left material-icons" style="font-size: inherit;">file_download</i>Nothing here...</span>
<tr>
<p>No results available (yet). Is the job already completed?</p>
<th>Result Type</th>
</div>
<th>Archive Name</th>
</div>
<th>Download</th>
</tr>
</thead>
<tbody class="results">
<tr class="show-if-only-child">
<td colspan="3">
<span class="card-title">
<i class="left material-icons" style="font-size: inherit;">file_download</i>Nothing here...
</span>
<p>
No results available (yet). Is the job already completed?
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -214,27 +229,37 @@ var options = {page: 5,
...
@@ -214,27 +229,37 @@ var options = {page: 5,
if (a.filename > b.filename) {return 1;}
if (a.filename > b.filename) {return 1;}
return 0;
return 0;
});
});
resultsHTML =
""
;
resultsHTML =
``
;
for (let result of resultsArray) {
for (let result of resultsArray) {
if (result.filename.endsWith(".pdf.zip")) {
if (result.filename.endsWith(".pdf.zip")) {
resultType = "PDF";
resultType = "PDF
file with text layer
";
} else if (result.filename.endsWith(".txt.zip")) {
} else if (result.filename.endsWith(".txt.zip")) {
resultType = "
TXT
";
resultType = "
Raw text files
";
} else if (result.filename.endsWith(".vrt.zip")) {
} else if (result.filename.endsWith(".vrt.zip")) {
resultType = "VRT";
resultType = "VRT
(XML dialect) files holding the NLP data
";
} else if (result.filename.endsWith(".xml.zip")) {
} else if (result.filename.endsWith(".xml.zip")) {
resultType = "XML";
resultType = "XML
files
";
} else if (result.filename.endsWith(".poco.zip")) {
} else if (result.filename.endsWith(".poco.zip")) {
resultType = "
POCO
";
resultType = "
HCOR und image files needed for Post correction(PoCo)
";
} else {
} else {
resultType = "A
LL
";
resultType = "A
ll result files created during this job
";
}
}
resultsHTML += `<div class="col s4 m3 l2">
resultsHTML += `
<a class="btn waves-effect waves-light" download href="/jobs/${result.job_id}/results/${result.id}/download">
<tr>
<i class="material-icons left">file_download</i>${resultType}
<td>${resultType}</td>
</a>
<td>${result.filename}</td>
</div>`;
<td>
}
<a class="btn-floating waves-effect waves-light" download href="/jobs/${result.job_id}/results/${result.id}/download">
<i class="material-icons left">file_download</i>
</a>
</td>
</tr>
`;
};
resultsHTML += `
</tbody>
</table>
`;
resultsElements = document.querySelectorAll(".results");
resultsElements = document.querySelectorAll(".results");
for (let resultsElement of resultsElements) {
for (let resultsElement of resultsElements) {
resultsElement.innerHTML += resultsHTML;
resultsElement.innerHTML += resultsHTML;
...
...
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