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

Adds AdminConfig to override app_title, logo_url in the templates. #374

Merged
merged 9 commits into from
Nov 18, 2023
Merged

Adds AdminConfig to override app_title, logo_url in the templates. #374

merged 9 commits into from
Nov 18, 2023

Conversation

hasansezertasan
Copy link
Contributor

Check out the changed files, there is a good example.

Resolves: #349

Copy link
Owner

@jowilf jowilf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest creating another class, AdminConfig, and a method get_admin_config. What do you think?

@hasansezertasan
Copy link
Contributor Author

I suggest creating another class, AdminConfig, and a method get_admin_config. What do you think?

I'm working on it

Copy link

codecov bot commented Nov 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9646fbe) 100.00% compared to head (294ddb0) 100.00%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #374   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           72        72           
  Lines         5559      5568    +9     
=========================================
+ Hits          5559      5568    +9     
Files Coverage Δ
starlette_admin/auth.py 100.00% <100.00%> (ø)
starlette_admin/base.py 100.00% <100.00%> (ø)
tests/auth_provider.py 100.00% <100.00%> (ø)
tests/test_auth.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hasansezertasan hasansezertasan changed the title Extends AdminUser to override app_title, logo_url Adds AdminConfig to override app_title, logo_url in the templates. Nov 10, 2023
Copy link
Owner

@jowilf jowilf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your changes look great. Please add get_admin_config to auth_provider and include a test case for it in test_auth. Thanks!

Copy link
Owner

@jowilf jowilf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, Thank you @hasansezertasan

@jowilf jowilf merged commit 72fabb6 into jowilf:main Nov 18, 2023
9 checks passed
@hasansezertasan hasansezertasan deleted the dynamic-logo-url-app-title branch November 23, 2023 17:25
@jowilf jowilf added this to the 0.13.0 milestone Dec 23, 2023
@jowilf jowilf mentioned this pull request Jan 16, 2024
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

Successfully merging this pull request may close these issues.

Enhancement: configurable logo & skin tenant-based instead of fixed at instantiation time
2 participants