Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
django-dsgov
Commits
7e23c793
Commit
7e23c793
authored
Oct 28, 2025
by
Adryan Reis
Browse files
matgim bottom br text
parent
1f86ca6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dsgov/templatetags/br_components.py
View file @
7e23c793
...
...
@@ -335,13 +335,27 @@ def br_card(title='', text='', icon_class=None, icon_extra_class="", icon_style=
return
render_to_string
(
"dsgov/components/card_with_icon.html"
,
context
)
@
register
.
simple_tag
def
br_text
(
text
=
''
,
tag
=
'p'
,
align
=
''
,
wrap
=
''
,
transform
=
''
,
weight
=
''
,
size
=
''
,
extra_classes
=
''
,
responsive_classes
=
''
,
style
=
''
,
href
=
''
,
target
=
''
):
def
br_text
(
text
=
''
,
tag
=
'p'
,
align
=
''
,
wrap
=
''
,
transform
=
''
,
weight
=
''
,
size
=
''
,
extra_classes
=
''
,
responsive_classes
=
''
,
style
=
''
,
href
=
''
,
target
=
''
,
margim_bottom
=
''
):
"""
Renderiza um elemento de texto DSGov com classes de tipografia personalizáveis.
Se href for fornecido, renderiza como link.
"""
# Construir classes baseadas nos parâmetros
classes
=
[]
if
margim_bottom
:
classes
.
append
(
f
'mb-
{
margim_bottom
}
'
)
# Alinhamento
if
align
in
[
'center'
,
'justify'
,
'left'
,
'right'
]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment