source: server/trunk/web/root/templates/html/rpms/analyse.html @ 276

Last change on this file since 276 was 276, checked in by nanardon, 13 years ago
  • use ajax to fetch analysis results
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1<!-- $Id$ -->
2
3[% INCLUDE 'rpms/menu.tt' %]
4
5<div id="sophie_body_main">
6
7<p>Find dependencies on distribution:</p>
8
9<form id="analysis_form" action="[% c.uri_for('/', c.req.path) %]" method="POST">
10    <span id="distribselect">
11    [% INCLUDE 'ajax/forms/distribselect.tt' form = 'analysis_form' %]
12    </span>
13    <input type="submit" name="start">
14</form>
15
16[% IF c.req.param('start') %]
17<div id="sophie_analyse">
18    Loading...
19</div>
20<script type="text/javascript">
21    new Ajax.Updater(
22    'sophie_analyse',
23    '[% c.uri_for('/', c.req.path) %]',
24    { asynchronous: 1, parameters: 'ajax=1&analyse=1' }
25    );
26</script>
27[% END %]
28</div>
29
30
31<div id="sophie_body_additional">
32    [% FOREACH loc = c.forward('/rpms/location', [ pkgid ]) %]
33    [% IF loop.first %]
34    <p>Analyse over:</p>
35    <ul>
36    [% END %]
37    <li><a href="[% c.uri_for('/', c.req.path, {
38        distribution => loc.distribution,
39        release => loc.release,
40        arch => loc.arch,
41        start => 1,
42        }) %]">
43        [% loc.distribution | html %] / [% loc.release | html %] / [% loc.arch | html %]</a>
44    </li>
45    [% IF loop.last %]
46    </ul>
47    [% END %]
48    [% END %]
49</div>
Note: See TracBrowser for help on using the repository browser.