~launchpad-results/launchpad-results/trunk

« back to all changes in this revision

Viewing changes to templates/project/recommended_test_projects_script.html

  • Committer: Marc Tardif
  • Date: 2011-05-11 11:54:18 UTC
  • Revision ID: marc.tardif@canonical.com-20110511115418-12lv84nvado8pvme
Added xunit package, tools script and corresponding packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% comment %}
2
 
Copyright 2010 Canonical Ltd.  This software is licensed under the
 
2
Copyright 2010-2011 Canonical Ltd.  This software is licensed under the
3
3
GNU Affero General Public License version 3 (see the file  LICENSE).
4
4
{% endcomment %}
5
5
 
6
6
<script type="text/javascript">
7
7
{% if person %}
8
 
var recommended_test_projects_uri = '{% url lpx.results.views.person person.name %}';
 
8
var recommended_test_projects_uri = '{% url lpresults.tracker.views.person person.name %}';
9
9
{% endif %}
10
10
{% if project %}
11
 
var recommended_test_projects_uri = '{% url lpx.results.views.project project.name %}';
 
11
var recommended_test_projects_uri = '{% url lpresults.tracker.views.project project.name %}';
12
12
{% endif %}
13
 
LPS.use('node', 'lpx.results.command.runner', 'lpx.results.command.repeater', 'lpx.results.ui.tabler', function(Y) {
 
13
LPS.use('node', 'lpresults.command.runner', 'lpresults.command.repeater', 'lpresults.ui.tabler', function(Y) {
14
14
    Y.on("domready", function() {
15
 
        var command = new Y.lpx.results.command.LPRunner({uri: recommended_test_projects_uri, operation_name: 'getRecommendedTestProjects'});
16
 
        Y.one('#recommended_test_projects_table').plug(Y.lpx.results.ui.Tabler, {command: command});
17
 
        command.plug(Y.lpx.results.command.DynamicRepeater);
 
15
        var command = new Y.lpresults.command.LPRunner({uri: recommended_test_projects_uri, operation_name: 'getRecommendedTestProjects'});
 
16
        Y.one('#recommended_test_projects_table').plug(Y.lpresults.ui.Tabler, {command: command});
 
17
        command.plug(Y.lpresults.command.DynamicRepeater);
18
18
    });
19
19
});
20
20
</script>