2014-09-05 18:09:22 +02:00
<?php $contactHelper = $this -> getHelper ( 'ContactFlags' ) ?>
< div class = "controls" >
2014-10-14 17:54:52 +02:00
<? = $this -> tabs ?>
2014-09-05 18:09:22 +02:00
< h1 > <? = $this -> translate ( 'Contact details' ) ?> </ h1 >
2014-11-06 22:38:06 +01:00
< div class = "circular" style = "background-image: url (' <? =
2014-09-05 18:09:22 +02:00
$this->href('static/gravatar', array('email' => $contact->contact_email))
?>')">< / div >
2014-08-27 16:13:25 +02:00
2014-09-05 18:09:22 +02:00
<?php if ( ! $contact ) : ?>
<? = $this -> translate ( 'No such contact' ) ?> : <? = $contactName ?>
< / div >
<?php return ; endif ?>
2014-08-27 16:36:52 +02:00
2014-09-05 18:09:22 +02:00
< table class = "avp" style = "width: 70%" >
< tbody >
< tr >
< th style = "width: 20%" > < / th >
< td >< strong > <? = $this -> escape ( $contact -> contact_alias ) ?> </ strong > (<? = $contact -> contact_name ?> )</ td >
< / tr >
<?php if ( $contact -> contact_email ) : ?>
< tr >
2015-02-23 16:42:25 +01:00
< th > <? = $this -> translate ( 'Email' ) ?> </ th >
2015-02-23 17:30:37 +01:00
< td >
< a href = "mailto: <? = $contact -> contact_email ; ?> " title = " <? = sprintf ( $this -> translate ( 'Send a mail to %s' ), $contact -> contact_alias ); ?> " aria-label = " <? = sprintf ( $this -> translate ( 'Send a mail to %s' ), $contact -> contact_alias ); ?> " >
<? = $this -> escape ( $contact -> contact_email ); ?>
< / a >
< / td >
2014-09-05 18:09:22 +02:00
< / tr >
<?php endif ?>
<?php if ( $contact -> contact_pager ) : ?>
< tr >
2015-02-23 16:42:25 +01:00
< th > <? = $this -> translate ( 'Pager' ) ?> </ th >
2014-09-05 18:09:22 +02:00
< td > <? = $this -> escape ( $contact -> contact_pager ) ?> </ td >
< / tr >
<?php endif ?>
< tr >
2015-02-23 16:42:25 +01:00
< th > <? = $this -> translate ( 'Hosts' ) ?> </ th >
2014-09-05 18:09:22 +02:00
< td > <? = $this -> escape ( $contactHelper -> contactFlags ( $contact , 'host' )) ?> < br />
<? = $this -> escape ( $contact -> contact_notify_host_timeperiod ) ?> </ td >
< / tr >
< tr >
2015-02-23 16:42:25 +01:00
< th > <? = $this -> translate ( 'Services' ) ?> </ th >
2014-09-05 18:09:22 +02:00
< td > <? = $this -> escape ( $contactHelper -> contactFlags ( $contact , 'service' )) ?> < br />
<? = $this -> escape ( $contact -> contact_notify_service_timeperiod ) ?> </ td >
< / tr >
< / tbody >
< / table >
<?php if ( count ( $commands )) : ?>
< h1 > <? = $this -> translate ( 'Commands' ) ?> :</ h1 >
< ul >
<?php foreach ( $commands as $command ) : ?>
< li > <? = $command -> command_name ?> </ li >
<?php endforeach ?>
< / ul >
<?php endif ?>
< h1 > <? = $this -> translate ( 'Notifications sent to this contact' ) ?> </ h1 >
2014-07-18 11:48:26 +02:00
< / div >
2014-09-05 18:09:22 +02:00
<?php if ( count ( $notifications )) : ?>
<? = $this -> render ( 'list/notifications.phtml' ) ?>
<?php else : ?>
< div class = "content" > <? = $this -> translate ( 'No notifications have been sent for this contact' ) ?> </ div >
<?php endif ?>