Skip to content

Conversation

@marandmart
Copy link

  • Updated login/jsx/loginIndex to display partner logos on the homepage.
  • Added functionality to customize the top-left and top-right assets in the homepage header via Config.
  • Applied new styling for the header images.
  • Modified public_layout.tpl to ensure assets are not displayed if they are not configured.
Screenshot 2025-10-16 at 10 13 33 AM
  • Included SQL updates to define the base settings for these new assets.
  • Added functionality to display partner logos panel on the homepage, if they are defined in the Config.

Partner logos are defined
Screenshot 2025-10-16 at 12 18 45 PM

Partner logos are not defined
Screenshot 2025-10-16 at 12 14 27 PM

@github-actions github-actions bot added Language: SQL PR or issue that update SQL code RaisinBread PR or issue introducing/requiring improvements to the Raidinbread dataset Language: PHP PR or issue that update PHP code Language: Javascript PR or issue that update Javascript code Module: login PR or issue related to login module labels Oct 16, 2025
@skarya22
Copy link
Contributor

Looks great!
I wonder if the partners would look better within the login panel similar to what EEGNet does.
image

Maybe @christinerogers @jeffersoncasimir if this change would work for you too, then I can go ahead an approve it. Otherwise maybe it could be customizable whether the partners are its own panel or within the login page

INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) VALUES('login_logo_right_link', 'Optional link to redirect when clicking on top right logo', 1, 0, 'text', 1, 'Login Top Right Logo Link', 4);
INSERT INTO ConfigSettings (Name, Description, Visible, AllowMultiple, DataType, Parent, Label, OrderNumber) VALUES('partner_logos', 'Logos for partners to be displayed in the homepage', 1, 1, 'text', 1, 'Partner Logos', 4);

INSERT INTO Config (ConfigID, Value) VALUES ((SELECT ID FROM ConfigSettings WHERE Name="login_logo_left"), "/images/LORIS_logo_white.svg");
Copy link
Contributor

@skarya22 skarya22 Oct 17, 2025

Choose a reason for hiding this comment

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

Would it be possible to make the images work in an overridden project setting? I tried to change the logo to one in my project folder but it doesn't seem to work

INSERT INTO Config (ConfigID, Value) VALUES ((SELECT ID FROM ConfigSettings WHERE Name="login_logo_left"), "../project/images/ctu.png");

Copy link
Collaborator

Choose a reason for hiding this comment

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

its possible, that's what we do on CBIG. you would need to put the logo in the static directory of a project module. I have a project module specific to anything that can be reached by an anonymous user and another module for things that require login but basically the logos sit in the publicly accessible one.

Copy link
Contributor

@jeffersoncasimir jeffersoncasimir Oct 17, 2025

Choose a reason for hiding this comment

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

Ways to achieve this:

  • Modify apache settings (see docs/config/apache2-site to see what your config probably is currently. you'll see how and why /images redirects images from htdocs/images, etc)
    or
  • Use images.loris.ca - every project can have their own folder there

Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont think we need to go that far, the project module way works fine

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, so the image would be at /project/static/images/ctu.png
And then I can reference it with what from config?

Copy link
Contributor

Choose a reason for hiding this comment

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

@skarya22 What he means is that every module's static/ directory has the correct settings already. To override, you can place and reference an image in, for example: project/modules/login/static/ctu.png.

opacity: 1;
-webkit-transition: opacity 0.2s ease-in;
transition: opacity 0.2s ease-in;
.logo-right {
Copy link
Contributor

Choose a reason for hiding this comment

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

With the sizing changes, the github logo looks blurry now. Could you update it to be a higher quality image, or change to an svg?

Copy link
Author

Choose a reason for hiding this comment

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

I have updated the asset to a svg

-webkit-transition: opacity 0.2s ease-in;
transition: opacity 0.2s ease-in;
.logo-right {
margin-left: auto;
Copy link
Contributor

Choose a reason for hiding this comment

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

The logos feel a little too big on mobile devices now

Image

Copy link
Author

Choose a reason for hiding this comment

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

adjust the mobile display of the asset to be smaller

Copy link
Contributor

@skarya22 skarya22 left a comment

Choose a reason for hiding this comment

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

LGTM!

@skarya22 skarya22 added the Passed manual tests PR has been successfully tested by at least one peer label Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Language: PHP PR or issue that update PHP code Language: SQL PR or issue that update SQL code Module: login PR or issue related to login module Passed manual tests PR has been successfully tested by at least one peer RaisinBread PR or issue introducing/requiring improvements to the Raidinbread dataset

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants