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
9513dd38
Commit
9513dd38
authored
Jun 03, 2025
by
Eduardo Silva
Browse files
submetendo arquivos que nao foram incluidos no commit anterior
#4
parent
f5f001c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
dsgov/templates/dsgov/components/card_with_icon.html
0 → 100644
View file @
9513dd38
{% extends "dsgov/base.html" %}
{% load br_components %}
{% load static %}
{% block content %}
<div
class=
"br-card hover"
style=
"cursor: pointer;"
>
<div
class=
"card-content"
>
<div
class=
"d-flex align-items-center"
>
{% if icon_svg %}
<img
src=
"{% static icon_svg %}"
alt=
"ícone"
width=
"40"
height=
"40"
class=
"mr-3"
/>
{% endif %}
<div>
<h4
class=
"mt-0 mb-1 text-primary"
style=
"font-family: 'Noto Sans', sans-serif;"
>
{{ title }}
</h4>
<p
style=
"font-family: 'Noto Sans', sans-serif; color: #5C5C5C;"
>
{{ text }}
</p>
</div>
</div>
</div>
</div>
{% endblock %}
dsgov/templatetags/br_components.py
View file @
9513dd38
from
django
import
template
from
django
import
template
from
django.utils.html
import
format_html
,
mark_safe
from
django.utils.html
import
format_html
from
django.templatetags.static
import
static
from
django.templatetags.static
import
static
from
django.template.loader
import
render_to_string
from
django.template.loader
import
render_to_string
...
@@ -168,3 +168,13 @@ def br_pagination(pages=""):
...
@@ -168,3 +168,13 @@ def br_pagination(pages=""):
}
}
return
render_to_string
(
'dsgov/components/pagination.html'
,
context
)
return
render_to_string
(
'dsgov/components/pagination.html'
,
context
)
@
register
.
simple_tag
def
br_card
(
title
=
''
,
text
=
''
,
icon_path
=
None
):
context
=
{
'title'
:
title
,
'text'
:
text
,
'icon_svg'
:
icon_path
}
return
render_to_string
(
'dsgov/components/card_with_icon.html'
,
context
)
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