{# @description A contributor's photo or logo through django-mvp's c-avatar. A person is round, an organization is a rounded box on base-300 grey, and without an image it shows the contributor's initials. Decorative by default: put the name beside it, or pass link or label when it stands alone. #} {# @prop contributor:text | description:"A Person, an Organization, or a Contribution crediting one." #} {# @prop size:select['xs','sm','md','lg','xl','xxl'] | default:md | description:"The c-avatar size." #} {# @prop link:boolean | description:"Wrap the avatar in a link to the contributor's page, named for them." #} {# @prop label:boolean | description:"Name the avatar for assistive technology without linking it." #} {# @prop class:text | description:"Extra CSS classes on the avatar." #} {% load contributor_tags %} {% with c=contributor|as_contributor %} {% if c %} {% if link %}{% endif %} {% if link %}{% endif %} {% endif %} {% endwith %}