Skip to content

Commit

Permalink
ajout embargo/confidentialite
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-chmbn committed Jul 27, 2023
1 parent 3ea4bb7 commit 13d3a6b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 deletions.
14 changes: 10 additions & 4 deletions src/components/theses/ButtonsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@
</button>
</div>
</div>
<div class="listButtons no-wrap-text" v-if="soutenue">
<v-btn color="primary" append-icon="mdi-arrow-right-circle" flat v-for="b in listButtons" :key="b"
:href="baseURL + b.url" target="_blank" :title="b.libelle" :aria-label="b.libelle">{{
b.libelle }}</v-btn>
<div v-if="soutenue">
<div class="listButtons no-wrap-text" v-for="b in listButtons" :key="b">
<v-btn v-if="b.url" color="primary" append-icon="mdi-arrow-right-circle" flat :href="baseURL + b.url"
target="_blank" :title="b.libelle" :aria-label="b.libelle">{{
b.libelle }}</v-btn>
<span v-else>
<span v-if="b.libelle === 'Embargo'">{{ $t("theseView.embargo") }} {{ b.dateFin }}</span>
<span v-if="b.libelle === 'Confidentialité'">{{ $t("theseView.confidentialite") }} {{ b.dateFin }}</span>
</span>
</div>
<v-skeleton-loader v-if="loading" :key="i" type="list-item" class="skeleton"></v-skeleton-loader>
</div>
</div>
Expand Down
7 changes: 1 addition & 6 deletions src/components/theses/ThesisTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<span><strong>{{ $t('theseView.auteur') }}{{ '\xa0' }}</strong></span>
<span>
<template v-for="(auteur, index) in these.auteurs" :key="auteur.ppn">
<span :class="auteur.ppn ? 'clickable orange' : ''" @click="linkTo(auteur.ppn)">
<span :class="auteur.ppn ? 'clickable lightblue' : ''" @click="linkTo(auteur.ppn)">
{{ auteur.prenom }} {{ auteur.nom }}
</span>
<template v-if="index < these.auteurs.length - 1">,{{ '\xa0' }}</template>
Expand Down Expand Up @@ -142,10 +142,6 @@ function linkTo(id) {
<style lang="scss" scoped>
@use 'vuetify/settings';
.orange {
color: rgb(var(--v-theme-orange-abes));
}
.lightblue {
color: rgb(var(--v-theme-secondary-darken-2));
}
Expand Down Expand Up @@ -186,6 +182,5 @@ function linkTo(id) {
.clickable {
cursor: pointer;
font-weight: bold;
text-decoration: underline;
}
</style>
4 changes: 3 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
"showMoreAbstract": "Afficher la suite du résumé",
"showLessAbstract": "Afficher un extrait du résumé",
"projet": "Projet de thèse",
"doctorat": "Thèse de doctorat"
"doctorat": "Thèse de doctorat",
"embargo": "Cette thèse est sous embargo jusqu’au ",
"confidentialite": "Cette thèse est confidentielle jusqu’au "
},
"results": {
"facetsHeader": "Filtres",
Expand Down
2 changes: 1 addition & 1 deletion src/views/ReportErrorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<v-text-field :label="$t('reportErrorView.mail')" v-model="mail" :rules="mailRule" variant="outlined"
density="compact" required></v-text-field>
</div>
<div class="form-row half">
<div class="form-row shortened">
<v-select :label="$t('reportErrorView.domaine')" v-model="domaine" :rules=requiredRule :items="domainItems"
variant="outlined" density="compact" required></v-select>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/views/TheseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
<div class="thesis-main-wrapper">
<div v-if="!mobile" class="nav-bar">
<!-- Futur composant boutons (barre de gauche)-->
<buttons-list :nnt="route.params.id" :soutenue="these.status === 'soutenue'"></buttons-list>
<buttons-list :nnt="route.params.id"
:soutenue="these.status === 'soutenue' && these.source !== 'step'"></buttons-list>
</div>
<div class="thesis-components">
<thesis-component :nnt="route.params.id" :these="these" :data-ready="true"></thesis-component>
Expand Down

0 comments on commit 13d3a6b

Please sign in to comment.