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
1f8e9127
Commit
1f8e9127
authored
Sep 20, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rollback
parent
cc157e13
Pipeline
#21049
passed with stages
in 3 minutes and 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
nav.hbs
src/partials/nav.hbs
+1
-1
page-versions.hbs
src/partials/page-versions.hbs
+7
-7
No files found.
src/partials/nav.hbs
View file @
1f8e9127
<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 @
1f8e9127
...
...
@@ -5,16 +5,16 @@
<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>
{{#
each
site
.
components
}}
{{#if
(
or
./
versions
.[
1
]
./
versions
.[
0
].
version
(
ne
./
versions
.[
0
].
displayVersion
'default'
))
}}
{{#
with
site
.
components
.[
0
]
}}
<div
class=
"version-menu"
>
{{#
each
./
versions
}}
{{#
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
(
eq
this
..
/
latest
)
}}
is-latest
{{/if}}
"
href=
"
{{{
relativize
./
url
}}}
"
>
v
{{
this
.
displayVersion
}}
</a>
{{/
each
}}
{{
~#
if
./
missing
}}
is-missing
{{/if}}
"
href=
"
{{{
relativize
./
url
}}}
"
>
v
{{
./
displayVersion
}}
</a>
{{/
each
}}
</div>
{{/if}}
{{/
each
}}
{{/
with
}}
</div>
{{/if}}
{{!-- {{/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