Commit ab972fc7 authored by  JosephK's avatar JosephK

End campaign (hours instead of days)

parent d4d31848
Pipeline #149467 passed with stage
in 6 minutes and 31 seconds
......@@ -16,7 +16,7 @@
<b-row>
<!-- Right column -->
<b-col id="funding" lg="5" order-lg="12">
<p v-if="days >= 0">
<p v-if="hours >= 0">
<span id="donations" class="h2" v-text="$n(progress.total, 'eur')"></span><br>
<span class="text-muted" v-html="`${$t('home.funding.goal')} ${$n(progress.max, 'eur')}`"></span>
</p>
......@@ -62,7 +62,7 @@
<b>{{ Math.round(this.progress.total * 100 / steps[2]) }}%</b>
</b-progress-bar>
</b-progress>
<div class="progress-meter" v-if="days >= 0">
<div class="progress-meter" v-if="hours >= 0">
<div class="meter meter-right" style="width: 30%;"><span class="meter-text">{{ $n(steps[2], 'eur') }}</span></div>
<div class="meter meter-right" style="width: 30%;"><span class="meter-text"></span></div>
<div class="meter meter-right" style="width: 40%;"><span class="meter-text"></span></div>
......@@ -74,7 +74,7 @@
<span id="donators" class="h3" v-html="count"></span><br>
<span class="text-muted" v-html="$t('home.funding.donators')"></span>
</p>
<p class="col-sm-7" v-if="days >= 0">
<p class="col-sm-7" v-if="hours >= 0">
<span v-if="days > 1" id="days" class="h3" v-html="`${days} ${$t('home.funding.days')}`"></span>
<span v-else id="days" class="h3" v-html="`${hours} ${$t('home.funding.hours')}`"></span>
<br>
......@@ -86,10 +86,10 @@
</p>
</b-row>
<p v-if="days < 0" class="text-muted" v-html="$t('home.funding.end.text')"></p>
<p v-if="hours < 0" class="text-muted" v-html="$t('home.funding.end.text')"></p>
<p>
<b-button v-if="days >= 0"
<b-button v-if="hours >= 0"
block size="lg" variant="primary"
v-b-modal.support
target="_blank" rel="noopener noreferrer"
......@@ -147,7 +147,7 @@
<!-- Rewards -->
<h3 v-html="$t('home.funding.rewards.title')"></h3>
<div class="rewards" :class="days < 0 ? 'disabled': ''">
<div class="rewards" :class="hours < 0 ? 'disabled': ''">
<b-card
v-for="(reward, j) in rewards" :key="j">
<b-card-body>
......@@ -175,7 +175,7 @@
<donators :donators="donators" :reward="reward"></donators>
<p class="text-center" v-if="days >= 0">
<p class="text-center" v-if="hours >= 0">
<b-button block variant="primary"
v-b-modal.support
@click="amount = reward;"
......@@ -185,7 +185,7 @@
</b-card-body>
</b-card>
<b-card v-if="days >= 0">
<b-card v-if="hours >= 0">
<b-card-body>
<h4 v-html="$t('home.funding.rewards.free')"></h4>
<label for="other1" v-html="$t('form.step1.other')" class="sr-only"></label>
......@@ -214,7 +214,7 @@
<b-card-body>
<h4 v-html="$t(`home.funding.sponsors['d${sponsor}'].title`)"></h4>
<p v-html="$t(`home.funding.sponsors['d${sponsor}'].p`)"></p>
<p class="text-center" v-if="days >= 0">
<p class="text-center" v-if="hours >= 0">
<b-button block variant="primary"
v-b-modal.support
@click="amount = sponsor"
......@@ -301,7 +301,7 @@
</main>
<b-modal id="support"
v-if="days >= 0"
v-if="hours >= 0"
:visible="$root.hash === 'support'"
:title="$t('form.step1.title')"
title-tag="h2"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment