Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
visualizer-embed
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Owen Graham
visualizer-embed
Commits
5abc909a
Verified
Commit
5abc909a
authored
Jul 15, 2022
by
Owen Graham
Browse files
Options
Downloads
Patches
Plain Diff
Convert to `<ul>`s, `<li>`s, and all `<a>`s
parent
75d70f80
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
visualizer/static/style.css
+15
-4
15 additions, 4 deletions
visualizer/static/style.css
visualizer/templates/plotter.html
+15
-13
15 additions, 13 deletions
visualizer/templates/plotter.html
with
30 additions
and
17 deletions
visualizer/static/style.css
+
15
−
4
View file @
5abc909a
...
...
@@ -2,6 +2,10 @@
box-sizing
:
border-box
;
}
a
{
cursor
:
pointer
;
}
body
{
font-family
:
'Verlag'
,
'Helvetica Neue'
,
'Helvetica'
,
'Arial'
,
sans-serif
;
margin
:
0
;
...
...
@@ -24,15 +28,20 @@ body.embedded #plotter {
width
:
100%
;
}
#plotter-nav
{
#plotter-nav
ul
{
display
:
flex
;
flex-flow
:
row
wrap
;
justify-content
:
center
;
margin
:
0
;
padding
:
8px
;
}
#plotter-nav
>
a
,
#plotter-nav
>
span
{
#plotter-nav
li
{
display
:
block
;
}
#plotter-nav
a
{
display
:
block
;
margin
:
8px
;
padding
:
7px
;
border
:
1px
solid
black
;
...
...
@@ -44,10 +53,12 @@ body.embedded #plotter {
display
:
flex
;
flex-flow
:
row
wrap
;
justify-content
:
center
;
margin
:
0
;
padding
:
8px
;
}
#selections
>
div
{
#selections
li
{
display
:
block
;
margin
:
8px
;
width
:
224px
;
max-width
:
224px
;
...
...
...
...
This diff is collapsed.
Click to expand it.
visualizer/templates/plotter.html
+
15
−
13
View file @
5abc909a
...
...
@@ -44,31 +44,33 @@
{% endif %}
<div
id=
"plotter"
>
<nav
id=
"plotter-nav"
>
<ul>
{% for plotter in g.plotters.values() %}
{%
if
plotter is sameas g.plotter %}
<span>
{{ plotter.nav_title }}
</span
>
{% else %}
<a
href=
"{{ url_for(endpoint, name=plotter.name) }}"
>
{%
set current =
plotter is sameas g.plotter %}
<li
{%
-
if
current
%}
class=
"current"
{%
endif
%}
>
<a
href=
"{{ url_for(endpoint, name=plotter.name) }}"
{%
-
if
current
%}
aria-current=
"page"
{%
endif
%}
>
{{- plotter.nav_title -}}
</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
<form
id=
"controls"
method=
"get"
action=
""
{
#-
#
}
onsubmit=
"{{ g.plotter.onsubmit_fn }}(); return false;"
>
<
div
id=
"selections"
>
<
ul
id=
"selections"
>
{% for sel in g.plotter.selectors %}
<
div
>
<
li
>
<label
for=
"{{ sel.id }}"
>
{{ sel.label }}
</label>
<select
name=
"{{ sel.name }}"
id=
"{{ sel.id }}"
required
{{
-
macros.onchange
(
sel.onchange
)
}}
>
<option
value=
""
>
Select {{ sel.label }}
</option>
{{ macros.options[sel.type](sel.get_param()) | trim }}
</select>
</
div
>
</
li
>
{% endfor %}
</
div
>
</
ul
>
<input
type=
"submit"
value=
"Visualize"
>
</form>
...
...
...
...
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
sign in
to comment