Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
da219cf0
Commit
da219cf0
authored
4 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add filter field to configuration table (gui)
parent
5cc024b6
No related branches found
No related tags found
3 merge requests
!109
Acceptance
,
!108
Master
,
!107
Dev nico
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
atdb/taskdatabase/services/algorithms.py
+4
-1
4 additions, 1 deletion
atdb/taskdatabase/services/algorithms.py
atdb/taskdatabase/templates/taskdatabase/config.html
+1
-0
1 addition, 0 deletions
atdb/taskdatabase/templates/taskdatabase/config.html
with
5 additions
and
1 deletion
atdb/taskdatabase/services/algorithms.py
+
4
−
1
View file @
da219cf0
...
@@ -107,13 +107,16 @@ def convert_config_to_html(querylist):
...
@@ -107,13 +107,16 @@ def convert_config_to_html(querylist):
# iterate through the dict of key/values
# iterate through the dict of key/values
key
=
record
.
key
key
=
record
.
key
value
=
record
.
value
value
=
record
.
value
filter
=
record
.
filter
try
:
try
:
if
"
://
"
in
value
:
if
"
://
"
in
value
:
link
=
"
<a href=
"
+
'"'
+
value
+
'"
>
'
+
key
+
"
</a>
"
link
=
"
<a href=
"
+
'"'
+
value
+
'"
>
'
+
key
+
"
</a>
"
value
=
link
value
=
link
except
:
except
:
pass
pass
line
=
"
<tr><td><b>
"
+
str
(
key
)
+
"
</b></td><td>
"
+
str
(
value
)
+
"
</td></tr>
"
line
=
"
<tr><td><b>
"
+
str
(
filter
)
+
"
</b></td> <td><b>
"
+
str
(
key
)
+
"
</b></td><td>
"
+
str
(
value
)
+
"
</td></tr>
"
results
=
results
+
line
results
=
results
+
line
except
:
except
:
results
=
"
<tr><td>no data</td></tr>
"
results
=
"
<tr><td>no data</td></tr>
"
...
...
This diff is collapsed.
Click to expand it.
atdb/taskdatabase/templates/taskdatabase/config.html
+
1
−
0
View file @
da219cf0
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<div
class=
"card-body"
>
<div
class=
"card-body"
>
<h3>
Configuration
</h3>
<h3>
Configuration
</h3>
<table
class=
"table table-striped"
>
<table
class=
"table table-striped"
>
<th>
filter
</th><th>
key
</th><th>
value
</th>
<tbody>
<tbody>
{{ results | safe }}
{{ results | safe }}
</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