CJVT updates August and September 2026
This commit is contained in:
@@ -32,7 +32,7 @@ mixin consultancyItem(data, section)
|
||||
.circle.ms-1.align-items-center.justify-content-center.d-flex
|
||||
span.pt-0.question-asked-time.text-p625rem #{ data.sharedAuthors.length }
|
||||
span.d-inline-block.pt-0.ps-1.question-asked-time.text-p875rem.ms-2.me-1 •
|
||||
span.d-inline-block.pt-0.ps-1.question-asked-time.text-p875rem= `${data.formattedTimeCreated}`
|
||||
span.d-inline-block.pt-0.ps-1.question-asked-time.text-p875rem: time(data-timestamp=data.timeCreated data-timestamp-format="date")
|
||||
if (data.title)
|
||||
.row.mt-2.mb-2
|
||||
.col
|
||||
|
||||
@@ -4,8 +4,9 @@ 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= t('Vprašanje poslano:') + `${entry.formattedTimeCreated}`
|
||||
span.question-asked-time.text-p875rem
|
||||
= t('Vprašanje poslano:')
|
||||
time(data-timestamp=entry.timeCreated data-timestamp-format="date")
|
||||
.row.mb-2
|
||||
.col
|
||||
h5.pb-0.title-cons
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
mixin dictionaryListTable(data)
|
||||
.d-flex.justify-content-between.flex-wrap
|
||||
#admin-dict-filter-root.admin-dict-filter-root
|
||||
.search-root-mobile-only.ps-0.pe-0
|
||||
#searchbar-main.text-center
|
||||
.search-bar.height-46p(tabindex="0")
|
||||
button.searchbar-icon-container#search-dictionaries(type="button")
|
||||
img.search_icon(src="/images/search.svg" alt="OK")
|
||||
input#dict-name-search.search-input(
|
||||
type="text"
|
||||
placeholder=t('Ime slovarja')
|
||||
value=data.q
|
||||
)
|
||||
button#keyboard.search-button-keyboard
|
||||
span
|
||||
img.keyboard(src="/images/keyboard.svg" alt="Keys")
|
||||
button#advanced-search.dropdown-btn
|
||||
img(src="/images/dropdown.svg" alt="Opt")
|
||||
#admin-dict-filter-panel.advanced-search-root(
|
||||
class=(data.pd.length || data.sd.length || data.lang.length || data.status.length) ? '' : 'd-none-weak'
|
||||
)
|
||||
.advanced-search-filter-section
|
||||
.advanced-search-filter-division
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-domain-primary.select-admin-domain-primary(
|
||||
multiple="multiple"
|
||||
)
|
||||
each domain in data.allPrimaryDomains
|
||||
option(
|
||||
value=domain.id
|
||||
selected=data.pd.includes(String(domain.id))
|
||||
)= domain.name
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-domain-secondary.select-admin-domain-secondary(
|
||||
multiple="multiple"
|
||||
)
|
||||
each domain in data.allSecondaryDomains
|
||||
option(
|
||||
value=domain.id
|
||||
selected=data.sd.includes(String(domain.id))
|
||||
)= domain.name
|
||||
.advanced-search-filter-division
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-language.select-admin-language(
|
||||
multiple="multiple"
|
||||
)
|
||||
each language in data.allLanguages
|
||||
option(
|
||||
value=language.id
|
||||
selected=data.lang.includes(String(language.id))
|
||||
)= language.name
|
||||
span
|
||||
.d-flex.w-100
|
||||
label.d-flex.flex-grow-1.align-items-end
|
||||
select#filter-status.select-admin-status(multiple="multiple")
|
||||
each s in data.allStatuses
|
||||
option(value=s.value selected=data.status.includes(s.value))= s.label
|
||||
.advanced-search-final-options
|
||||
span
|
||||
button#clear-filters.btn.clear-f(type="button")= t('Počisti filtre')
|
||||
button#apply-filters.btn.search-btn-a(type="button")= t('Upoštevaj filtre')
|
||||
include /utilities/keyboard
|
||||
+keyboard()
|
||||
.d-flex
|
||||
include /utilities/pager
|
||||
+pager(data.page)
|
||||
|
||||
.table-responsive
|
||||
table.styled-table
|
||||
thead
|
||||
tr#thead
|
||||
- const arrowSrc = data.sortDir === 'asc' ? '/images/arrow_drop_up.svg' : '/images/arrow_drop_down.svg'
|
||||
th
|
||||
button#sortById.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= 'ID'
|
||||
img#idImg(class=data.sortBy === 'id' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByName.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('NASLOV')
|
||||
img#nameImg(class=data.sortBy === 'name' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByStatus.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('STATUS')
|
||||
img#statusImg(class=data.sortBy === 'status' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByTimeCreated.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('USTVARJEN')
|
||||
img#timeCreatedImg(class=data.sortBy === 'timeCreated' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th
|
||||
button#sortByTimeModified.no-bg.no-border.text-decoration-none(type="button")
|
||||
span= t('SPREMENJEN')
|
||||
img#timeModifiedImg(class=data.sortBy === 'timeModified' ? '' : 'invisible' src=arrowSrc alt="")
|
||||
th= ''
|
||||
tbody#page-results
|
||||
each result in data.results
|
||||
tr
|
||||
td= result.id
|
||||
td= result.name
|
||||
if result.status === 'closed'
|
||||
td= t('zaprt')
|
||||
else if result.status ==='reviewed'
|
||||
td= t('v predogledu')
|
||||
else
|
||||
td= t('odprt')
|
||||
td: time(data-timestamp=result.timeCreated data-timestamp-format="datetime")
|
||||
td: time(data-timestamp=result.timeModified data-timestamp-format="datetime")
|
||||
td
|
||||
a.image-link(
|
||||
type="link"
|
||||
href=data.rowAction.hrefBuilder(result.id)
|
||||
)
|
||||
img(src=data.rowAction.icon alt=data.rowAction.label)
|
||||
span.normal-gray.ms-1= data.rowAction.label
|
||||
@@ -31,6 +31,14 @@
|
||||
method="post"
|
||||
autocomplete="off"
|
||||
)
|
||||
.sso-login-section
|
||||
a#sso-login-btn.btn.btn-primary.h41.w-100(
|
||||
href="/users/oidc/login"
|
||||
)
|
||||
img.sso-login-icon(src="/images/icon-user-x.svg" alt="")
|
||||
span= t('Univerza v Ljubljani')
|
||||
.sso-divider
|
||||
span= t('ali')
|
||||
.row
|
||||
.col-2.d-flex.align-items-center.justify-content-center.pe-4
|
||||
img(src="/images/user.svg" alt="")
|
||||
|
||||
@@ -32,6 +32,9 @@ mixin main-navigation-right(languageToolbarPresent=false, menuTextPresent=false,
|
||||
if user && (user.hasRole('portal admin') || user.hasRole('dictionaries admin'))
|
||||
li
|
||||
a.dropdown-item(href="/admin")= t('Administracija')
|
||||
if user && dictionariesEnabled
|
||||
li
|
||||
a.dropdown-item(href="/ogled-virov")= t('Ogled virov na portalu')
|
||||
li
|
||||
a.dropdown-item(href="/pomoc")= t('Pomoč')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user