<% if ($appts->{'__stash'}->{'header'} eq 'yes') { %>
<%= $appts->{$a}->{'formatted_name'} %>
<% } %>
<%= $header || $appts->{$a}->{'header'} %>
<% foreach my $p ( @{$pseudonyms} ) { %>
<% if ($p->{'classmates'}) { %>
<% if ($p->{'place'} eq 'top') { %>
<% } %>
<% } %>
<% } %>
<%= include 'apps/app_measures', settings => $appts->{$a}->{'setting'}, a => $a %>
<% my $template = $gb::pos->{$appts->{$a}->{'setting'}->{'pos'}}->{'app_template'}; %>
<% if ($template) { %>
<%= include $template, appts => $appts, a => $a %>
<% } else { %>
<% } %>
{}
<%= include 'apps/app_details', appts => $appts, a => $a, app => {} %>
<% if ($from ne 'store') { %>
<% foreach my $p ( @{$pseudonyms} ) { %>
<% if ($p->{'classmates'}) { %>
<% if ($p->{'place'} eq 'mid') { %>

<% } %>
<% } %>
<% } %>
<% foreach my $p ( @{$pseudonyms} ) { %>
<% if ($p->{'classmates'}) { %>
<% if ($p->{'colour'} eq 'bottom') { %>

<% } %>
<% } %>
<% } %>
<% if ($appts->{$a}->{'setting'}->{'command'}) { %>

<% } %>
<% if ($appts->{$a}->{'setting'}->{'kill'}) { %>

<% } %>
<% if ($appts->{$a}->{'setting'}->{'web'}) { %>

<% } %>
<% my $remote_machines = &subs::db_query('select device from remote_machines where connection = ?', 'active')->hashes; %>

<% if ($appts->{$a}->{'setting'}->{'phone'} && ($device eq 'mobile' || grep { $_->{'device'} eq 'mobile' } @{$remote_machines} ) ) { %>

<% } %>
<% if ($device eq 'mobile' || grep { $_->{'device'} eq 'mobile' } @{$remote_machines} ) { %>

<% } %>
<% if ($device eq 'computer' || $device eq 'server' || grep { $_->{'device'} eq 'computer' || $_->{'device'} eq 'server' } @{$remote_machines} ) { %>

<% } %>
{$a}->{'setting'}->{'public'} eq 'on' ) { %>status="on" style="background-color:green"<% } else { %>
status="off" style="background-color:black;" <% } %>
src="/icons/public.png"
/>
{$a}->{'setting'}->{'enc'} eq 'on' ) { %>status="on" style="background-color:red"<% } else { %>
status="off" style="background-color:black;" <% } %>
src="/icons/enc_button.png"
/>
{$a}->{'setting'}->{'notification'} eq 'on' ) { %>status="on" style="background-color:yellow"<% } else { %>
status="off" style="background-color:darkgrey" <% } %>
src="/images/decipherable/bell.png" />
![]()
{$a}->{'setting'}->{'toggle'} eq 'on' ) { %>src="/images/decipherable/on.png" status="on" style="background-color:yellow"<% } else { %>
status="off" <% } %>
src="/images/decipherable/off.png" />
<% } %>
<% } %>