mirror of
https://github.com/romancm/gamebrary
synced 2024-12-21 00:33:05 +00:00
remove time to beat
This commit is contained in:
parent
0fa0ed3fd9
commit
2f32c7d6c7
1 changed files with 8 additions and 19 deletions
|
@ -2,29 +2,26 @@
|
||||||
<div>
|
<div>
|
||||||
<dl class="row">
|
<dl class="row">
|
||||||
<!-- TODO: plural vs singular translations? -->
|
<!-- TODO: plural vs singular translations? -->
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.platforms') }}</dt>
|
<dt class="col-sm-5">{{ $t('board.gameModal.platforms') }}</dt>
|
||||||
<dd class="col-sm-9">{{ platforms }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ platforms }}</dd>
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.genres') }}</dt>
|
<dt class="col-sm-3">{{ $t('board.gameModal.genres') }}</dt>
|
||||||
<dd class="col-sm-9">{{ genres }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ genres }}</dd>
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.gameModes') }}</dt>
|
<dt class="col-sm-3">{{ $t('board.gameModal.gameModes') }}</dt>
|
||||||
<dd class="col-sm-9">{{ gameModes }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ gameModes }}</dd>
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.developers') }}</dt>
|
<dt class="col-sm-3">{{ $t('board.gameModal.developers') }}</dt>
|
||||||
<dd class="col-sm-9">{{ gameDevelopers }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ gameDevelopers }}</dd>
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.publishers') }}</dt>
|
<dt class="col-sm-3">{{ $t('board.gameModal.publishers') }}</dt>
|
||||||
<dd class="col-sm-9">{{ gamePublishers }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ gamePublishers }}</dd>
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.perspective') }}</dt>
|
<dt class="col-sm-3">{{ $t('board.gameModal.perspective') }}</dt>
|
||||||
<dd class="col-sm-9">{{ playerPerspectives }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ playerPerspectives }}</dd>
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.timeToBeat') }}</dt>
|
|
||||||
<dd class="col-sm-9">{{ timeToBeat }}</dd>
|
|
||||||
|
|
||||||
<dt class="col-sm-3">{{ $t('board.gameModal.ageRatings') }}</dt>
|
<dt class="col-sm-3">{{ $t('board.gameModal.ageRatings') }}</dt>
|
||||||
<dd class="col-sm-9">{{ ageRatings }}</dd>
|
<dd class="col-sm-9 text-wrap">{{ ageRatings }}</dd>
|
||||||
|
|
||||||
<!-- TODO: add release dates -->
|
<!-- TODO: add release dates -->
|
||||||
<!-- {{ $t('board.gameModal.releaseDate') }} -->
|
<!-- {{ $t('board.gameModal.releaseDate') }} -->
|
||||||
|
@ -34,8 +31,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import moment from 'moment';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
game: Object,
|
game: Object,
|
||||||
|
@ -73,12 +68,6 @@ export default {
|
||||||
: 'N/A';
|
: 'N/A';
|
||||||
},
|
},
|
||||||
|
|
||||||
timeToBeat() {
|
|
||||||
return this.game && this.game.time_to_beat
|
|
||||||
? moment.unix(this.game.time_to_beat).format('h[h] m[m]')
|
|
||||||
: 'N/A';
|
|
||||||
},
|
|
||||||
|
|
||||||
platforms() {
|
platforms() {
|
||||||
return this.game && this.game.platforms
|
return this.game && this.game.platforms
|
||||||
? this.game.platforms.map(({ name }) => name).join(', ')
|
? this.game.platforms.map(({ name }) => name).join(', ')
|
||||||
|
|
Loading…
Reference in a new issue