src_js/iconolab-bundle/src/components/editor/CommentList.vue
changeset 328 c23659daa42d
parent 326 b962ae792616
child 351 2d5557c01f95
equal deleted inserted replaced
327:44a122f0f2de 328:c23659daa42d
     1 <template>
     1 <template>
     2     <div v-show="comments.length > 0">
     2     <div v-show="annotation">
     3         <label class="form-label">Commentaires</label>
     3         <label class="form-label">Commentaires</label>
       
     4         <div v-show="comments.length === 0" class="alert alert-info">Pas de commentaire pour le moment.</div>
     4         <comment
     5         <comment
     5             v-for="comment in comments"
     6             v-for="comment in comments"
     6             v-bind:comment="comment.comment"
     7             v-bind:comment="comment.comment"
     7             v-bind:username="comment.user_name"
     8             v-bind:username="comment.user_name"
     8             v-bind:date="comment.submit_date"></comment>
     9             v-bind:date="comment.submit_date"></comment>
    38             }
    39             }
    39         }
    40         }
    40     }
    41     }
    41 
    42 
    42 </script>
    43 </script>
       
    44 
       
    45 <style scoped>
       
    46 .alert {
       
    47     padding: 10px;
       
    48     font-size: 12px;
       
    49 }
       
    50 </style>