fix: avatar -> picture

This commit is contained in:
jblemee 2018-12-10 17:30:56 +01:00
parent fc9b1f2f99
commit 0f04796f62
6 changed files with 14 additions and 22 deletions

View File

@ -8,8 +8,8 @@
sib-display( sib-display(
id-suffix='members', id-suffix='members',
data-fields='user-thumb', data-fields='user-thumb',
set-user-thumb='member.avatar, first_name, last_name', set-user-thumb='profile.picture, first_name, last_name',
widget-member.avatar='sib-display-img', widget-profile.picture='sib-display-img',
bind-resources bind-resources
) )

View File

@ -6,8 +6,8 @@ div.grid-layer
data-src=`${sdn}/job-offers/`, data-src=`${sdn}/job-offers/`,
data-fields='date, user-thumb, title, description, roles, skills', data-fields='date, user-thumb, title, description, roles, skills',
widget-skills='sib-display-lookuplist', widget-skills='sib-display-lookuplist',
set-user-thumb='author.member.avatar, author.first_name, author.last_name, author.groups', set-user-thumb='author.profile.picture, author.first_name, author.last_name, author.groups',
widget-author.member.avatar='sib-display-img', widget-author.profile.picture='sib-display-img',
set-date='closingDate, creationDate', set-date='closingDate, creationDate',
set-creation='creationDate', set-creation='creationDate',
widget-closingDate='hdapp-closing-date', widget-closingDate='hdapp-closing-date',

View File

@ -1,14 +1,6 @@
.form-view .form-view
label.d-none(for='avatar-input')
img#avatar-preview(src='', style='width: 100%;')
input#avatar-input.d-none(
type='file',
accept='image/*',
name='avatar',
value='',
)
sib-form.block( sib-form.block(
data-fields='user, avatar, bio, cell, jabberID, number, pseudo, skills, website', data-fields='user, picture, bio, cell, jabberID, number, pseudo, skills, website',
widget-user='hdapp-usereditinfo', widget-user='hdapp-usereditinfo',
range-cell=`${sdn}/cells/`, widget-skills='sib-form-multiple-dropdown', range-cell=`${sdn}/cells/`, widget-skills='sib-form-multiple-dropdown',
range-skills=`${sdn}/skills/`, range-skills=`${sdn}/skills/`,

View File

@ -2,7 +2,7 @@ template#chat-link
sib-link(next="member-chat") ${value} sib-link(next="member-chat") ${value}
sib-display#member-info( sib-display#member-info(
data-fields='available, header, name, pseudonym, infos, skills', data-fields='available, header, name, pseudonym, infos, skills',
set-header='avatar', set-header='picture',
set-infos='cell, roles,send, user.email, number, foaf:homepage', set-infos='cell, roles,send, user.email, number, foaf:homepage',
set-name='user.first_name, user.last_name', set-name='user.first_name, user.last_name',
set-pseudonym='before-pseudo, pseudo', set-pseudonym='before-pseudo, pseudo',
@ -10,7 +10,7 @@ sib-display#member-info(
value-send='SEND A MESSAGE', value-send='SEND A MESSAGE',
template-send='chat-link', template-send='chat-link',
widget-available='hdapp-available', widget-available='hdapp-available',
widget-avatar='sib-display-img', widget-picture='sib-display-img',
widget-user='hdapp-userinfo', widget-user='hdapp-userinfo',
widget-cell='hdapp-usercell', widget-cell='hdapp-usercell',
widget-number='sib-display-tel', widget-number='sib-display-tel',

View File

@ -8,7 +8,7 @@ div.grid-layer
sib-display#profiles-list( sib-display#profiles-list(
data-src=`${sdn}/members/`, data-src=`${sdn}/members/`,
data-fields='header, infos, group, role, more', data-fields='header, infos, group, role, more',
set-header='avatar, user, pseudonym, bio, send', set-header='picture, user, pseudonym, bio, send',
set-infos='cell, roles, user.email, foaf:homepage, skills', set-infos='cell, roles, user.email, foaf:homepage, skills',
set-pseudonym='before-pseudo,pseudo' set-pseudonym='before-pseudo,pseudo'
label-skills='skill', label-skills='skill',
@ -17,7 +17,7 @@ div.grid-layer
template-more='hdapp-link-more', template-more='hdapp-link-more',
value-send='SEND A MESSAGE', value-send='SEND A MESSAGE',
template-send='chat-link', template-send='chat-link',
widget-avatar='sib-display-img', widget-picture='sib-display-img',
widget-user='hdapp-userinfo', widget-user='hdapp-userinfo',
widget-foaf:hompage='hdapp-hyperlink', widget-foaf:hompage='hdapp-hyperlink',
widget-cell='hdapp-usercell', widget-cell='hdapp-usercell',

View File

@ -29,10 +29,10 @@
div.containerH div.containerH
sib-display.members-list-condensed( sib-display.members-list-condensed(
id-suffix='team', id-suffix='team',
data-fields='member.avatar, member.user, member.roles', data-fields='profile.picture, profile.user, groups',
widget-member.avatar='sib-display-img', widget-profile.picture='sib-display-img',
widget-member.user='hdapp-userinfo', widget-profile.user='hdapp-userinfo',
widget-member.roles='sib-display-lookuplist', widget-groups='sib-display-lookuplist',
next='member', next='profile',
bind-resources, bind-resources,
) )