summaryrefslogtreecommitdiff
path: root/src/components/TopAuthor.vue
blob: e8a02418597f821dbbf35f93354ab70bba00b45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<template lang="pug">
  .top-author
    .user
      img(:src="'https://gravatar.com/avatar/'+avatar" :alt="data.author_email")
      strong(:title="data.author_email")
        | {{ data.author_name }} <{{ data.author_email }}>
    .number
      h2 {{ data.num }}
</template>

<script>
export default {
  name: "TopAuthor",
  props: ['data', 'avatar'],
}
</script>