taiga-front/app/partials/common/components/assigned-to.jade

45 lines
1.4 KiB
Plaintext

.user-avatar(class!="<% if (isIocaine) { %> is-iocaine <% }; %>")
img(src!="<%- photo %>", alt!="<%- fullName %>")
<% if (isIocaine) { %>
.iocaine-symbol(title="{{ 'TASK.TITLE_ACTION_IOCAINE' | translate }}")
include ../../../svg/iocaine.svg
<% }; %>
.assigned-to
<% if (isUnassigned) { %>
.assigned-title {{ "COMMON.ASSIGNED_TO.NOT_ASSIGNED" | translate }}
<% } else { %>
.assigned-title {{ "COMMON.FIELDS.ASSIGNED_TO" | translate }}
<% }; %>
.assigned-to-options
a(
href=""
title="{{ 'COMMON.ASSIGNED_TO.TITLE_ACTION_EDIT_ASSIGNMENT'|translate }}"
class!="user-assigned <% if (isEditable) { %>editable<% }; %>"
)
span.assigned-name
<% if (fullNameVisible) { %>
<%- fullName %>
<% }; %>
<% if (isEditable && !isUnassigned) { %>
span.icon.icon-arrow-bottom
<% }; %>
<% if (isEditable && isUnassigned) { %>
span(translate="COMMON.OR")
| &nbsp;
a.assign-to-me(
href="#"
title="{{'COMMON.ASSIGNED_TO.SELF' | translate}}"
)
span {{ "COMMON.ASSIGNED_TO.SELF" | translate }}
<% }; %>
<% if (isEditable && !isUnassigned) { %>
a.icon.icon-delete(
href=""
title="{{'COMMON.ASSIGNED_TO.DELETE_ASSIGNMENT' | translate}}"
)
<% } %>