Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. <template lang="html">
  2. <div class="">
  3. <b-row v-for="reply in thread.replies" :key="reply.id">
  4. <b-col sm="3" class="text-center">
  5. <img src="https://goo.gl/31wa63" class="rounded-circle mb-3" alt="" style="width:60px; heigth:60px">
  6. <br>
  7. <h4>{{reply.user.name}}</h4>
  8. <div class="d-flex justify-content-center">
  9. <div class="chip">
  10. <i class="material-icons">star</i> Sayajin
  11. </div>
  12. </div>
  13. </b-col>
  14. <b-col sm="9">
  15. <i>{{reply.created_at}} atualizado {{reply.updated_at}}</i>
  16. <p><span v-html="reply.body"></span></p>
  17. </b-col>
  18. </b-row>
  19. <Pagination />
  20. </div>
  21.  
  22. </template>
  23.  
  24. <script>
  25. import { forum as htpp } from '@/http'
  26. import Pagination from 'components/Navigation/Pagination/Pagination'
  27. export default {
  28. props: [
  29. 'replied',
  30. 'reply',
  31. 'yourAnswer',
  32. 'send'
  33. ],
  34. data () {
  35. return {
  36. replies: []
  37. }
  38. },
  39. methods: {
  40. getReplies (evt) {
  41. evt.preventDefault()
  42. http.get('replies')
  43. .then((response) => {
  44. this.replies = response.data
  45. })
  46. }
  47. }
  48. }
  49. </script>
  50.  
  51. <style lang="scss">
  52. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement