Changed last prop to :last-of-type

This commit is contained in:
Marvin Rabe
2018-05-07 13:24:48 +02:00
parent 129fccf646
commit 17001743e1
4 changed files with 19 additions and 24 deletions

View File

@@ -70,13 +70,11 @@
button.btn.btn-primary(v-once, @click='exportChallengeCsv()') {{$t('exportChallengeCsv')}}
.button-container(v-if='isLeader || isAdmin')
button.btn.btn-danger(v-once, @click='closeChallenge()') {{$t('endChallenge')}}
sidebar-section(:title="$t('challengeSummary')")
p(v-markdown='challenge.summary')
sidebar-section(
:title="$t('challengeDescription')"
:last="true"
)
p(v-markdown='challenge.description')
div
sidebar-section(:title="$t('challengeSummary')")
p(v-markdown='challenge.summary')
sidebar-section(:title="$t('challengeDescription')")
p(v-markdown='challenge.description')
.text-center(v-if='isMember')
button.btn.btn-danger(v-once, @click='leaveChallenge()') {{$t('leaveChallenge')}}
</template>