This commit is contained in:
Untone 2024-07-09 12:57:40 +03:00
parent 7e3499fbb3
commit 0c000b8b6e
2 changed files with 9 additions and 10 deletions

View File

@ -121,14 +121,14 @@ export const AllTopics = (props: Props) => {
<div class="col-lg-20"> <div class="col-lg-20">
<div class="row"> <div class="row">
<For each={byLetter()[letter]}> <For each={byLetter()[letter]}>
{(topic) => ( {(topic) => (
<div class={clsx(styles.topicTitle, 'col-sm-12 col-md-8')}> <div class={clsx(styles.topicTitle, 'col-sm-12 col-md-8')}>
<A href={`/topic/${topic.slug}`}>{topic.title || topic.slug}</A> <A href={`/topic/${topic.slug}`}>{topic.title || topic.slug}</A>
<Show when={topic.stat?.shouts || 0}> <Show when={topic.stat?.shouts || 0}>
<span class={styles.articlesCounter}>{topic.stat?.shouts || 0}</span> <span class={styles.articlesCounter}>{topic.stat?.shouts || 0}</span>
</Show> </Show>
</div> </div>
)} )}
</For> </For>
</div> </div>
</div> </div>
@ -159,7 +159,6 @@ export const AllTopics = (props: Props) => {
</div> </div>
</div> </div>
</Show> </Show>
</Show> </Show>
</div> </div>
</div> </div>

View File

@ -25,7 +25,7 @@ export default (props: RouteSectionProps<{ topics: Topic[] }>) => {
<PageLayout <PageLayout
withPadding={true} withPadding={true}
key="topics" key="topics"
title='Themes and plots' title={t('Themes and plots')}
headerTitle={`${t('Discours')} :: ${t('All topics')}`} headerTitle={`${t('Discours')} :: ${t('All topics')}`}
desc="Thematic table of contents of the magazine. Here you can find all the topics that the community authors wrote about" desc="Thematic table of contents of the magazine. Here you can find all the topics that the community authors wrote about"
> >