Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
howto-cards LEGACY VERSION
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
R3
howto-cards LEGACY VERSION
Commits
6f463120
Commit
6f463120
authored
3 years ago
by
Laurent Heirendt
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix-gdpr' into 'develop'
Add slug to card layers See merge request
!294
parents
a205c9b4
bd74c40a
No related branches found
No related tags found
4 merge requests
!305
[release] Regular merge of develop
,
!304
[release] Regular merge of develop
,
!300
[release] Regular merge of develop
,
!294
Add slug to card layers
Pipeline
#45883
passed
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/generateIndex.py
+1
-1
1 addition, 1 deletion
.ci/generateIndex.py
assets/js/box_hider.js
+5
-5
5 additions, 5 deletions
assets/js/box_hider.js
with
6 additions
and
6 deletions
.ci/generateIndex.py
+
1
−
1
View file @
6f463120
...
...
@@ -34,7 +34,7 @@ def build_section_start(title, shortcut):
title
=
title
.
replace
(
"
Covid 19
"
,
"
COVID-19
"
)
title
=
title
.
replace
(
"
Ppc
"
,
"
PPC
"
)
return
f
'
\n\t
<div class=
"
index-box noborderbox
"
id=
"
{
shortcut
}
"
>
\n\t\t
<h3>
{
title
}
</h3>
\n\t\t
<ul>
\n
'
return
f
'
\n\t
<div class=
"
index-box noborderbox
"
id=
"
{
shortcut
}
-card
"
>
\n\t\t
<h3>
{
title
}
</h3>
\n\t\t
<ul>
\n
'
def
build_section_end
():
return
"
\t\t
</ul>
\n\t
</div>
"
...
...
This diff is collapsed.
Click to expand it.
assets/js/box_hider.js
+
5
−
5
View file @
6f463120
/**
/**
* This is used to hide the sections of the index page
* based on the URL fragment (a.k.a. "hash")
*/
window
.
boxHider
=
(
function
()
{
function
GetSelectedId
()
{
var
boxId
=
window
.
location
.
hash
;
var
boxId
=
window
.
location
.
hash
+
'
-card
'
;
if
(
boxId
.
length
>
0
)
{
return
boxId
.
substring
(
1
);
}
...
...
@@ -24,10 +24,10 @@ window.boxHider = (function() {
function
GetSelectedBoxElement
(
id
)
{
var
allBoxesArray
=
GetAllBoxElementsArray
();
var
element
=
document
.
getElementById
(
id
);
if
(
allBoxesArray
.
includes
(
element
))
{
return
element
;
}
}
return
false
;
}
...
...
@@ -61,7 +61,7 @@ window.boxHider = (function() {
var
boxId
=
GetSelectedId
();
if
(
boxId
.
length
==
0
)
{
// If there is no hash in the URL, just show all the boxes
ShowAllBoxes
();
ShowAllBoxes
();
return
;
}
// Otherwise, proceed to getting the corresponding div element
...
...
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