Try the fedmenu header for stg cgit.
This commit is contained in:
parent
4690a26ece
commit
498ca4f3e9
1 changed files with 20 additions and 1 deletions
|
@ -1 +1,20 @@
|
|||
<p>This is a test. The environment is {{env}}.</p>
|
||||
{% 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/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/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',
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue