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

Feat: Add site_name to Template Context from pretalx.cfg (Fixes #8) #37

Conversation

abhishekmishragithub
Copy link
Contributor

@abhishekmishragithub abhishekmishragithub commented Feb 14, 2024

Fixes #8

This PR introduces the addition of the site_name variable to the context of all templates. The site_name is retrieved from the pretalx.cfg configuration file and is now available for use in all templates, improving the flexibility and customization of the templates.

Primary changes include:

  1. Modified the context for required views to include site_name from pretalx.cfg in the context.
  2. Adjusted all templates extending to render site_name context variable.

These changes allow for a more dynamic and customizable user experience, as the site name can now be adjusted via the pretalx.cfg configuration file and will be reflected across all templates.

To read more about configuration read, pretalx config doc.

…cfg file

This commit adds a new setting to the pretalx.cfg file to set the site/system name. This setting is used in the site header and in the page title.
This feat also sets the deault site name to "Eventyay" in the CONFIG constant under config.py and sets the sample in the pretalx.example.cfg file.
This change updates the tempalte pretalx/orga/templates/orga/base.html to use the new setting to set the site name in the site header and page title.
Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

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

Ok, thank you. Good job. Please see my comments and ensure images match sizes and design specs. Thank you

assets/icon.svg Outdated Show resolved Hide resolved
assets/logo.png Outdated Show resolved Hide resolved
assets/logo.svg Outdated Show resolved Hide resolved
assets/logo_inverted.png Outdated Show resolved Hide resolved
assets/logo_inverted.svg Outdated Show resolved Hide resolved
assets/icon.png Outdated Show resolved Hide resolved
src/pretalx.example.cfg Outdated Show resolved Hide resolved
src/pretalx/common/templates/common/error.html Outdated Show resolved Hide resolved
src/pretalx/orga/templates/orga/auth/base.html Outdated Show resolved Hide resolved
src/pretalx/orga/templates/orga/auth/base.html Outdated Show resolved Hide resolved
Copy link
Contributor Author

@abhishekmishragithub abhishekmishragithub left a comment

Choose a reason for hiding this comment

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

Pleas have a look at the new changes. i was not able to make some graphic design changes due to my incompetence in design tooling, please assign the work to Designer of needed. The icon update etc was anyway out of the scope of this PR, but i have manged to add main icons and logos.

@abhishekmishragithub abhishekmishragithub changed the title WIP: Fix/#8 update system config settings Feat: Add site_name to Template Context from pretalx.cfg (Fixes #8) Feb 16, 2024
@abhishekmishragithub abhishekmishragithub marked this pull request as ready for review February 16, 2024 19:22
@abhishekmishragithub abhishekmishragithub changed the base branch from main to development February 16, 2024 19:23
@abhishekmishragithub
Copy link
Contributor Author

Ok, thank you. Good job. Please see my comments and ensure images match sizes and design specs. Thank you

I have made the changes in the new commits, please re-review and merge if looks good :)

@abhishekmishragithub abhishekmishragithub force-pushed the fix/#8-update-system-config-settings branch from 8239f1d to 4dbc369 Compare February 17, 2024 10:50
Copy link
Member

Choose a reason for hiding this comment

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

Please change this to 16x16 as well.

Copy link
Member

Choose a reason for hiding this comment

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

Expected size: 550px | H: 302px
If possible make background transparent and invert blue and white.

Copy link
Member

Choose a reason for hiding this comment

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

which logo does this file substitute? Should this be rather an .svg in src/pretalx/static/common/img/logo_white.svg?

Copy link
Member

Choose a reason for hiding this comment

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

The new svg file here shows up as completely transparent without the eventyay text.

Copy link
Member

Choose a reason for hiding this comment

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

This is quite big for such a small file. Please reduce the file size.

Copy link
Member

Choose a reason for hiding this comment

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

While the size of the image is correct now, the logo is not filling the image. There is too much space around.

assets/logo.svg Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Good!

assets/logo.png Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Good even though you could increase the logo size (not the image size) a bit to match the previous logo.

assets/icon.svg Outdated
Copy link
Member

Choose a reason for hiding this comment

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

Yes, this is good as it matches the size here.

@mariobehling mariobehling requested review from eMBee and marcoag March 6, 2024 23:35
@norbusan norbusan mentioned this pull request Mar 7, 2024
@norbusan
Copy link
Member

norbusan commented Mar 8, 2024

Rebased and fixed in #69 already merged.

@norbusan norbusan closed this Mar 8, 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.

Make system name configurable in the config settings
3 participants