Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
fc79424a
Commit
fc79424a
authored
2 years ago
by
Štěpán Farka
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] linebreaksbr to header carousel & HomePageCarouseSlideBlock Charblock -> Textblock
parent
aea69d74
No related branches found
No related tags found
2 merge requests
!646
Release
,
!645
Feature/main november updates
Pipeline
#10421
passed
2 years ago
Stage: build
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/blocks.py
+2
-2
2 additions, 2 deletions
main/blocks.py
main/templates/main/blocks/homepage_carousel_block.html
+2
-2
2 additions, 2 deletions
main/templates/main/blocks/homepage_carousel_block.html
with
4 additions
and
4 deletions
main/blocks.py
+
2
−
2
View file @
fc79424a
...
...
@@ -44,8 +44,8 @@ class BoxesBlock(StructBlock):
class
HomePageCarouseSlideBlock
(
CTAMixin
,
StructBlock
):
image
=
ImageChooserBlock
(
label
=
"
Hlavní obrázek jednoho slidu carouselu
"
)
line_1
=
Char
Block
(
label
=
"
První řádek
"
)
line_2
=
Char
Block
(
label
=
"
Druhý řádek
"
)
line_1
=
Text
Block
(
label
=
"
První řádek
"
)
line_2
=
Text
Block
(
label
=
"
Druhý řádek
"
)
class
Meta
:
icon
=
"
form
"
...
...
This diff is collapsed.
Click to expand it.
main/templates/main/blocks/homepage_carousel_block.html
+
2
−
2
View file @
fc79424a
...
...
@@ -8,8 +8,8 @@
<img
src=
"{{ slide_img.url }}"
draggable=
"false"
>
<div
class=
"header-carousel--text grid-container"
>
<div
class=
"h-fit"
>
<h1
class=
"text-white"
>
{{ slide.line_1 }}
</h1>
{# TODO SEO
<h1><span><span>
#}
<h1
class=
"text-yellow-500 mb-2"
>
{{ slide.line_2 }}
</h1>
<h1
class=
"text-white"
>
{{ slide.line_1
|linebreaksbr
}}
</h1>
{# TODO SEO
<h1><span><span>
#}
<h1
class=
"text-yellow-500 mb-2"
>
{{ slide.line_2
|linebreaksbr
}}
</h1>
{% include 'main/includes/href_button.html' with btn_link=slide.button_link btn_text=slide.button_text extra_classes="btn-carousel" %}
</div>
</div>
...
...
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