Add /users to top nav

Location

repo: https://github.com/SamSaffron/discourse-users-nav

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 Likes

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 Likes

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 Like

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 Likes

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 Likes

This component is now fixed per

https://github.com/discourse/discourse-users-nav/commit/109d705d6ef0115862a08e21dc6a04caa0d1c846

The PR also adds translatable strings which should solve your issue @Pad_Pors

11 Likes

Hi. I made a pull request about a month ago to fix how FreeCodeCamp’s leaderboard navbar displays. Without a flex box, the elements are completely out of alignment. I want to fix it. Unfortunately for me, sticking a display:flex attribute on a class that’s being used in others places will result in unexpected consequences.

Can you please look over my PR?

1 Like

This is your component before my changes.

Before

This is after the changes I wish to add.

After

1 Like

A link to the PR might help?

1 Like

I did not properly describe in the PR the issue I was trying to fix nor what was intended to do. That was a bit of a mistake on my part.

2 Likes