Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CERN Components
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
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
Show more breadcrumbs
Web Team
Drupal
Public Drupal Repositories
Drupal 8
D8 Modules
CERN Components
Commits
cd7f9d2c
Commit
cd7f9d2c
authored
5 years ago
by
Konstantinos Platis
Browse files
Options
Downloads
Patches
Plain Diff
Changed implementation for Agenda Box to have word "Event" as default
content type
parent
7730f3fc
No related branches found
No related tags found
2 merge requests
!47
Merge RC v2.6.0 to master
,
!37
Resolve "Agenda Box does not show Event if Content type is not assigned"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patterns/molecules/agenda-box/agenda-box.html.twig
+8
-15
8 additions, 15 deletions
patterns/molecules/agenda-box/agenda-box.html.twig
with
8 additions
and
15 deletions
patterns/molecules/agenda-box/agenda-box.html.twig
+
8
−
15
View file @
cd7f9d2c
...
@@ -89,21 +89,14 @@
...
@@ -89,21 +89,14 @@
{%
endif
%}
{%
endif
%}
{# Content Type field #}
{# Content Type field #}
{%
if
content_type
|
render
%}
{# Initializes content_type with word "Event"#}
{%
set
ct
=
''
%}
{%
set
ct
=
'Event'
%}
{%
if
content_type
|
render
|
striptags
|
trim
==
"Event Page"
%}
{%
if
content_type
|
render
|
striptags
|
trim
==
"Webcast Event"
%}
{%
set
ct
=
'Event'
%}
{%
set
ct
=
'Webcast'
%}
{%
endif
%}
{%
endif
%}
{%
if
content_type
|
render
|
striptags
|
trim
==
"Indico Event"
%}
<div
class=
"agenda-box-content-type"
>
{%
set
ct
=
'Event'
%}
{{
ct
|
t
}}
{%
endif
%}
</div>
{%
if
content_type
|
render
|
striptags
|
trim
==
"Webcast Event"
%}
{%
set
ct
=
'Webcast'
%}
{%
endif
%}
<div
class=
"agenda-box-content-type"
>
{{
ct
|
t
}}
</div>
{%
endif
%}
{# Place field #}
{# Place field #}
{%
if
place
|
render
%}
{%
if
place
|
render
%}
...
...
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