Ignore:
Timestamp:
02/27/2006 02:42:13 AM (6 years ago)
Author:
cirrus
Message:

Add: View button on the my nodes menu view
Add: View button on the node edit page
Add: Edit button on the node view page
Closes #80
Change: Indentation on a couple of HTML templates (including a couple of forgotten </tr>'s)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/basic/includes/pages/nodes/nodes_view.tpl

    r140 r144  
    2222<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="table-page"> 
    2323<tr> 
    24 <td class="table-page-split"> 
    25 {include assign=t1 file="includes/pages/nodes/node_info.tpl"} 
    26 {include file="generic/title3.tpl" title="`$lang.node_info`" content="$t1"} 
    27 {include file="generic/title4.tpl" title="`$lang.db.nodes__info`" content="`$node.info`"|escape|nl2br} 
    28 {include file="generic/title5.tpl" title="`$lang.ip_ranges`" content="`$table_ip_ranges`"} 
    29 {include file="generic/title5.tpl" title="`$lang.dns_zones`" content="`$table_dns`"} 
    30 {include file="generic/title5.tpl" title="`$lang.dns_nameservers`" content="`$table_nameservers`"} 
    31 <br /> 
    32 <div align="center">{include file=generic/link.tpl content="`$lang.node_plot_link`" onclick="javascript: t = window.open('$link_plot_link', 'popup_plot_link', 'width=600,height=420,toolbar=0,resizable=1,scrollbars=1'); t.focus(); return false;"}</div> 
    33 </td> 
    34 <td class="table-page-split"> 
    35 <table bgcolor="#DBE0D7" cellpadding="0" cellspacing="2"> 
    36 <tr><td align="left">{include file=generic/link.tpl link=$link_gearth content="Google earth"}</td><td align="right">{include file=generic/link.tpl link=$link_fullmap content="`$lang.new_window`" target="_blank"}</td></tr> 
    37 <tr><td style="font-size:12px; text-align:center; width: 500px; height: 500px" colspan="2"> 
    38 {if $gmap_key_ok} 
    39 <div id="map" style="width: 500px; height: 500px"></div> 
    40 {else} 
    41 {$lang.message.error.gmap_key_failed.body|wordwrap:40|nl2br} 
    42 {/if} 
    43 </td></tr> 
    44 <tr><td style="font-size:12px;"> 
    45 <input type="checkbox" name="p2p" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_orange.png" alt=$lang.backbone}{$lang.backbone} 
    46 <input type="checkbox" name="aps" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_green.png" alt=$lang.aps}{$lang.aps} 
    47 <input type="checkbox" name="clients" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_blue.png" alt=$lang.clients}{$lang.clients} 
    48 <input type="checkbox" name="unlinked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_red.png" alt=$lang.unlinked}{$lang.unlinked} 
    49 </td> 
    50 </table> 
    51 </td> 
     24        <td class="table-page-split"> 
     25                {include assign=t1 file="includes/pages/nodes/node_info.tpl"} 
     26                {if $edit_node}{include assign=ed file="generic/link.tpl" content="`$lang.edit_node`" link=$edit_node}{/if} 
     27                {include file="generic/title3.tpl" title="`$lang.node_info` $ed" content="$t1"} 
     28                {include file="generic/title4.tpl" title="`$lang.db.nodes__info`" content="`$node.info`"|escape|nl2br} 
     29                {include file="generic/title5.tpl" title="`$lang.ip_ranges`" content="`$table_ip_ranges`"} 
     30                {include file="generic/title5.tpl" title="`$lang.dns_zones`" content="`$table_dns`"} 
     31                {include file="generic/title5.tpl" title="`$lang.dns_nameservers`" content="`$table_nameservers`"} 
     32                <br /> 
     33                <div align="center">{include file=generic/link.tpl content="`$lang.node_plot_link`" onclick="javascript: t = window.open('$link_plot_link', 'popup_plot_link', 'width=600,height=420,toolbar=0,resizable=1,scrollbars=1'); t.focus(); return false;"}</div> 
     34        </td> 
     35        <td class="table-page-split"> 
     36                <table bgcolor="#DBE0D7" cellpadding="0" cellspacing="2"> 
     37                        <tr> 
     38                                <td align="left" nowrap="nowrap">{include file=generic/link.tpl link=$link_gearth content="Google earth"}</td> 
     39                                <td align="right" nowrap="nowrap">{include file=generic/link.tpl link=$link_fullmap content="`$lang.new_window`" target="_blank"}</td> 
     40                        </tr> 
     41                        <tr> 
     42                                <td style="font-size:12px; text-align:center; width: 500px; height: 500px" colspan="2"> 
     43                                        {if $gmap_key_ok} 
     44                                        <div id="map" style="width: 500px; height: 500px"></div> 
     45                                        {else} 
     46                                        {$lang.message.error.gmap_key_failed.body|wordwrap:40|nl2br} 
     47                                        {/if} 
     48                                </td> 
     49                        </tr> 
     50                        <tr> 
     51                                <td style="font-size:12px;" colspan="2" nowrap="nowrap"> 
     52                                        <input type="checkbox" name="p2p" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_orange.png" alt=$lang.backbone}{$lang.backbone} 
     53                                        <input type="checkbox" name="aps" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_green.png" alt=$lang.aps}{$lang.aps} 
     54                                        <input type="checkbox" name="clients" checked="checked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_blue.png" alt=$lang.clients}{$lang.clients} 
     55                                        <input type="checkbox" name="unlinked" onclick="gmap_refresh();" />{html_image file="`$img_dir`/gmap/mm_20_red.png" alt=$lang.unlinked}{$lang.unlinked} 
     56                                </td> 
     57                        </tr> 
     58                </table> 
     59        </td> 
    5260</tr> 
    5361<tr> 
Note: See TracChangeset for help on using the changeset viewer.