Add /users to top nav

Location

repo: GitHub - discourse/discourse-users-nav: Add users nav for Discourse (theme component)

Preview

About

This theme component adds the full nav bar on both mobile and desktop on the users page:


Install guide

How to install a theme or theme component

24 лайка

this theme gives an error for Persian locale, removing this line helps:

I18n.translations.en.js.filters.users = { title: "Users", help: "User leaderboard" };

but then the string becomes something like this:

image

3 лайка

The theme appears to cause an issue with the /u or /users page preventing it from loading.

This can be reproduced using the preview link provided in the initial post on this topic. Open the link, when prompted select “View Theme” then follow the link for users either on the top nav bar or from the hamburger menu.

1 лайк

Yes, the error that I’m getting when I try to visit the users route is Assertion Failed: [ember-route-action-helper] Unable to find action createTopic.

3 лайка

I recently installed this, and it caused my /users page to stop loading entirely. There was a background XHR request that was taking a very long time. Upon removing the component, it worked again. Just thought I would let you know.

EDIT: Same error as reported above.

That’s why this theme component is still in the #theme:broken-theme category.

Do not use this component until it remains in this category.

We will fix it when we have time but we have no ETA.

PRs are welcome!

5 лайков

Этот компонент теперь исправлен согласно

В этом запросе также добавлены переводимые строки, что должно решить вашу проблему, @Pad_Pors

11 лайков

Привет. Около месяца назад я отправил pull request, чтобы исправить отображение панели навигации с таблицей лидеров FreeCodeCamp. Без flexbox элементы полностью сбиты с выравнивания. Я хочу это исправить. К сожалению, добавление атрибута display:flex к классу, который используется в других местах, приведёт к непредвиденным последствиям.

Можете ли вы посмотреть мой PR?

1 лайк

Это ваш компонент до моих изменений.

До

А это после изменений, которые я хочу внести.

После

1 лайк

Может быть, стоит добавить ссылку на PR?

1 лайк

В описании PR я некорректно изложил проблему, которую пытался исправить, а также то, что планировал сделать. Это была моя ошибка.

2 лайка