making fedmenu on taskotron landing page configurable
This commit is contained in:
parent
c57cfd93d2
commit
a1d595e0ab
2 changed files with 8 additions and 3 deletions
|
@ -42,3 +42,6 @@ fakefedorainfra_url: https://taskotron-dev.fedoraproject.org/fakefedorainfra
|
|||
taskotron_docs_url: https://docs.qadevel.cloud.fedoraproject.org/libtaskotron/latest/
|
||||
freezes: false
|
||||
public_artifacts_dir: /srv/taskotron/artifacts
|
||||
|
||||
fedmenu_url: 'https://apps.fedoraproject.org/fedmenu/js/fedmenu.js'
|
||||
fedmemu_data_url: 'https://apps.fedoraproject.org/js/data.js'
|
||||
|
|
|
@ -140,13 +140,15 @@
|
|||
|
||||
</div> <!-- end of main row -->
|
||||
|
||||
<script src="http://threebean.org/fedmenu/js/fedmenu.js"></script>
|
||||
{% if fedmenu_url is defined and fedmemu_data_url is defined %}
|
||||
<script src="{{ fedmenu_url }}"></script>
|
||||
<script>
|
||||
fedmenu({
|
||||
'url': 'http://threebean.org/fedmenu/dev-data.js'
|
||||
'url': '{{ fedmenu_data_url }}'
|
||||
'mimeType': 'application/javascript',
|
||||
'position': 'bottom-right',
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue