~linaro-validation/lava-dashboard-disabled/trunk

« back to all changes in this revision

Viewing changes to dashboard_server/templates/dashboard_app/api.html

  • Committer: Zygmunt Krynicki
  • Date: 2011-04-07 07:19:45 UTC
  • mfrom: (152.1.86 trunk)
  • Revision ID: zygmunt.krynicki@linaro.org-20110407071945-14ogt674m2sssvm6
Merge 0.3c7 (seventh release candidate)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
{{ block.super }} | {% trans "XML-RPC API" %}
8
8
{% endblock %}
9
9
 
 
10
{% block extrahead %}
 
11
{{ block.super }}
 
12
<link rel="stylesheet" href="{{ STATIC_URL }}assets/css/smoothness/jquery-ui-1.8.9.custom.css" type="text/css">
 
13
<script type="text/javascript" src="{{ STATIC_URL }}assets/scripts/jquery-1.4.4.min.js"></script>
 
14
<script type="text/javascript" src="{{ STATIC_URL }}assets/scripts/jquery-ui-1.8.9.custom.min.js"></script>
 
15
{% endblock %}
 
16
 
10
17
 
11
18
{% block breadcrumbs %}
12
19
<li><a href="{% url xml-rpc %}">{% trans "XML-RPC API" %}</a></li>
13
20
{% endblock %}
14
21
 
15
22
 
16
 
{% block sidebar %}
17
 
<p>Available methods:</p>
18
 
<ul>
19
 
  {% for method in methods %}
20
 
  <li><a href="#{{method.name}}">{{method.name}}</a></li>
21
 
  {% endfor %}
22
 
</ul>
23
 
{% endblock %}
24
 
 
25
 
 
26
23
{% block content %}
 
24
<h2>About XML-RPC API</h2>
27
25
<p>This URL is an XML-RPC server. You can interact with it using any XML-RPC
28
26
client. For example, in python you can do this:</p>
29
27
<pre>
33
31
</pre>
34
32
<p>The rest of this page is an automatically generated documentation of the
35
33
available functions.</p>
36
 
<hr/>
37
34
 
38
 
{% for method in methods %}
39
 
<a name="{{method.name}}"></a>
40
 
{{ method.help|restructuredtext }}
41
 
{% endfor %}
 
35
<h2>Available functions</h2>
 
36
<div id="accordion">
 
37
  {% for method in methods %}
 
38
  <h3><a href="#{{method.name}}">{{ method.name }}</a></h3>
 
39
  <div>{{ method.help|restructuredtext }}</div>
 
40
  {% endfor %}
 
41
</div>
 
42
<script type="text/javascript">
 
43
  $(function(){ $('#accordion').accordion({ navigation: true, active: false, collapsible: true}) });
 
44
</script>
42
45
{% endblock %}