Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Client
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
Container Registry
Model registry
Operate
Environments
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
Resin
Client
Commits
aa134490
Commit
aa134490
authored
11 months ago
by
Marlène SIMONDANT
Browse files
Options
Downloads
Patches
Plain Diff
fix(Accessibility): add title for each news page
parent
149207e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!846
V3.1.0 (sans impression)
,
!820
fix(Accessibility): title for each news page"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/post/components/post-details/post-details.component.ts
+4
-1
4 additions, 1 deletion
...pp/post/components/post-details/post-details.component.ts
with
4 additions
and
1 deletion
src/app/post/components/post-details/post-details.component.ts
+
4
−
1
View file @
aa134490
import
{
Component
,
ElementRef
,
OnInit
,
Renderer2
,
ViewEncapsulation
}
from
'
@angular/core
'
;
import
{
DomSanitizer
}
from
'
@angular/platform-browser
'
;
import
{
DomSanitizer
,
Title
}
from
'
@angular/platform-browser
'
;
import
{
ActivatedRoute
}
from
'
@angular/router
'
;
import
{
RouterListenerService
}
from
'
../../../services/routerListener.service
'
;
import
{
Post
}
from
'
../../models/post.model
'
;
...
...
@@ -21,6 +21,7 @@ export class PostDetailsComponent implements OnInit {
private
routerListener
:
RouterListenerService
,
private
readonly
elementRef
:
ElementRef
,
private
renderer
:
Renderer2
,
private
title
:
Title
,
)
{}
ngOnInit
():
void
{
...
...
@@ -38,6 +39,8 @@ export class PostDetailsComponent implements OnInit {
const
script
=
this
.
renderer
.
createElement
(
'
script
'
);
script
.
src
=
'
/assets/ghost/cards.min.js
'
;
this
.
renderer
.
appendChild
(
this
.
elementRef
.
nativeElement
,
script
);
// set page title
this
.
title
.
setTitle
(
this
.
post
.
title
+
"
| Réseau des acteurs de l'inclusion numérique de la métropole de Lyon
"
);
}
public
backToPosts
():
void
{
...
...
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