File tree 1 file changed +17
-20
lines changed
1 file changed +17
-20
lines changed Original file line number Diff line number Diff line change 14
14
</router-link >
15
15
<span class =" date" >{{ article.createdAt | date }}</span >
16
16
</div >
17
- <template v-if =" actions " >
18
- <rwv-article-actions
19
- :article =" article"
20
- :canModify =" isCurrentUser()"
21
- ></rwv-article-actions >
22
- </template >
23
- <template v-else >
24
- <button
25
- class =" btn btn-sm pull-xs-right"
26
- v-if =" !actions"
27
- @click =" toggleFavorite"
28
- :class =" {
29
- 'btn-primary': article.favorited,
30
- 'btn-outline-primary': !article.favorited
31
- }"
32
- >
33
- <i class =" ion-heart" ></i >
34
- <span class =" counter" > {{ article.favoritesCount }} </span >
35
- </button >
36
- </template >
17
+ <rwv-article-actions
18
+ v-if =" actions"
19
+ :article =" article"
20
+ :canModify =" isCurrentUser()"
21
+ ></rwv-article-actions >
22
+ <button
23
+ v-else
24
+ class =" btn btn-sm pull-xs-right"
25
+ @click =" toggleFavorite"
26
+ :class =" {
27
+ 'btn-primary': article.favorited,
28
+ 'btn-outline-primary': !article.favorited
29
+ }"
30
+ >
31
+ <i class =" ion-heart" ></i >
32
+ <span class =" counter" > {{ article.favoritesCount }} </span >
33
+ </button >
37
34
</div >
38
35
</template >
39
36
You can’t perform that action at this time.
0 commit comments