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 14410b475a
commit bccb292441
No known key found for this signature in database
GPG Key ID: 4657C7EBE42CC5CC
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 ) {