First full release
This commit is contained in:
@@ -41,7 +41,7 @@ mixin consultancyItem(data, section)
|
||||
else
|
||||
.row.mt-2.mb-2
|
||||
span.consultancy-description-text
|
||||
b.text-p875rem= 'Opis terminološkega problema: '
|
||||
b.text-p875rem= t('Opis terminološkega problema: ')
|
||||
span.text-p875rem= data.description
|
||||
.row.mt-3.btn-group
|
||||
if section.inProgress
|
||||
@@ -51,57 +51,57 @@ mixin consultancyItem(data, section)
|
||||
type="button"
|
||||
)
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 DODELI
|
||||
span.ps-1 #{ t('DODELI') }
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.consultancy-modal-share(
|
||||
type="button"
|
||||
)
|
||||
img.i1p5rx1p5r(src="/images/users.svg" alt="")
|
||||
span.ps-1 DELI
|
||||
span.ps-1 #{ t('DELI') }
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.reject-item
|
||||
img.i1p5rx1p5r(src="/images/x-circle-red.svg" alt="")
|
||||
span.ps-1 ZAVRNI
|
||||
span.ps-1 #{ t('ZAVRNI') }
|
||||
.col-md-2
|
||||
button.edit-button.btn.btn-secondary.w-100
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 UREDI
|
||||
span.ps-1 #{ t('UREDI') }
|
||||
.col-md-2
|
||||
button.btn.btn-primary.review-btn.w-100(disabled=!data.title)
|
||||
img.i1p5rx1p5r(src="/images/book-open-white.svg" alt="")
|
||||
span.ps-1 OBJAVI
|
||||
span.text-white.ps-1 #{ t('OBJAVI') }
|
||||
else if section.new
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.consultancy-modal-assign(
|
||||
type="button"
|
||||
)
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 DODELI
|
||||
span.ps-1 #{ t('DODELI') }
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.delete-item
|
||||
img.i1p5rx1p5r(src="/images/trash-2.svg" alt="")
|
||||
span.ps-1 BRIŠI
|
||||
span.ps-1 #{ t('BRIŠI') }
|
||||
else if section.rejected
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.consultancy-modal-assign(
|
||||
type="button"
|
||||
)
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 DODELI
|
||||
span.ps-1 #{ t('DODELI') }
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.delete-item
|
||||
img.i1p5rx1p5r(src="/images/trash-2.svg" alt="")
|
||||
span.ps-1 BRIŠI
|
||||
span.ps-1 #{ t('BRIŠI') }
|
||||
else if section.prepared
|
||||
.col-md-2
|
||||
button.edit-button.btn.btn-secondary.w-100
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 UREDI
|
||||
span.ps-1 #{ t('UREDI') }
|
||||
if user.hasRole('consultancy admin')
|
||||
.col-md-2
|
||||
button.btn.btn-primary.publish-btn.w-100(disabled=!data.title)
|
||||
img.i1p5rx1p5r(src="/images/book-open-white.svg" alt="")
|
||||
span.ps-1 OBJAVI
|
||||
span.text-white.ps-1 #{ t('OBJAVI') }
|
||||
else if section.published
|
||||
if user.hasRole('consultancy admin')
|
||||
.col-md-2
|
||||
@@ -109,15 +109,15 @@ mixin consultancyItem(data, section)
|
||||
type="button"
|
||||
)
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 DODELI
|
||||
span.ps-1 #{ t('DODELI') }
|
||||
.col-md-2
|
||||
button.edit-button.btn.btn-secondary.w-100
|
||||
img.i1p5rx1p5r(src="/images/u_edit-alt.svg" alt="")
|
||||
span.ps-1 UREDI
|
||||
span.ps-1 #{ t('UREDI') }
|
||||
if user.hasRole('consultancy admin')
|
||||
.col-md-2
|
||||
button.btn.btn-secondary.w-100.delete-item
|
||||
img.i1p5rx1p5r(src="/images/trash-2.svg" alt="")
|
||||
span.ps-1 BRIŠI
|
||||
span.ps-1 #{ t('BRIŠI') }
|
||||
|
||||
.hovered.position-absolute
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
if isAdminPage
|
||||
include /components/consultancy/admin/consultancy-item-admin
|
||||
else
|
||||
include /components/consultancy/consultancy-item
|
||||
|
||||
.consultancy-container
|
||||
// To remove duplicates
|
||||
//- - const moderatorList = entryList.filter(a => a.isModerator) // All published questions have a moderator...
|
||||
each entry in entries
|
||||
if isAdminPage
|
||||
+consultancyItem(entry, section)
|
||||
else
|
||||
+consultancyItem(entry)
|
||||
@@ -4,14 +4,16 @@ mixin consultancyItem(entry)
|
||||
.row.mt-4.mb-2
|
||||
.col.d-flex.justify-content-start
|
||||
//- 9. 11. 2021 --> questionDateDMYformat
|
||||
span.question-asked-time.text-p875rem= `Vprašanje poslano: ${entry.formattedTimeCreated}`
|
||||
//- span.question-asked-time.text-p875rem= `Vprašanje poslano: ${entry.formattedTimeCreated}`
|
||||
span.question-asked-time.text-p875rem= t('Vprašanje poslano:') + `${entry.formattedTimeCreated}`
|
||||
.row.mb-2
|
||||
.col
|
||||
h5-pb-0.navigation-text-color
|
||||
h5.pb-0.title-cons
|
||||
b= entry.title
|
||||
.row
|
||||
//- span.consultancy-description-text
|
||||
span.text-p875rem!= `<b>Opis terminološkega problema:</b> ${entry.question}`
|
||||
span.text-p875rem.clipx!= `<b>${t('Opis terminološkega problema')}:</b> ${entry.question}`
|
||||
//- span.consultancy-description-text
|
||||
span.text-p875rem!= `<b>Odgovor:</b> ${entry.answerSummary}`
|
||||
//- span.text-p875rem.clipx!= `<b>Odgovor:</b> ${entry.answerSummary}`
|
||||
span.text-p875rem.clipx!= t('<b>Odgovor:</b>') + `${entry.answerSummary}`
|
||||
.hovered.position-absolute
|
||||
|
||||
Reference in New Issue
Block a user