[220] | 1 | <!-- $Id$ --> |
---|
| 2 | |
---|
| 3 | [% INCLUDE 'rpms/menu.tt' %] |
---|
| 4 | |
---|
[244] | 5 | <div id="sophie_body_main"> |
---|
| 6 | |
---|
[220] | 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"> |
---|
[236] | 11 | [% INCLUDE 'ajax/forms/distribselect.tt' form = 'analysis_form' %] |
---|
[220] | 12 | </span> |
---|
[326] | 13 | |
---|
[276] | 14 | <input type="submit" name="start"> |
---|
[326] | 15 | [% c.prototype.link_to_remote( '<img src="' _ |
---|
| 16 | c.uri_for('/static/images/openicons/32x32', 'page_text_check.png') _ |
---|
| 17 | '" title="Set this choice as default" alt="Set" style="height: 1em">', { |
---|
| 18 | url => c.uri_for('/user/prefs/set_default_distrib'), |
---|
| 19 | with => "Form.serialize('analysis_form')", |
---|
| 20 | }, { entities => '' }, ) %] |
---|
[220] | 21 | </form> |
---|
| 22 | |
---|
[276] | 23 | [% IF c.req.param('start') %] |
---|
| 24 | <div id="sophie_analyse"> |
---|
[277] | 25 | <p><img src="[% c.uri_for('/static', 'loading', 'computing.gif' ) %]" |
---|
| 26 | alt="Loading..."></p> |
---|
[220] | 27 | </div> |
---|
[276] | 28 | <script type="text/javascript"> |
---|
| 29 | new Ajax.Updater( |
---|
| 30 | 'sophie_analyse', |
---|
| 31 | '[% c.uri_for('/', c.req.path) %]', |
---|
| 32 | { asynchronous: 1, parameters: 'ajax=1&analyse=1' } |
---|
| 33 | ); |
---|
| 34 | </script> |
---|
| 35 | [% END %] |
---|
| 36 | </div> |
---|
[220] | 37 | |
---|
[244] | 38 | |
---|
| 39 | <div id="sophie_body_additional"> |
---|
| 40 | [% FOREACH loc = c.forward('/rpms/location', [ pkgid ]) %] |
---|
| 41 | [% IF loop.first %] |
---|
| 42 | <p>Analyse over:</p> |
---|
| 43 | <ul> |
---|
| 44 | [% END %] |
---|
| 45 | <li><a href="[% c.uri_for('/', c.req.path, { |
---|
| 46 | distribution => loc.distribution, |
---|
| 47 | release => loc.release, |
---|
| 48 | arch => loc.arch, |
---|
[276] | 49 | start => 1, |
---|
[244] | 50 | }) %]"> |
---|
| 51 | [% loc.distribution | html %] / [% loc.release | html %] / [% loc.arch | html %]</a> |
---|
| 52 | </li> |
---|
| 53 | [% IF loop.last %] |
---|
| 54 | </ul> |
---|
| 55 | [% END %] |
---|
| 56 | [% END %] |
---|
| 57 | </div> |
---|