Push fedmenu shim out to stg koji.
This commit is contained in:
parent
81a26fad8d
commit
03ecca6d73
2 changed files with 36 additions and 0 deletions
|
@ -30,6 +30,15 @@
|
|||
tags:
|
||||
- koji_hub
|
||||
|
||||
- name: fedmenu shim
|
||||
template: src=fedmenu-extra-footer.html dest=/usr/share/koji-web/static/extra-footer.html
|
||||
tags: koji_hub
|
||||
notify: restart httpd
|
||||
# XXX - we only want to do this in staging for now because it requires a patch
|
||||
# to koji itself to include the extra-footer.html file in a sufficiently
|
||||
# advanced way.
|
||||
when: env == 'staging'
|
||||
|
||||
- name: hub config
|
||||
template: src=hub.conf.j2 dest=/etc/koji-hub/hub.conf owner=apache group=apache mode=600
|
||||
tags:
|
||||
|
|
27
roles/koji_hub/templates/fedmenu-extra-footer.html
Normal file
27
roles/koji_hub/templates/fedmenu-extra-footer.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{% if env == 'staging' %}
|
||||
<script src="https://apps.stg.fedoraproject.org/fedmenu/js/jquery-1.11.2.min.js"></script>
|
||||
<script src="https://apps.stg.fedoraproject.org/fedmenu/js/fedora-libravatar.js"></script>
|
||||
<script src="https://apps.stg.fedoraproject.org/fedmenu/js/fedmenu.js"></script>
|
||||
{% else %}
|
||||
<script src="https://apps.fedoraproject.org/fedmenu/js/jquery-1.11.2.min.js"></script>
|
||||
<script src="https://apps.fedoraproject.org/fedmenu/js/fedora-libravatar.js"></script>
|
||||
<script src="https://apps.fedoraproject.org/fedmenu/js/fedmenu.js"></script>
|
||||
{% endif %}
|
||||
|
||||
<script>
|
||||
{% if env == 'staging' %}
|
||||
var base = 'https://apps.stg.fedoraproject.org/';
|
||||
{% else %}
|
||||
var base = 'https://apps.fedoraproject.org/';
|
||||
{% endif %}
|
||||
fedmenu({
|
||||
'url': base + 'js/data.js',
|
||||
'mimeType': 'application/javascript',
|
||||
'position': 'bottom-right',
|
||||
#if $varExists('build')
|
||||
'package': '$build.package_name',
|
||||
'user': '$build.owner_name',
|
||||
#end if
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue