Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a welcome message on the homepage? #1705

Closed
yang6wolf opened this issue Jun 1, 2021 · 3 comments
Closed

How to create a welcome message on the homepage? #1705

yang6wolf opened this issue Jun 1, 2021 · 3 comments

Comments

@yang6wolf
Copy link

I have successfully deployed DMOJ.
But I don't know how to create the welcome message on the homepage.

截屏2021-06-02 上午12 07 09

I noticed that this information is related to the login status.
It is displayed normally when there is no login status, and is hidden after login.

This feature is very useful, but it took a few hours and it was not set up successfully.

@fluix-dev
Copy link
Contributor

fluix-dev commented Jun 1, 2021

It's the home_page_top key in Miscellaneous Configurations. See DMOJ/docs#4

Edit: Source:

{{ render_django(i18n_config.home_page_top, request=request, user_count=user_count, problem_count=problem_count, submission_count=submission_count, language_count=language_count, perms=perms) }}

@yang6wolf
Copy link
Author

The problem has been solved.

Thank you very much~ @fluix-dev

@fluix-dev
Copy link
Contributor

No problem, please close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants