[pl][zine] prepare for closing submissions

This commit is contained in:
Andrea 2021-12-26 00:55:10 +01:00
parent 68df465026
commit bca29ecf7a
4 changed files with 40 additions and 21 deletions

View File

@ -0,0 +1,23 @@
<template>
<div>
<ul class="list-unstyled">
<li v-for="{icon, label, content} in $t('links.zine.submissions.rules')" class="mb-2">
<h4>
<Icon :v="icon"/>
<LinkedText :text="label"/>:
</h4>
<ul v-if="Array.isArray(content)">
<li v-for="el in content"><LinkedText :text="el"/></li>
</ul>
<p v-else>
<LinkedText :text="content"/>
</p>
</li>
</ul>
<p class="small">
<Icon v="info-circle"/>
<T>links.zine.submissions.disclaimer</T>
</p>
</div>
</template>

View File

@ -254,6 +254,7 @@ links:
zine: zine:
enabled: true enabled: true
route: 'zin' route: 'zin'
open: true
academic: academic:
- -
icon: 'comment-alt-edit' icon: 'comment-alt-edit'

View File

@ -986,6 +986,7 @@ links:
być może również w formie papierowej. być może również w formie papierowej.
submissions: submissions:
header: 'Nabór zgłoszeń' header: 'Nabór zgłoszeń'
closed: 'Obecnie nabór zgłoszeń jest <strong>zamknięty</strong>.'
rules: rules:
- -
icon: 'map-marker-question' icon: 'map-marker-question'

View File

@ -9,31 +9,25 @@
<T>links.zine.info</T> <T>links.zine.info</T>
<h3> <h3 class="mb-3">
<Icon v="bullhorn"/> <Icon v="bullhorn"/>
<T>links.zine.submissions.header</T> <T>links.zine.submissions.header</T>
</h3> </h3>
<div class="alert alert-info"> <ZineSubmissions v-if="config.links.zine.open" class="alert alert-info"/>
<ul class="list-unstyled"> <div v-else>
<li v-for="{icon, label, content} in $t('links.zine.submissions.rules')" class="mb-2"> <div class="alert alert-warning">
<h4> <p class="h6 mb-0">
<Icon :v="icon"/> <Icon v="exclamation-triangle"/>
<LinkedText :text="label"/>: <T>links.zine.submissions.closed</T>
</h4> </p>
<ul v-if="Array.isArray(content)"> </div>
<li v-for="el in content"><LinkedText :text="el"/></li> <details class="border mb-3">
</ul> <summary class="bg-light p-3">
<p v-else> <T>links.zine.submissions.header</T>
<LinkedText :text="content"/> </summary>
</p> <ZineSubmissions class="p-3 border-top"/>
</li> </details>
</ul>
<p class="small">
<Icon v="info-circle"/>
<T>links.zine.submissions.disclaimer</T>
</p>
</div> </div>
<Separator icon="heart"/> <Separator icon="heart"/>