Merge pull request #41 from MrSenko/status_cake

Enable StatusCake RUM. Closes #16
This commit is contained in:
Alexandre Vicenzi 2016-05-06 00:18:27 -03:00
commit bf61169ca6
2 changed files with 9 additions and 1 deletions

View file

@ -1,5 +1,12 @@
<!-- StatusCake --> <!-- StatusCake -->
{% if STATUSCAKE['trackid'] %}
<a href="https://www.statuscake.com" title="{{ SITENAME }} Uptime"> <a href="https://www.statuscake.com" title="{{ SITENAME }} Uptime">
<img src="https://www.statuscake.com/App/button/index.php?Track={{ STATUSCAKE['trackid'] }}&amp;Days={{ STATUSCAKE['days'] }}&amp;Design=6" alt="{{ SITENAME }} Uptime" width="96" height="15"/> <img src="https://www.statuscake.com/App/button/index.php?Track={{ STATUSCAKE['trackid'] }}&amp;Days={{ STATUSCAKE['days'] }}&amp;Design=6" alt="{{ SITENAME }} Uptime" width="96" height="15"/>
</a> </a>
{% endif %}
{% if STATUSCAKE['rumid'] %}
<script type="text/javascript">var SC_RumID = {{ STATUSCAKE['rumid'] }};</script>
<script type="text/javascript" async src="https://www.statuscake.com/App/RUM/embed.js"></script>
{% endif %}
<!-- End StatusCake --> <!-- End StatusCake -->

View file

@ -53,7 +53,8 @@ DEFAULT_PAGINATION = 10
STATUSCAKE = { STATUSCAKE = {
'trackid': 'test-test', 'trackid': 'test-test',
'days': 7 'days': 7,
'rumid': 1234,
} }
RELATIVE_URLS = False RELATIVE_URLS = False