Changeset 1746

Show
Ignore:
Timestamp:
12/02/08 10:04:50 (1 month ago)
Author:
ton
Message:

Hide Atom feed information for contacts using non-local realms
as the Catalyst authentication for /atom doesn't use the realms

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/CHANGES

    r1738 r1746  
    99        Fixed installation on Redhat platforms, where a fresh install shows post install errors 
    1010        Removed java dependency for opsview-core, instead relying on opsview-reports to provide 
     11        If realm != local, then hide the Atom feed details on the contact page as this does not use the realm of the contact to authenticate 
    1112 
    12132.14.1 17th November 2008 
  • trunk/opsview-web/root/admin/contact/edit_form_fields

    r1498 r1746  
    5757    default => realms.default, 
    5858    labels => realms.labels, 
    59     onchange => "if (this.value == 'local') { Element.show('password_details') } else { Element.hide('password_details') }", 
     59    onchange => "if (this.value == 'local') { Element.show('password_details'); Element.show('web_feed_details'); } else { Element.hide('password_details'); Element.hide('web_feed_details'); }", 
    6060    help_keyword => "authentication_realm", 
    6161  ); 
     
    6363 
    6464IF object.realm && object.realm != "local"; 
    65   hide_passwords = "style='display:none'"; 
    66 END; 
    67  
    68 %]<div id="password_details" [% hide_passwords %]>[% 
     65  hide_non_local_realm = "style='display:none'"; 
     66END; 
     67 
     68%]<div id="password_details" [% hide_non_local_realm %]>[% 
    6969 
    7070IF !clone && object.password; 
     
    200200); 
    201201 
    202 %]</div>[% 
     202%]</div> 
     203<div id="web_feed_details" [% hide_non_local_realm %]> 
     204[% 
    203205 
    204206checkbox( 
     
    251253); 
    252254 
    253 %]</div></div> 
     255%]</div></div></div> 
    254256 
    255257<script type="text/javascript">