Changeset 735 for trunk


Ignore:
Timestamp:
05/27/15 17:56:44 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

A little more surrounding cleanup:

  • Tweak merge confirmation template to show the scope or not on different criteria for clarity.
  • Remove call to retrieve free blocks for listing on the confirmation page.

See #8

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r733 r735  
    12551255  $page->param(oldtype => $disp_alloctypes{$binfo->{type}});
    12561256  $page->param(ismaster => $binfo->{type} eq 'mm');
    1257   $page->param(iscontainer => $webvar{alloctype} eq 'rm' || $webvar{alloctype} =~ /.c/);
    12581257  $page->param(ispool => $webvar{alloctype} =~ /.[dp]/);
    12591258  $page->param(isleaf => $webvar{alloctype} =~ /.[enr]/);
     
    12681267  my $malloc_list = listForMerge($ip_dbh, $binfo->{parent_id}, $newblock, 'a');
    12691268  $page->param(mergealloc => $malloc_list);
    1270   my $fb_list = listForMerge($ip_dbh, $binfo->{parent_id}, $newblock, 'f');
    1271   $page->param(mergefree => $fb_list);
    12721269
    12731270  $page->param(vis_scope => $merge_display{$webvar{scope}});
  • trunk/templates/confmerge.tmpl

    r733 r735  
    4444</tr>
    4545
    46 <TMPL_IF iscontainer>
     46<TMPL_UNLESS ismaster>
     47<TMPL_UNLESS isleaf>
    4748<tr>
    4849<td>Merge scope:</td>
    4950<td><TMPL_VAR NAME=vis_scope></td>
    5051</tr>
    51 </TMPL_IF>
     52</TMPL_UNLESS>
     53</TMPL_UNLESS>
    5254
    5355<TMPL_IF ispool>
     
    5557<td colspan="2" class="warning">
    5658Warning:  Any end-use suballocations within <TMPL_VAR NAME=newblock> will be converted<br>
    57 to clusters of "used" IPs on a best-effort basis in this merge.<br>
    58 Use the Back button and select a container type if you wish to keep these.
     59to clusters of "used" IPs on a best-effort basis as per the merge scope above.<br>
     60Use the Back button and select a container type if you wish to keep these as netblocks.
    5961</td>
    6062</tr>
Note: See TracChangeset for help on using the changeset viewer.