Changeset 806 for trunk/templates


Ignore:
Timestamp:
03/07/16 18:05:24 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Promote VRFs to top-level entities. See #54.

1 of mumble; convert index page to list VRFs instead of master blocks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/index.tmpl

    r687 r806  
    22<div class="center">
    33<table class="center altrows" width="98%" cellspacing="0">
    4 <TMPL_IF masterlist>
     4<TMPL_IF vrflist>
    55<tr class="heading">
    6 <td>Master netblock</td>
    7 <td>Primary VRF</td>
    8 <td>Aggregation/Containers</td>
    9 <td>Allocated netblocks</td>
    10 <td>Free netblocks</td>
    11 <td>Largest free block</td>
     6<td>VRF</td>
     7<td>Comment</td>
    128</tr>
    13 <TMPL_LOOP NAME=masterlist>
     9<TMPL_LOOP NAME=vrflist>
    1410<tr>
    15 <td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=master></a></td>
    16 <td><TMPL_VAR NAME=vrf></td>
    17 <td><TMPL_VAR NAME=routed></td>
    18 <td><TMPL_VAR NAME=allocated></td>
    19 <td><TMPL_VAR NAME=free></td>
    20 <td><TMPL_VAR ESCAPE=HTML NAME=bigfree></td>
     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>
    2113</tr>
    2214</TMPL_LOOP>
    2315<TMPL_ELSE>
    2416<tr class="heading">
    25 <td>No netblock data</td>
     17<td>No VRFs defined</td>
    2618</tr>
    2719</TMPL_IF>
    2820</table>
    29 <TMPL_IF addmaster>
     21<TMPL_IF addvrf>
    3022<br>
    31 <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addmaster">Add new master block</a>
     23<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=addvrf">Add new VRF</a>
    3224</TMPL_IF>
    33 <br><br>
    34 Note:  Free blocks noted here include both routed and unrouted blocks.
    3525</div>
    36 
Note: See TracChangeset for help on using the changeset viewer.