Merge pull request #2648 from gradido/2562-style-and-design-changes-to-a-contribution

refactor(frontend): style and design changes to a contribution
This commit is contained in:
mahula 2023-03-02 15:10:36 +01:00 committed by GitHub
commit cc8c671241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 1 deletions

View File

@ -1,6 +1,23 @@
<template>
<div class="contribution-messages-list-item">
<div v-if="isNotModerator" class="text-right pr-4 pr-lg-0 is-not-moderator">
<div v-if="message.type === 'HISTORY'">
<b-row class="mb-3 border border-197 p-1">
<b-col cols="10">
<small>{{ $d(new Date(message.createdAt), 'short') }}</small>
<div class="font-weight-bold" data-test="username">
{{ storeName.username }} {{ $t('contribution.isEdited') }}
</div>
<div class="small">
{{ $t('contribution.oldContribution') }}
</div>
<parse-message v-bind="message" data-test="message" class="p-2"></parse-message>
</b-col>
<b-col cols="2">
<avatar :username="storeName.username" :initials="storeName.initials"></avatar>
</b-col>
</b-row>
</div>
<div v-else-if="isNotModerator" class="text-right pr-4 pr-lg-0 is-not-moderator">
<b-row class="mb-3">
<b-col cols="10">
<div class="font-weight-bold" data-test="username">{{ storeName.username }}</div>

View File

@ -56,6 +56,7 @@
"openAmountForMonth": "Für <b>{monthAndYear}</b> kannst du noch <b>{creation}</b> GDD einreichen.",
"yourContribution": "Dein Beitrag zum Gemeinwohl"
},
"isEdited": "hat den Beitrag bearbeitet",
"lastContribution": "Letzte Beiträge",
"noContributions": {
"allContributions": "Es wurden noch keine Beiträge eingereicht.",
@ -67,6 +68,7 @@
"lastMonth": "Für den ausgewählten Monat ist das Schöpfungslimit erreicht.",
"thisMonth": "Für den aktuellen Monat ist das Schöpfungslimit erreicht."
},
"oldContribution": "Vorherige Version",
"selectDate": "Wann war dein Beitrag?",
"submit": "Einreichen",
"submitted": "Der Beitrag wurde eingereicht.",

View File

@ -56,6 +56,7 @@
"openAmountForMonth": "For <b>{monthAndYear}</b>, you can still submit <b>{creation}</b> GDD.",
"yourContribution": "Your Contributions to the Common Good"
},
"isEdited": "edited the contribution",
"lastContribution": "Last Contributions",
"noContributions": {
"allContributions": "No contributions have been submitted yet.",
@ -67,6 +68,7 @@
"lastMonth": "The creation limit is reached for the selected month.",
"thisMonth": "The creation limit has been reached for the current month."
},
"oldContribution": "Previous version",
"selectDate": "When was your contribution?",
"submit": "Submit",
"submitted": "The contribution was submitted.",