Changeset 241

Show
Ignore:
Timestamp:
08/31/08 22:32:31 (4 months ago)
Author:
pwh
Message:
  • bridge_management_controller.rb: Added a subtitle in show_bridge_group.


  • show_bridge_group.html.erb: Display the bridge hostname in bold if this
    is the root bridge for the group.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nethorus/app/controllers/bridge_management_controller.rb

    r219 r241  
    158158  def show_bridge_group 
    159159   
     160    @subtitle = "Show Bridge Group" 
     161   
    160162   
    161163    # Check that we've been given a valid root bridge ID 
  • nethorus/app/views/bridge_management/show_bridge_group.html.erb

    r219 r241  
    1 <h1>Spanning Tree Information for <%=h params[:root_bridge] %></h1> 
     1<h1>Spanning Tree Bridges with root bridge <%=h params[:root_bridge] %></h1> 
    22 
    33<h2>Bridges</h2> 
     4 
     5 
    46 
    57<table class="vert"> 
     
    1012 
    1113<% @bridges.each do |bridge| %> 
     14 <% if bridge.is_the_root_bridge? == :true %> 
     15 <tr style="font-weight: bold;"> 
     16 <% else %> 
    1217 <tr> 
     18 <% end %> 
    1319  <td> 
    1420   <%=h bridge.device.hostname %> 
    15    <% if bridge.is_the_root_bridge? %> 
    16    <% end %> 
    1721  </td> 
    1822  <td><%=h bridge.dot1d_base_bridge_address %></td>