Page MenuHomePhabricator

Improvements to the copyright term page: country list styles
Closed, ResolvedPublic

Description

Context: Paulina includes a page that lists all countries with copyright term 50 years pma and another one for copyright term 70 years pma. The list of countries is quite long

Feature: Instead of a list, let's show the countries in a grid that includes the contries' flag icons, analog to the Countries and terms page. Do not show the copyright term inside each country box, as it would be redundant.

Event Timeline

Nat_WDU renamed this task from Improvements to the copyright term page: contry list styles to Improvements to the copyright term page: country list styles.Sep 25 2025, 2:35 PM

I’d like to work on this feature. From what I understand, the goal is to replace the current long list of countries (with 50 and 70 years pma) with a grid layout that displays country flag icons, similar to the Countries and terms page. I’ll make sure the layout maintains consistency with that existing page and omit the copyright term in each box as specified.

Hi @Nat_WDU
I’d love to work on this task, could I please be assigned to it?

Would be interested in taking up this task if possible!

@Sandijigs I see you are already working on another ticket, and I've just assigned T370173 to @shreya-bhagat

Assigning this one to @Rolalove
Happy coding!

@Nat_WDU @Pepe_piton Completed this task, kindly review and merge:
Merge request: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/13
Preview of changes:

Screenshot from 2025-10-09 10-53-02.png (988×1 px, 74 KB)

Please let me know if anything needs to be changed, thanks!

Hi @Nat_WDU @Pepe_piton

I’ve updated the copyright term pages to display countries in a responsive grid with flags, as requested.

The merge request is submitted: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/17

Could you please review it when you have a chance? Thank you.

Screenshot 2025-10-09 172158.png (672×1 px, 48 KB)

Screenshot 2025-10-09 172237.png (674×1 px, 49 KB)

hi
i made a merge request related this issue:-https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/56
changes made

  • Updated squeries.py to fetch country flags using SPARQL (?flag).
  • Modified term.html to show countries in a responsive grid with flag icons.
  • Tested locally — grid renders correctly and is visually clearer.

The main changes were made to term.html and squeries.py. While checking the files, I made some changes and accidentally pushed unnecessary files in the merge request.
I'd appreciate it if you could take a look at my work and provide feedback. I want to make sure I'm meeting expectations and understand any areas for improvemen

Hello, everyone!

@shreya-bhagat & @Oluwatumininu.m
good implementation, good job with the SPARQL query

@Rolalove
good job! but I think the blue links don’t go well with the rest of the site’s look and feel. I think the text in black, like in the current Countries and terms page works best

@Dipanshu1223
the part that relates to this task looks good. But as you pointed out, the MR should include only the code for this ticket

There are not many more ways to solve this task left to explore, so I'll merge one of the MRs and close this task.

Hello, everyone!

@shreya-bhagat & @Oluwatumininu.m
good implementation, good job with the SPARQL query

Thank you for the feedback

thanks for feedback @Nat_WDU
I try my best not make mistake again.

Hi everyone!

@shreya-bhagat did a great job at resolving this issue!
I just noticed that, in smaller screen, some grid element were not taking their full height (even though they had a class of h-100) so I had made a small edit to fix this minor issue: applying d-flex to each grid element.
This is my PR .

Regards,
Farmata.