* Drag and drop files to comment editor to add a file attachment * Using Vue to render comments Since comments now has attachments we need to update the schemas ./manage.py maintenance replace_pillar_node_type_schemas
12 lines
211 B
JavaScript
12 lines
211 B
JavaScript
const TEMPLATE = `
|
|
<div class="user-avatar">
|
|
<img
|
|
:src="user.gravatar"
|
|
:alt="user.full_name">
|
|
</div>
|
|
`;
|
|
|
|
Vue.component('user-avatar', {
|
|
template: TEMPLATE,
|
|
props: {user: Object},
|
|
}); |