-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from entrepreneur-interet-general/hf
[Quote] New component
- Loading branch information
Showing
6 changed files
with
154 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<figure class="fr-quote fr-quote--column"> | ||
<blockquote {% if self.source_url %}cite="{{ self.source_url }}"{% endif %}> | ||
<p>{{ self.text }}</p> | ||
</blockquote> | ||
<figcaption> | ||
{% if self.author %}<p class="fr-quote__author">{{ self.author }}</p>{% endif %} | ||
{% if self.details or self.source %}<ul class="fr-quote__source"> | ||
<li> | ||
<cite>{{ self.source }}</cite> | ||
</li> | ||
{% for detail in self.details %} | ||
{% if detail.link %} | ||
<li><a target="_blank" rel="noopener noreferrer" href="{{ detail.link }}">{{ detail.text }}</a></li> | ||
{% else %} | ||
<li>{{ detail.text }}</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul>{% endif %} | ||
{% if self.image_url %}<div class="fr-quote__image"> | ||
<img src="{{ self.image_url }}" class="fr-responsive-img" alt="" /> | ||
</div>{% endif %} | ||
</figcaption> | ||
</figure> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,49 @@ | ||
[tool.poetry] | ||
name = "django-dsfr" | ||
version = "0.4.5" | ||
description = "Integrate the French government Design System into a Django app" | ||
authors = ["Sylvain Boissel <[email protected]>"] | ||
description = "Integrate the French government Design System into a Django app" | ||
license = "MIT" | ||
name = "django-dsfr" | ||
version = "0.4.6" | ||
|
||
readme = "README.rst" | ||
homepage = "https://github.com/entrepreneur-interet-general/django-dsfr" | ||
repository = "https://github.com/entrepreneur-interet-general/django-dsfr" | ||
documentation = "https://entrepreneur-interet-general.github.io/django-dsfr" | ||
keywords = ["django"] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Utilities", | ||
"Development Status :: 3 - Alpha", | ||
"Environment :: Web Environment", | ||
"Framework :: Django", | ||
"Framework :: Django :: 3.2", | ||
"Operating System :: OS Independent", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Topic :: Software Development :: Libraries", | ||
"Topic :: Utilities", | ||
] | ||
documentation = "https://entrepreneur-interet-general.github.io/django-dsfr" | ||
homepage = "https://github.com/entrepreneur-interet-general/django-dsfr" | ||
keywords = ["django"] | ||
readme = "README.rst" | ||
repository = "https://github.com/entrepreneur-interet-general/django-dsfr" | ||
|
||
packages = [ | ||
{ include = "dsfr" }, | ||
{include = "dsfr"}, | ||
] | ||
|
||
include = ["LICENSE", "README.rst", "dsfr/static/dsfr/dist/*/*.*" ] | ||
include = ["LICENSE", "README.rst", "dsfr/static/dsfr/dist/*/*.*"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8" | ||
Django = "^3.2.5" | ||
python = "^3.8" | ||
requests = "^2.26.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^6.2.4" | ||
black = {version = "^21.7b0", allow-prereleases = true} | ||
docutils = "^0.17.1" | ||
coverage = "^5.5" | ||
django-distill = "^2.9.0" | ||
|
||
docutils = "^0.17.1" | ||
pytest = "^6.2.4" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" | ||
requires = ["poetry-core>=1.0.0"] |