HyperKitty: Fedora branding

Fixes #5169.
This commit is contained in:
Aurélien Bompard 2017-01-26 10:42:25 +00:00
parent 308099e373
commit 576c82c227
5 changed files with 29 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View file

@ -0,0 +1,3 @@
<a class="navbar-brand" href="{% url 'hk_root' %}" title="{{ site_name|title }}">
<img alt="{{ site_name|title }}" src="{% static 'fedora-hyperkitty.png' %}" />
</a>

View file

@ -328,11 +328,36 @@
state=directory owner=root group=root mode=0755
tags: mailman
- name: create the fedora-specific static files dir
file: path="{{ mailman_webui_basedir }}/static-fedora"
state=directory owner=root group=root mode=0755
tags: mailman
- name: create the fedora-specific hyperkitty img dir
file: path="{{ mailman_webui_basedir }}/static-fedora/hyperkitty/img"
state=directory owner=root group=root mode=0755
tags: mailman
- name: create the hyperkitty templates override dir
file: path="{{ mailman_webui_basedir }}/templates/hyperkitty"
state=directory owner=root group=root mode=0755
tags: mailman
- name: install our fedora-specific logo
copy: src=fedora-hyperkitty.png
dest="{{ mailman_webui_basedir }}/static-fedora/fedora-hyperkitty.png"
tags: mailman
- name: install our fedora-specific favicon
copy: src=favicon.ico
dest="{{ mailman_webui_basedir }}/static-fedora/hyperkitty/img/favicon.ico"
tags: mailman
- name: install our fedora-specific brand template override
copy: src=navbar-brand.html
dest="{{ mailman_webui_basedir }}/templates/hyperkitty/navbar-brand.html"
tags: mailman
- name: Install our fedmenu js hook
template: src=bottom.html
dest="{{mailman_webui_basedir }}/templates/hyperkitty/bottom.html"

View file

@ -195,6 +195,7 @@ STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
"{{ mailman_webui_basedir }}/static-fedora/",
)
# List of finder classes that know how to find static files in