Added badge on organisations showing if they are a user or not

This commit is contained in:
Tom Bloor 2017-11-20 13:02:07 +00:00
parent baffe144f3
commit c3ae7a2615
2 changed files with 9 additions and 0 deletions

View file

@ -123,4 +123,10 @@ sub to_bool {
}
}
sub user {
my $self = shift;
return $self->entity->user;
}
1;

View file

@ -28,6 +28,9 @@
% if ( $org_result->pending ) {
<span class="badge badge-warning">Unvalidated</span>
% }
% if ( defined $org_result->user ) {
<span class="badge badge-info">User</span>
% }
% if ( !defined $org_result->is_local ) {
<span class="badge badge-danger">Locality Not Set</span>
% } elsif ( $org_result->is_local ) {