Added badge on organisations showing if they are a user or not
This commit is contained in:
parent
14410b475a
commit
bccb292441
2 changed files with 9 additions and 0 deletions
|
@ -123,4 +123,10 @@ sub to_bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub user {
|
||||||
|
my $self = shift;
|
||||||
|
|
||||||
|
return $self->entity->user;
|
||||||
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
|
@ -28,6 +28,9 @@
|
||||||
% if ( $org_result->pending ) {
|
% if ( $org_result->pending ) {
|
||||||
<span class="badge badge-warning">Unvalidated</span>
|
<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 ) {
|
% if ( !defined $org_result->is_local ) {
|
||||||
<span class="badge badge-danger">Locality Not Set</span>
|
<span class="badge badge-danger">Locality Not Set</span>
|
||||||
% } elsif ( $org_result->is_local ) {
|
% } elsif ( $org_result->is_local ) {
|
||||||
|
|
Reference in a new issue