mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
pug to html
This commit is contained in:
@@ -1,41 +1,39 @@
|
||||
<template lang="pug">
|
||||
.row.standard-page
|
||||
.col-12
|
||||
h1 {{ $t('notifications') }}
|
||||
.col-12
|
||||
.checkbox
|
||||
label
|
||||
input(type='checkbox', v-model='user.preferences.pushNotifications.unsubscribeFromAll',
|
||||
@change='set("pushNotifications", "unsubscribeFromAll")')
|
||||
span {{ $t('unsubscribeAllPush') }}
|
||||
|
||||
br
|
||||
|
||||
.checkbox
|
||||
label
|
||||
input(type='checkbox', v-model='user.preferences.emailNotifications.unsubscribeFromAll',
|
||||
@change='set("emailNotifications", "unsubscribeFromAll")')
|
||||
span {{ $t('unsubscribeAllEmails') }}
|
||||
small {{ $t('unsubscribeAllEmailsText') }}
|
||||
|
||||
.col-8
|
||||
table.table
|
||||
tr
|
||||
td
|
||||
th
|
||||
span {{ $t('email') }}
|
||||
th
|
||||
span {{ $t('push') }}
|
||||
tr(v-for='notification in notificationsIds')
|
||||
td
|
||||
span {{ $t(notification) }}
|
||||
td
|
||||
input(type='checkbox', v-model='user.preferences.emailNotifications[notification]',
|
||||
@change='set("emailNotifications", notification)')
|
||||
td(v-if="onlyEmailsIds.indexOf(notification) === -1")
|
||||
input(type='checkbox', v-model='user.preferences.pushNotifications[notification]',
|
||||
@change='set("pushNotifications", notification)')
|
||||
hr
|
||||
<template>
|
||||
<div class="row standard-page">
|
||||
<div class="col-12">
|
||||
<h1>{{ $t('notifications') }}</h1>
|
||||
</div><div class="col-12">
|
||||
<div class="checkbox">
|
||||
<label><input
|
||||
v-model="user.preferences.pushNotifications.unsubscribeFromAll"
|
||||
type="checkbox"
|
||||
@change="set('pushNotifications', 'unsubscribeFromAll')"
|
||||
><span>{{ $t('unsubscribeAllPush') }}</span></label>
|
||||
</div><br><div class="checkbox">
|
||||
<label><input
|
||||
v-model="user.preferences.emailNotifications.unsubscribeFromAll"
|
||||
type="checkbox"
|
||||
@change="set('emailNotifications', 'unsubscribeFromAll')"
|
||||
><span>{{ $t('unsubscribeAllEmails') }}</span></label>
|
||||
</div><small>{{ $t('unsubscribeAllEmailsText') }}</small>
|
||||
</div><div class="col-8">
|
||||
<table class="table"></table><tr><td></td><th><span>{{ $t('email') }}</span></th><th><span>{{ $t('push') }}</span></th></tr><tr v-for="notification in notificationsIds">
|
||||
<td><span>{{ $t(notification) }}</span></td><td>
|
||||
<input
|
||||
v-model="user.preferences.emailNotifications[notification]"
|
||||
type="checkbox"
|
||||
@change="set('emailNotifications', notification)"
|
||||
>
|
||||
</td><td v-if="onlyEmailsIds.indexOf(notification) === -1">
|
||||
<input
|
||||
v-model="user.preferences.pushNotifications[notification]"
|
||||
type="checkbox"
|
||||
@change="set('pushNotifications', notification)"
|
||||
><hr>
|
||||
</td>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user