OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/inplace-edit/directives/field-display/display-user/display-user.directive.html

14 lines
1.1 KiB

<span class="user-avatar--container">
<img class="user-avatar--avatar"
ng-if="customEditorController.getUserName() && customEditorController.user.props.avatar"
ng-src="{{customEditorController.user.props.avatar}}" alt="Avatar" title="{{customEditorController.getUserName()}}" />
<span class="user-avatar--user-with-role">
<span class="user-avatar--user" ng-if="customEditorController.getUserName()">
<a ng-if="customEditorController.user.props.subtype !== 'Group'" ng-href="{{ customEditorController.userPath(customEditorController.user.props.id) }}" ng-bind="customEditorController.user.props.name"
class="user-field-user-link"/>
<span ng-if="customEditorController.user.props.subtype == 'Group'" ng-bind="customEditorController.user.props.name" class="user-field-user-link"/>
</span>
<span class="user-avatar--user" ng-if="!customEditorController.getUserName()"> - </span>
<span class="user-avatar--role" ng-if="customEditorController.user.props.role" ng-bind="customEditorController.user.props.role"/>
</span>
</span>