Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
SWLab UI
Commits
2a8122c6
Commit
2a8122c6
authored
Sep 19, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
a0ff2a68
Pipeline
#20992
passed with stages
in 3 minutes and 45 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
nav.hbs
src/partials/nav.hbs
+1
-1
page-versions.hbs
src/partials/page-versions.hbs
+7
-10
No files found.
src/partials/nav.hbs
View file @
2a8122c6
<div
class=
"nav-container"
{{#if
page
.
component
}}
data-component=
"
{{
page
.
component
.
name
}}
"
data-version=
"
{{
page
.
version
}}
"
{{/if}}
>
<aside
class=
"nav"
>
<div
class=
"panels"
>
{{
!-- {{> page-versions}} --
}}
{{
>
page-versions
}}
{{>
nav-menu
}}
{{>
nav-explore
}}
</div>
...
...
src/partials/page-versions.hbs
View file @
2a8122c6
...
...
@@ -3,21 +3,18 @@
<div
class=
"page-versions"
>
<div
class=
"backdrop"
></div>
<h2
class=
"title"
><a
href=
"
{{{
relativize
./
url
}}}
"
>
{{
page
.
component
.
title
}}
</a></h2>
<button
class=
"version-menu-toggle"
title=
"Show other versions of page"
>
{{#if
(
or
page
.
componentVersion
.
version
(
ne
page
.
componentVersion
.
displayVersion
'default'
))
}}
v
{{
page
.
componentVersion
.
displayVersion
}}
{{/if}}
</button>
{{#
with
site
.
components
.[
0
]
}}
{{#if
(
or
./
versions
.[
1
]
./
versions
.[
0
].
version
(
ne
./
versions
.[
0
].
displayVersion
'default'
))
}}
<button
class=
"version-menu-toggle"
title=
"Show other versions of page"
>
{{#if
(
or
page
.
componentVersion
.
version
(
ne
page
.
componentVersion
.
displayVersion
'default'
))
}}
v
{{
page
.
componentVersion
.
displayVersion
}}{{/if}}
</button>
<!-- Version data:
{{
site
.
components
}}
-->
{{#
with
site
.
components
.[
0
]
}}
<!-- Version data:
{{
versions
}}
-->
<!-- Version data:
{{
./
versions
}}
-->
<div
class=
"version-menu"
>
{{#
each
./
versions
}}
<a
class=
"version
{{!-- {{~#if (eq ./version @root.page.version)}} is-current{{/if~}} --}}
{{
~#
if
(
and
(
eq
..
@root
.
page
.
component
)
(
eq
this
@root
.
page
.
componentVersion
))
}}
is-current
{{/
if
~
}}
{{
~#
if
./
missing
}}
is-missing
{{/if}}
"
href=
"
{{{
relativize
./
url
}}}
"
>
v
{{
./
displayVersion
}}
</a>
{{
~#
if
./
missing
}}
is-missing
{{/if}}
"
href=
"
{{{
relativize
./
url
}}}
"
>
v
{{
./
displayVersion
}}
</a>
{{/
each
}}
</div>
{{/
with
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment