Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Theme
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Theme
Commits
e088743c
Unverified
Commit
e088743c
authored
2 years ago
by
Alexis BENOIT
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #92 from noesya/enhancement/diploma-programs-list
Enhancement/diploma programs list
parents
8b2bfd56
22c1001f
No related branches found
Branches containing commit
Tags
v3.1.5
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
assets/sass/_theme/sections/diplomas.sass
+29
-4
29 additions, 4 deletions
assets/sass/_theme/sections/diplomas.sass
layouts/diplomas/term.html
+6
-3
6 additions, 3 deletions
layouts/diplomas/term.html
layouts/partials/diplomas/diplomas.html
+22
-7
22 additions, 7 deletions
layouts/partials/diplomas/diplomas.html
with
57 additions
and
14 deletions
assets/sass/_theme/sections/diplomas.sass
+
29
−
4
View file @
e088743c
...
...
@@ -38,14 +38,28 @@ ul.diplomas
@include
media-breakpoint-down
(
desktop
)
margin-top
:
$spacing1
li
@include
h3
display
:
block
border-bottom
:
0
padding
:
0
+
li
margin-top
:
$spacing1
+
li
,
>
ol
margin-top
:
$spacing0
@include
media-breakpoint-up
(
sm
)
margin-top
:
$spacing1
a
:hover
color
:
$color-accent
ol
li
a
@include
inherit-text
@include
media-breakpoint-up
(
sm
)
@include
h3
@include
icon
(
list-hyphen
,
before
)
margin-right
:
half
(
$spacing0
)
@include
media-breakpoint-up
(
sm
)
margin-right
:
$spacing0
display
:
flex
ol
margin-left
:
$spacing1
>
li
a
@include
h3
.program
div
...
...
@@ -149,4 +163,15 @@ ul.diplomas
ol
.programs
li
@include
grid
(
2
,
desktop
)
align-items
:
start
\ No newline at end of file
align-items
:
start
a
@include
media-breakpoint-between
(
sm
,
desktop
)
display
:
flex
margin-right
:
$spacing0
&
::after
bottom
:
unset
+
p
margin-top
:
$spacing0
@include
media-breakpoint-down
(
sm
)
&
::after
transform
:
translateY
(
50%
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
layouts/diplomas/term.html
+
6
−
3
View file @
e088743c
...
...
@@ -8,12 +8,15 @@
{{- range .Pages -}}
<li>
{{- $title := partial "PrepareHTML" .Title -}}
{{/* TODO: check title class relevance */}}
<a
href=
"{{ .Permalink }}"
class=
"title"
title=
"{{ safeHTML (i18n "
commons.more_aria
"
(
dict
"
Title
"
$
title
))
}}"
>
{{- $title -}}
</a>
<p
class=
"description"
>
{{- partial "PrepareHTML" .Params.summary -}}
</p>
{{ if .Params.summary }}
<p
class=
"description"
>
{{- partial "PrepareHTML" .Params.summary -}}
</p>
{{ end }}
</li>
{{- end -}}
</ol>
...
...
This diff is collapsed.
Click to expand it.
layouts/partials/diplomas/diplomas.html
+
22
−
7
View file @
e088743c
...
...
@@ -15,16 +15,31 @@
</div>
<ol
class=
"programs"
>
{{- range .Pages -}}
<li>
<a
href=
"{{ .Permalink }}"
title=
"{{ safeHTML (i18n "
commons.more_aria
"
(
dict
"
Title
"
.
Title
))
}}"
>
{{- partial "PrepareHTML" .Title -}}
</a>
</li>
{{- range .Params.programs -}}
{{- template "programsList" . -}}
{{- end -}}
</ol>
</div>
</li>
{{ end }}
</ul>
{{- define "programsList" -}}
<li>
<a
href=
"{{ .Permalink }}"
title=
"{{ safeHTML (i18n "
commons.more_aria
"
(
dict
"
Title
"
.
label
))
}}"
>
{{- partial "PrepareHTML" .label -}}
</a>
<ol>
{{- range .children -}}
<li>
<a
href=
"{{ .path }}"
title=
"{{ safeHTML (i18n "
commons.more_aria
"
(
dict
"
Title
"
.
label
))
}}"
>
{{- partial "PrepareHTML" .label -}}
</a>
{{ if .children }}
{{- template "programsList" . -}}
{{ end }}
</li>
{{ end }}
</ol>
</li>
{{- end -}}
\ No newline at end of file
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