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

UHF-7685: Show message when newslist has now news to list #516

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

Arkkimaagi
Copy link
Contributor

@Arkkimaagi Arkkimaagi commented Jan 12, 2023

UHF-7685

News listing produces an empty ul-element when there are no news to list. It looks confusing, ugly and causes siteimprove to lose its marbles. 😕

What was done

  • An error message <p> was added instead of the <ul> element when there are no news.

How to install

  • Make sure your instance is up and running on latest dev branch.
    • git pull origin dev
    • make fresh
  • Update the HDBT theme
    • composer require drupal/hdbt:dev-UHF-UHF-7685_no_news
  • Run make drush-cr

How to test

  • Check that newslisting has a message when news are not available
  • Check that the message works on all three languages
  • Check that code follows our standards

Designers review

  • This PR does not need designers review

@dire dire self-requested a review January 13, 2023 07:44
Copy link
Contributor

@dire dire left a comment

Choose a reason for hiding this comment

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

Looks good and works as should.

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.

2 participants