Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
oetzit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
commul
oetzit
Commits
e552d509
Commit
e552d509
authored
2 years ago
by
Paolo Brasolin
Browse files
Options
Downloads
Patches
Plain Diff
feat: status markers on dashboard
parent
f4bc4097
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
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
backend/templates/dashboard.ejs
+11
-3
11 additions, 3 deletions
backend/templates/dashboard.ejs
with
15 additions
and
3 deletions
CHANGELOG.md
+
4
−
0
View file @
e552d509
...
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
...
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [Unreleased]
### Added
-
Add status markers on dashboard distributions list.
## [1.6.0] - 2022-07-18
## [1.6.0] - 2022-07-18
### Added
### Added
...
...
This diff is collapsed.
Click to expand it.
backend/templates/dashboard.ejs
+
11
−
3
View file @
e552d509
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
<div
class=
"card text-dark bg-light m-2"
>
<div
class=
"card text-dark bg-light m-2"
>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
<h5
class=
"card-title"
>
<
%=
transcriptionsConfirmedCount
%
>
🟢
<
%=
transcriptionsConfirmedCount
%
>
</h5>
</h5>
<h6
class=
"card-subtitle mb-2 text-muted"
>
Words confirmed
</h6>
<h6
class=
"card-subtitle mb-2 text-muted"
>
Words confirmed
</h6>
</div>
</div>
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
<div
class=
"card text-dark bg-light m-2"
>
<div
class=
"card text-dark bg-light m-2"
>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
<h5
class=
"card-title"
>
<
%=
transcriptionsImprovedCount
%
>
🔴
<
%=
transcriptionsImprovedCount
%
>
</h5>
</h5>
<h6
class=
"card-subtitle mb-2 text-muted"
>
Words improved
</h6>
<h6
class=
"card-subtitle mb-2 text-muted"
>
Words improved
</h6>
</div>
</div>
...
@@ -123,7 +123,7 @@
...
@@ -123,7 +123,7 @@
<div
class=
"card text-dark bg-light m-2"
>
<div
class=
"card text-dark bg-light m-2"
>
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<h5
class=
"card-title"
>
<h5
class=
"card-title"
>
<
%=
transcriptionsPendingCount
%
>
🟡
<
%=
transcriptionsPendingCount
%
>
</h5>
</h5>
<h6
class=
"card-subtitle mb-2 text-muted"
>
Words pending
</h6>
<h6
class=
"card-subtitle mb-2 text-muted"
>
Words pending
</h6>
</div>
</div>
...
@@ -142,6 +142,7 @@
...
@@ -142,6 +142,7 @@
<th
scope=
"col"
>
User transcr.
</th>
<th
scope=
"col"
>
User transcr.
</th>
<th
scope=
"col"
>
OCR transcr.
</th>
<th
scope=
"col"
>
OCR transcr.
</th>
<th
scope=
"col"
>
Original
</th>
<th
scope=
"col"
>
Original
</th>
<th
scope=
"col"
>
Status
</th>
</tr>
</tr>
</thead>
</thead>
...
@@ -176,6 +177,13 @@
...
@@ -176,6 +177,13 @@
src=
"<%= `/oetzit-storage-api/words/${transcriptionsEntropyTail[i].page_id}/${transcriptionsEntropyTail[i].word_id}.png` %>"
>
src=
"<%= `/oetzit-storage-api/words/${transcriptionsEntropyTail[i].page_id}/${transcriptionsEntropyTail[i].word_id}.png` %>"
>
</td>
</td>
<td>
<
%
const
[
topKey
,
topVal]=
Object.entries(transcriptionsEntropyTail[i].usr_transcripts).sort((x,y)=
>
y[1]-x[1])[0] %>
<
%=
topVal
<=2
?
'🟡'
:
(topKey=
=transcriptionsEntropyTail[i].ocr_transcript
?
'🟢'
:
'🔴'
)
%
>
</td>
</tr>
</tr>
<
%
}
%
>
<
%
}
%
>
</tbody>
</tbody>
...
...
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