forked from potsda.mn/mobilizon
Merge branch 'participation-link' into 'master'
Link to participation from event page Closes #221 See merge request framasoft/mobilizon!274
This commit is contained in:
commit
0d97bb88a1
|
@ -15,12 +15,20 @@ import {ParticipantRole} from "@/types/event.model";
|
||||||
<div class="title-and-informations">
|
<div class="title-and-informations">
|
||||||
<h1 class="title">{{ event.title }}</h1>
|
<h1 class="title">{{ event.title }}</h1>
|
||||||
<span>
|
<span>
|
||||||
|
<router-link v-if="actorIsOrganizer" :to="{ name: RouteName.PARTICIPATIONS, params: {eventId: event.uuid}}">
|
||||||
<small v-if="event.participantStats.approved > 0 && !actorIsParticipant">
|
<small v-if="event.participantStats.approved > 0 && !actorIsParticipant">
|
||||||
{{ $tc('One person is going', event.participantStats.approved, {approved: event.participantStats.approved}) }}
|
{{ $tc('One person is going', event.participantStats.approved, {approved: event.participantStats.approved}) }}
|
||||||
</small>
|
</small>
|
||||||
<small v-else-if="event.participantStats.approved > 0 && actorIsParticipant">
|
<small v-else-if="event.participantStats.approved > 0 && actorIsParticipant">
|
||||||
{{ $tc('You and one other person are going to this event', event.participantStats.participants, { approved: event.participantStats.participants }) }}
|
{{ $tc('You and one other person are going to this event', event.participantStats.participants, { approved: event.participantStats.participants }) }}
|
||||||
</small>
|
</small>
|
||||||
|
</router-link>
|
||||||
|
<small v-if="event.participantStats.approved > 0 && !actorIsParticipant && !actorIsOrganizer">
|
||||||
|
{{ $tc('One person is going', event.participantStats.approved, {approved: event.participantStats.approved}) }}
|
||||||
|
</small>
|
||||||
|
<small v-else-if="event.participantStats.approved > 0 && actorIsParticipant && !actorIsOrganizer">
|
||||||
|
{{ $tc('You and one other person are going to this event', event.participantStats.participants, { approved: event.participantStats.participants }) }}
|
||||||
|
</small>
|
||||||
<small v-if="event.options.maximumAttendeeCapacity">
|
<small v-if="event.options.maximumAttendeeCapacity">
|
||||||
{{ $tc('All the places have already been taken', numberOfPlacesStillAvailable, { places: numberOfPlacesStillAvailable}) }}
|
{{ $tc('All the places have already been taken', numberOfPlacesStillAvailable, { places: numberOfPlacesStillAvailable}) }}
|
||||||
</small>
|
</small>
|
||||||
|
|
Loading…
Reference in a new issue