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

Fix Card Footer #668

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Fix Card Footer #668

wants to merge 1 commit into from

Conversation

hamishau
Copy link
Contributor

Improved the default card template to hide the card-footer div if a link is not added. Current shows an empty section which shouldn't be visible if there is no link:

image

Improved version hides the card footer if no link has been specified in the Wagtail editor:

image

{% include_block button %}
{% endfor %}
</div>
{% for button in self.links %}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be best to leave the for-loop inside the div, and replace this with an {% if self.links %} check.

For example, if there are two buttons, they should render side by side. This change would make them render in two separate footers.

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