Ignore:
Timestamp:
03/10/16 18:02:41 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Introduce a more "relaxed" layout for listing VRFs and master netblocks -
interleave the lists of master blocks for each VRF with the VRF heading,
instead of formally separating them onto different pages.

Refine and adapt showvrfs.tmpl to show the master blocks instead of
reinventing another wheel.

See #54.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/templates/index2.tmpl

    r815 r818  
    11<br>
     2<table width="100%" cellspacing="0">
     3<TMPL_IF vrflist>
     4<TMPL_LOOP NAME=vrflist>
     5<tr class="heading row0"><td width="20%">
     6<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showvrf&amp;vrf=<TMPL_VAR NAME=vrf>"><TMPL_VAR NAME=vrf></a>
     7</td><td width="40%"><TMPL_VAR comment></td>
     8<td>&nbsp;</td>
     9</tr>
     10<tr><td colspan="3">
     11<TMPL_VAR NAME=vrfinfo>
     12</td></tr>
     13<tr><td colspan=3><br><hr class="w90"></td></tr>
     14</TMPL_LOOP>
     15</table>
     16<TMPL_ELSE>
     17<div class="heading">No VRFs defined</div>
     18</TMPL_IF>
     19<TMPL_IF addvrf>
    220<div class="center">
    3 <table class="center altrows" width="98%" cellspacing="0">
    4 <TMPL_IF vrflist>
    5 <tr class="heading">
    6 <td>VRF</td>
    7 <td>Comment</td>
    8 </tr>
    9 <TMPL_LOOP NAME=vrflist>
    10 <tr>
    11 <td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showvrf&amp;vrf=<TMPL_VAR NAME=vrf>"><TMPL_VAR NAME=vrf></a></td>
    12 <td><TMPL_VAR comment></td>
    13 </tr>
    14 </TMPL_LOOP>
    15 <TMPL_ELSE>
    16 <tr class="heading">
    17 <td>No VRFs defined</td>
    18 </tr>
    19 </TMPL_IF>
    20 </table>
    21 <TMPL_IF addvrf>
    2221<br>
    2322<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addvrf">Add new VRF</a>
     23</div>
    2424</TMPL_IF>
    25 </div>
Note: See TracChangeset for help on using the changeset viewer.