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
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
c3306563
Commit
c3306563
authored
1 year ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
Change logic for colorization of followed corpora in corpus Lists
parent
47b9a90c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/static/js/ResourceLists/CorpusList.js
+14
-13
14 additions, 13 deletions
app/static/js/ResourceLists/CorpusList.js
app/templates/main/dashboard.html.j2
+0
-4
0 additions, 4 deletions
app/templates/main/dashboard.html.j2
with
14 additions
and
17 deletions
app/static/js/ResourceLists/CorpusList.js
+
14
−
13
View file @
c3306563
...
@@ -20,18 +20,20 @@ class CorpusList extends ResourceList {
...
@@ -20,18 +20,20 @@ class CorpusList extends ResourceList {
// #region Mandatory getters and methods to implement
// #region Mandatory getters and methods to implement
get
item
()
{
get
item
()
{
return
`
return
(
values
)
=>
{
<tr class="list-item clickable hoverable">
return
`
<td><a class="btn-floating disabled"><i class="material-icons service-color darken" data-service="corpus-analysis">book</i></a></td>
<tr class="
${
values
[
'
is-owner
'
]
?
''
:
'
deep-purple lighten-5
'
}
list-item clickable hoverable">
<td><b class="title"></b><br><i class="description"></i></td>
<td><a class="btn-floating disabled"><i class="material-icons service-color darken" data-service="corpus-analysis">book</i></a></td>
<td><span class="owner"></span></td>
<td><b class="title"></b><br><i class="description"></i></td>
<td><span class="status badge new corpus-status-color corpus-status-text" data-badge-caption=""></span></td>
<td><span class="owner"></span></td>
<td class="right-align">
<td><span class="status badge new corpus-status-color corpus-status-text" data-badge-caption=""></span></td>
<a class="list-action-trigger btn-floating red waves-effect waves-light" data-list-action="delete-request"><i class="material-icons">delete</i></a>
<td class="right-align">
<a class="list-action-trigger btn-floating service-color darken waves-effect waves-light" data-list-action="view" data-service="corpus-analysis"><i class="material-icons">send</i></a>
<a class="list-action-trigger btn-floating red waves-effect waves-light" data-list-action="delete-request"><i class="material-icons">delete</i></a>
</td>
<a class="list-action-trigger btn-floating service-color darken waves-effect waves-light" data-list-action="view" data-service="corpus-analysis"><i class="material-icons">send</i></a>
</tr>
</td>
`
.
trim
();
</tr>
`
.
trim
();
};
}
}
get
valueNames
()
{
get
valueNames
()
{
...
@@ -42,7 +44,6 @@ class CorpusList extends ResourceList {
...
@@ -42,7 +44,6 @@ class CorpusList extends ResourceList {
'
description
'
,
'
description
'
,
'
title
'
,
'
title
'
,
'
owner
'
,
'
owner
'
,
{
data
:
[
'
is-owner
'
]}
];
];
}
}
...
...
This diff is collapsed.
Click to expand it.
app/templates/main/dashboard.html.j2
+
0
−
4
View file @
c3306563
...
@@ -147,9 +147,5 @@
...
@@ -147,9 +147,5 @@
{% endfor %}
{% endfor %}
]
]
);
);
corpusItems = document.querySelectorAll('[data-is-owner="false"]');
corpusItems.forEach((item) => {
item.classList.add('deep-purple', 'lighten-5');
});
</script>
</script>
{% endblock scripts %}
{% endblock scripts %}
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