Skip to content
Snippets Groups Projects
Commit 0f7b159e authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

improve display for smartphones in CertifList

parent 5374f541
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
</th> </th>
<th class="position-relative" @click="sort('expires_on')"> <th class="position-relative" @click="sort('expires_on')">
<BtnSort <BtnSort
class="justify-content-end"
:title="$t('expire')" :title="$t('expire')"
fieldName="expires_on" fieldName="expires_on"
:currentSort="currentSort" :currentSort="currentSort"
...@@ -78,15 +79,13 @@ ...@@ -78,15 +79,13 @@
<th scope="row" class="py-1"> <th scope="row" class="py-1">
<div> <div>
<span v-if="$favourites.list.includes(certif.uid)">&nbsp;</span> <span v-if="$favourites.list.includes(certif.uid)">&nbsp;</span>
{{ certif.uid }} <div class="uid inline-block text-truncate">{{ certif.uid }}</div>
<BadgeDanger <BadgeDanger
:limitDate="certif.received_certifications.limit" :limitDate="certif.received_certifications.limit"
:memberStatus="certif.status" /> :memberStatus="certif.status" />
<BadgeQuality <BadgeQuality
:quality="certif.quality.ratio" :quality="certif.quality.ratio"
v-if="certif.status != 'REVOKED'" /> v-if="certif.status != 'REVOKED'" />
</div>
<div>
<BadgeStatus :membre="certif" /> <BadgeStatus :membre="certif" />
<BadgeDispo <BadgeDispo
:isDispo="certif.minDatePassed" :isDispo="certif.minDatePassed"
...@@ -96,7 +95,7 @@ ...@@ -96,7 +95,7 @@
</div> </div>
</th> </th>
<td class="text-right py-1"> <td class="text-right py-1">
<BadgeDate :date="certif.expires_on" styleDate="long" /> <BadgeDate :date="certif.expires_on" styleDate="short" />
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -186,4 +185,16 @@ thead th:last-child { ...@@ -186,4 +185,16 @@ thead th:last-child {
padding-right: 1.5rem; padding-right: 1.5rem;
text-align: right; text-align: right;
} }
.uid {
max-width: 130px;
@media (min-width: 576px) {
max-width: 255px;
}
@media (min-width: 992px) {
max-width: 205px;
}
}
</style> </style>
...@@ -107,6 +107,10 @@ export const SEARCH_MEMBERS = gql` ...@@ -107,6 +107,10 @@ export const SEARCH_MEMBERS = gql`
__typename __typename
limit limit
} }
sent_certifications {
__typename
pending
}
} }
} }
} }
......
const objTime = { const objTime = {
short: { short: {
day: "numeric", day: "2-digit",
month: "short", month: "2-digit",
year: "2-digit" year: "2-digit"
}, },
long: { long: {
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"desc": "Cryptocurrency software using a blockchain, compliant with the Relative Theory of Money (RTM) and using the web of trust for the identification of the co-producing members of the currency", "desc": "Cryptocurrency software using a blockchain, compliant with the Relative Theory of Money (RTM) and using the web of trust for the identification of the co-producing members of the currency",
"title": "Duniter" "title": "Duniter"
}, },
"expire": "Expires", "expire": "Expiry",
"favoris": { "favoris": {
"enregistre": "Saved to favorites&nbsp;!", "enregistre": "Saved to favorites&nbsp;!",
"none": "You don't have any favorites yet", "none": "You don't have any favorites yet",
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"desc": "Software de criptomonedas que utiliza una cadena de bloques, que cumple con la Teoría Relativa del Dinero (TRD) y utiliza la red de confianza para la identificación de los miembros coproductores de la moneda", "desc": "Software de criptomonedas que utiliza una cadena de bloques, que cumple con la Teoría Relativa del Dinero (TRD) y utiliza la red de confianza para la identificación de los miembros coproductores de la moneda",
"title": "Duniter" "title": "Duniter"
}, },
"expire": "Expira el", "expire": "Expiración",
"favoris": { "favoris": {
"enregistre": "¡Guardado en favoritos!", "enregistre": "¡Guardado en favoritos!",
"none": "Aún no tienes favoritos", "none": "Aún no tienes favoritos",
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"desc": "Logiciel de crypto-monnaie utilisant une blockchain, conforme à la Théorie Relative de la Monnaie (TRM) et utilisant la toile de confiance pour l'identification des membres co-producteurs de la monnaie", "desc": "Logiciel de crypto-monnaie utilisant une blockchain, conforme à la Théorie Relative de la Monnaie (TRM) et utilisant la toile de confiance pour l'identification des membres co-producteurs de la monnaie",
"title": "Duniter" "title": "Duniter"
}, },
"expire": "Expire le", "expire": "Expiration",
"favoris": { "favoris": {
"enregistre": "Enregistré dans les favoris&nbsp;!", "enregistre": "Enregistré dans les favoris&nbsp;!",
"none": "Vous n'avez pas encore de favoris", "none": "Vous n'avez pas encore de favoris",
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
<div class="container"> <div class="container">
<div class="row mt-3" v-if="idFromHash.status != 'REVOKED'"> <div class="row mt-3" v-if="idFromHash.status != 'REVOKED'">
<div class="col-sm-10 col-md-7 col-lg-5 mb-3 mx-auto"> <div class="col-sm-10 col-md-8 col-lg-5 mb-3 mx-auto">
<h3 <h3
class="h4 text-center" class="h4 text-center"
:class="{ :class="{
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
type="received" /> type="received" />
</div> </div>
<div <div
class="col-sm-10 col-md-7 col-lg-5 mx-auto" class="col-sm-10 col-md-8 col-lg-5 mx-auto"
v-if="['MISSING', 'MEMBER'].includes(idFromHash.status)"> v-if="['MISSING', 'MEMBER'].includes(idFromHash.status)">
<h3 class="h4 text-center"> <h3 class="h4 text-center">
{{ $t("certification.envoyees") }} ({{ nbCertifsSent {{ $t("certification.envoyees") }} ({{ nbCertifsSent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment