aboutsummaryrefslogtreecommitdiff
path: root/src/components/update_notification/update_notification.vue
blob: 75ac742c0ffa2189adc3a4876ed78193a4e1c153 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<template>
  <Modal
    :is-open="!!shouldShow"
    class="UpdateNotification"
    :no-background="true"
  >
    <div
      class="UpdateNotificationModal panel"
      :class="{ '-peek': !showingMore }"
    >
      <div class="panel-heading">
        <span class="title">
          {{ $t('update.big_update_title') }}
        </span>
      </div>
      <div class="panel-body">
        <div class="content" ref="content">
          <img class="pleroma-tan" :src="pleromaTanVariant" :style="pleromaTanStyles"/>
          <div class="spacer-top"/>
          <div class="text">
            <p>
                {{ $t('update.big_update_content') }}
            </p>
            <i18n-t keypath="update.update_bugs" tag="p" class="extra-info">
              <template #pleromaGitlab>
                <a target="_blank" href="https://git.pleroma.social/">{{ $t('update.update_bugs_gitlab') }}</a>
              </template>
            </i18n-t>
            <i18n-t keypath="update.update_changelog" tag="p" class="extra-info">
              <template #theFullChangelog>
                <a target="_blank" href="https://pleroma.social/announcements/">{{ $t('update.update_changelog_here') }}</a>
              </template>
            </i18n-t>
          </div>
          <div class="spacer-bottom"/>
        </div>
      </div>
      <div class="panel-footer">
        <button
          class="button-default"
          @click.prevent="neverShowAgain"
          >
          {{ $t("general.never_show_again") }}
        </button>
        <button
          class="button-default"
          @click.prevent="toggleShow"
          v-if="!showingMore"
          >
          {{ $t("general.show_more") }}
        </button>
        <button
          class="button-default"
          @click.prevent="dismiss"
          >
          {{ $t("general.dismiss") }}
        </button>
      </div>
    </div>
  </Modal>
</template>

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

<style src="./update_notification.scss" lang="scss"></style>