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
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hyeryung
SWLab UI
Commits
95856a65
Commit
95856a65
authored
8 months ago
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update page-version.hbs
parent
a747ce4c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
page-versions.hbs
src/partials/page-versions.hbs
+11
-8
No files found.
src/partials/page-versions.hbs
View file @
95856a65
{{#
with
page
.
versions
}}
{{!-- {{#with page.versions}} --}}
{{#if
page
.
component
}}
<div
class=
"page-versions"
>
<div
class=
"backdrop"
></div>
{{#
with
@root
.
page
.
componentVersion
}}
<h2
class=
"title"
><a
href=
"
{{{
relativize
./
url
}}}
"
>
{{
./
title
}}
</a></h2>
{{/
with
}}
<button
class=
"version-menu-toggle"
title=
"Show other versions of page"
>
v
{{
@root
.
page
.
componentVersion
.
displayVersion
}}
</button>
<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
]
}}
<div
class=
"version-menu"
>
{{#
each
thi
s
}}
{{#
each
./
version
s
}}
<a
class=
"version
{{
~#
if
(
eq
./
version
@root
.
page
.
version
)
}}
is-current
{{/
if
~
}}
{{!-- {{~#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>
{{/
each
}}
</div>
{{/
with
}}
</div>
{{/
with
}}
{{/if}}
{{!-- {{/with}} --}}
This diff is collapsed.
Click to expand it.
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