All files / src/components/UI/aboutportal card-top-comment.vue

0% Statements 0/31
0% Branches 0/6
0% Functions 0/13
0% Lines 0/31

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108                                                                                                                                                                                                                       
<template>
    <pattern-card-feed 
        :title="'Самый активный критик'"
    >
        <template v-slot:filling_feedback>
 
 
<v-row no-gutters v-if="top.comment[0].time_create != '1990-01-01'">
    <v-col lg=5 class="bg-teal-lighten-4 align-self-center">
        <list-user
            :author= "top.author" 
            :from_which="'top_comment'"
        />
    </v-col>
    <v-col class="align-self-center pl-0">
       
        <v-table density="compact" class="pa-0">
                        <thead>
                            <tr >
                                <th class="text-center text-caption font-weight-medium">
                                    <v-tooltip location="top">
                                        <template v-slot:activator="{ props }">
                                            <span v-bind="props">
                                                <v-icon
                                                    class="cursor-help"
                                                    icon="mdi-comment-text-outline"
                                                    color='cyan-darken-4'
                                                    size="x-large"
                                                />
                                            </span>
                                        </template>
                                        <card-comment :comment=top.comment[0] />
                                    </v-tooltip>
                                </th>
                                <th class="text-center text-caption font-weight-medium">
                                    <v-tooltip location="top">
                                        <template v-slot:activator="{ props }">
                                            <span v-bind="props">
                                                <v-icon
                                                    class="cursor-help"
                                                    icon="mdi-star"
                                                    color="orange"
                                                    size="x-large"
                                                />
                                            </span>
                                        </template>
Поставлено оценок
                                    </v-tooltip>
                                </th>
                            </tr>
                        </thead>
                        <tbody >
                           <tr >
                            <th class="text-center text-h6 font-weight-bold">{{top.comment.length}}</th>
                            <th class="text-center text-h6 font-weight-bold">{{top.score}}</th>
                           
                           </tr>
                        </tbody>
                    </v-table>
    
    </v-col>
</v-row>
<v-row v-else
         
         class="align-center flex-column
         
         gap mt-n2"
         no-gutters
     >
     <v-col 
            class="text-h6 pt-8 text-grey text-center align-self-center text--lighten-1 font-weight-light"
        >
        За выбранный период комментариев нет
        </v-col>
       
            </v-row>
    </template>
  </pattern-card-feed>
</template>

<script>
import PatternCardFeed from '@/components/UI/aboutportal/pattern-card-feed.vue'
import TooltipText from '@/components/UI/tooltip-text.vue'
import CardComment from './card_top_comment/card-comment.vue'
 
export default {
    components: { 
        PatternCardFeed,
        TooltipText,
        CardComment
    },
 
    props: 
        {
        top: {
            type: Object,
            default: () => {}
        },
 
    },
 
 
}
</script>

<style>
 
</style>