Add fedmenu to hyperkitty.
This commit is contained in:
parent
859dd9e929
commit
2ffb0794b4
2 changed files with 19 additions and 0 deletions
|
@ -310,6 +310,10 @@
|
|||
state=directory owner=root group=root mode=0755
|
||||
tags: mailman
|
||||
|
||||
- name: Install our fedmenu js hook
|
||||
template: src=bottom.html dest=/srv/webui/templates/hyperkitty/bottom.html
|
||||
tags: mailman
|
||||
|
||||
#
|
||||
# Plug HyperKitty into Mailman
|
||||
#
|
||||
|
|
15
roles/mailman/templates/bottom.html
Normal file
15
roles/mailman/templates/bottom.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% if env == 'staging' %}
|
||||
<script src="https://apps.stg.fedoraproject.org/fedmenu/js/fedmenu.js"> </script>
|
||||
{% else %}
|
||||
<script src="https://apps.fedoraproject.org/fedmenu/js/fedmenu.js"> </script>
|
||||
{% endif %}
|
||||
<script>
|
||||
fedmenu({
|
||||
{% if env == 'staging' %}
|
||||
'url': 'https://apps.stg.fedoraproject.org/js/data.js',
|
||||
{% else %}
|
||||
'url': 'https://apps.fedoraproject.org/js/data.js',
|
||||
{% endif %}
|
||||
'position': 'bottom-right'
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue