72 lines
2.7 KiB
HTML
72 lines
2.7 KiB
HTML
<!-- jQuery -->
|
|
<script type="text/javascript" src="{{pathto('_static/js/jquery-1.11.3.js', 1)}}"></script>
|
|
|
|
<!-- Bootstrap JavaScript -->
|
|
<script type="text/javascript" src="{{pathto('_static/js/bootstrap.min.js', 1)}}"></script>
|
|
|
|
<!-- The rest of the JS -->
|
|
<script type="text/javascript" src="{{pathto('_static/js/navigation.js', 1)}}"></script>
|
|
|
|
<!-- Docs JS -->
|
|
<script type="text/javascript" src="{{pathto('_static/js/docs.js', 1)}}"></script>
|
|
|
|
<!-- Popovers -->
|
|
<script type="text/javascript" src="{{pathto('_static/js/webui-popover.js', 1)}}"></script>
|
|
|
|
<!-- Javascript for page -->
|
|
<script language="JavaScript">
|
|
/* build a description of this page including SHA, source location on git repo,
|
|
build time and the project's launchpad bug tag. Set the HREF of the bug
|
|
buttons */
|
|
|
|
var lineFeed = "%0A";
|
|
var gitURL = "Source: Can't derive source file URL";
|
|
|
|
/* there have been cases where "pagename" wasn't set; better check for it */
|
|
{%- if giturl and pagename %}
|
|
/* The URL of the source file on Git is based on the giturl variable
|
|
in conf.py, which must be manually initialized to the source file
|
|
URL in Git.
|
|
"pagename" is a standard sphinx parameter containing the name of
|
|
the source file, without extension. */
|
|
|
|
var sourceFile = "{{ pagename }}" + ".rst";
|
|
gitURL = "Source: {{ giturl }}" + "/" + sourceFile;
|
|
{%- endif %}
|
|
|
|
/* gitsha, project and bug_tag rely on variables in conf.py */
|
|
var gitSha = "SHA: {{ gitsha }}";
|
|
{%- if bug_project %}
|
|
var bugProject = "{{ bug_project }}";
|
|
{%- else %}
|
|
var bugProject = "fuel";
|
|
{%- endif %}
|
|
var bugTitle = "{{ title }} in {{ project }}";
|
|
var fieldTags = "{{ bug_tag }}";
|
|
|
|
/* "last_updated" is the build date and time. It relies on the
|
|
conf.py variable "html_last_updated_fmt", which should include
|
|
year/month/day as well as hours and minutes */
|
|
var buildstring = "Release: {{ release }} on {{ last_updated }}";
|
|
|
|
var fieldComment = encodeURI(buildstring) +
|
|
lineFeed + encodeURI(gitSha) +
|
|
lineFeed + encodeURI(gitURL) ;
|
|
|
|
logABug(bugTitle, bugProject, fieldComment, fieldTags);
|
|
</script>
|
|
|
|
<!-- Javascript for search boxes (both sidebar and top nav) -->
|
|
<script type="text/javascript">
|
|
(function() {
|
|
var cx = '000108871792296872333:noj9nikm74i';
|
|
var gcse = document.createElement('script');
|
|
gcse.type = 'text/javascript';
|
|
gcse.async = true;
|
|
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
|
|
'//www.google.com/cse/cse.js?cx=' + cx;
|
|
var s = document.getElementsByTagName('script')[0];
|
|
s.parentNode.insertBefore(gcse, s);
|
|
})();
|
|
</script>
|