logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

drafts.vue (735B)


  1. <template>
  2. <div class="Drafts">
  3. <div class="panel panel-default">
  4. <div class="panel-heading">
  5. <div class="title">
  6. {{ $t('drafts.drafts') }}
  7. </div>
  8. </div>
  9. <div class="panel-body">
  10. <p v-if="drafts.length === 0">
  11. {{ $t('drafts.no_drafts') }}
  12. </p>
  13. <List
  14. v-else
  15. :items="drafts"
  16. :non-interactive="true"
  17. >
  18. <template #item="{ item: draft }">
  19. <Draft
  20. class="draft"
  21. :draft="draft"
  22. />
  23. </template>
  24. </List>
  25. </div>
  26. </div>
  27. </div>
  28. </template>
  29. <script src="./drafts.js"></script>
  30. <style lang="scss">
  31. .draft {
  32. margin: 1em 0;
  33. }
  34. </style>