aboutsummaryrefslogtreecommitdiff
path: root/src/components/extra_notifications/extra_notifications.vue
blob: f5cf16616e3e977be53166fd64a492ca6e186a42 (plain)
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
<template>
  <div class="ExtraNotifications">
    <router-link
      v-if="shouldShowChats"
      class="button-unstyled -link extra-notification"
      to="chats"
    >
      {{ $tc('notifications.unread_chats', unreadChatCount, { num: unreadChatCount }) }}
    </router-link>
    <router-link
      v-if="shouldShowAnnouncements"
      class="button-unstyled -link extra-notification"
      to="announcements"
    >
      {{ $tc('notifications.unread_announcements', unreadAnnouncementCount, { num: unreadAnnouncementCount }) }}
    </router-link>
    <router-link
      v-if="shouldShowFollowRequests"
      class="button-unstyled -link extra-notification"
      to="friend-requests"
    >
      {{ $tc('notifications.unread_follow_requests', followRequestCount, { num: followRequestCount }) }}
    </router-link>
  </div>
</template>

<script src="./extra_notifications.js" />

<style lang="scss">
@import "../../variables";

.ExtraNotifications {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;

  .extra-notification {
    width: 100%;
    padding: 1em;
  }

  .extra-notification {
    border-bottom: 1px solid;
    border-color: $fallback--border;
    border-color: var(--border, $fallback--border);
  }
}
</style>