Changeset 192


Ignore:
Timestamp:
12/27/10 00:52:43 (13 years ago)
Author:
nanardon
Message:
  • show other rpm with same name
Location:
server/trunk/web/root/templates/html/rpms
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/root/templates/html/rpms/location.html

    r112 r192  
    33[% INCLUDE 'rpms/menu.tt' %] 
    44 
    5 [% INCLUDE 'rpms/location.tt' %] 
     5 
     6<div id="body_main"> 
     7    [% INCLUDE 'rpms/location.tt' %] 
     8</div> 
     9 
     10<div id="body_additional"> 
     11    [% INCLUDE 'rpms/related.tt' %] 
     12</div> 
     13 
     14 
  • server/trunk/web/root/templates/html/rpms/related.tt

    r113 r192  
    11<!-- $Id$ --> 
    22[% info = c.forward('/rpms/basicinfo', [ pkgid ]) %] 
     3[% thisinfo = info %] 
    34[% IF info.issrc %] 
    45[% FOREACH pkgid = c.forward('/rpms/binaries', [ pkgid ]) %] 
     
    3132 
    3233[% END %] 
     34 
     35[% FOREACH pkgid = c.forward('/search/rpm/byname', [ { rows => 5, src => 
     36thisinfo.issrc }, thisinfo.name ]).slice(0, 4) %] 
     37[% IF loop.first %] 
     38<p>Other version of this rpm:</p> 
     39<ul> 
     40[% END %] 
     41[% info = c.forward('/rpms/basicinfo', [ pkgid ]) %] 
     42<li><a href="[% c.uri_for('/rpms', pkgid ) %]"> 
     43[% info.name | html %]-[% info.version | html %]-[% info.release %].[% info.arch %] 
     44</a></li> 
     45[% IF loop.last %] 
     46</ul> 
     47[% END %] 
     48[% END %] 
Note: See TracChangeset for help on using the changeset viewer.