Changeset 11449 for trunk

Show
Ignore:
Timestamp:
09/26/08 10:49:02 (3 months ago)
Author:
ejhernandez@…
Message:

Added changelog and version elements to system updates closes #1126 (spent 9.75)

Location:
trunk/client/software/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/client/software/src/EBox/Software.pm

    r10400 r11449  
    295295#       by other process 
    296296# 
    297 sub listUpgradablePkgs  
     297sub listUpgradablePkgs 
    298298{ 
    299299        my ($self,$clear) = @_; 
  • trunk/client/software/src/templates/updates.mas

    r5851 r11449  
    88</%init> 
    99% if (@upgradables != 0) { 
     10        <script src="/data/js/scriptaculous/scriptaculous.js" type="text/javascript"></script> 
    1011        <p><%__('Updates are available for the following system components')%>:</p> 
    1112        <form id='updates' action='InstallPkgs' method='post'> 
     
    1516                                <th class='tleft'><%__('Component')%></th> 
    1617                                <th class='tleft'><%__('Description')%></th> 
     18                                <th class='tleft'><%__('Version')%></th> 
    1719                                <th class='thOptions'><%__('Update')%></th> 
    1820                        </tr> 
     
    2123%       foreach my $pkg (@upgradables) { 
    2224                        <tr class='border'> 
    23                                 <td><%$pkg->{name}%></td> 
     25                                <td> 
     26%         if ( $pkg->{security} ) { 
     27                                <img src="/data/images/add.gif" alt="more info" 
     28%           if ( $pkg->{changelog} ) { 
     29                                     onclick="$('<% $pkg->{name} %>_changelog').toggle() 
     30                                                             return false;" 
     31%           } 
     32                                /> 
     33%         } 
     34                                <%$pkg->{name}%></td> 
    2435                                <td><%$pkg->{description}%></td> 
     36                                <td><%$pkg->{version}%></td> 
    2537                                <td class='tcenter'> 
    2638                                        <input type='checkbox' value='yes'  
     
    2840                                </td> 
    2941                        </tr> 
    30 %       } 
     42%         if ( $pkg->{security} and $pkg->{changelog}) { 
     43                        <tr style="display:none"></tr> 
     44                        <tr class='trimp' id="<% $pkg->{name} %>_changelog" style="display:none"> 
     45                                <td colspan='4'> 
     46                                   <pre><% $pkg->{changelog} %></pre> 
     47                                </td> 
     48                        </tr> 
     49%         } 
     50%       } 
    3151                        <tr class='trimp'> 
    32                                 <td colspan='2'> 
     52                                <td colspan='3'> 
    3353                                        <strong><%__('Update all packages')%></strong> 
    3454                                </td>