-
Notifications
You must be signed in to change notification settings - Fork 6
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
🗑️ [#2062] Remove card templatetags #1010
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1010 +/- ##
===========================================
- Coverage 94.74% 94.74% -0.01%
===========================================
Files 872 872
Lines 30571 30544 -27
===========================================
- Hits 28965 28939 -26
+ Misses 1606 1605 -1 ☔ View full report in Codecov by Sentry. |
6af9edd
to
a7ebcbf
Compare
a7ebcbf
to
57314b1
Compare
7a7a817
to
997c18c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved for the clean-up + and the location card currently contains clickable phone/mail links, which makes it a bit different from the other cards, so that's good to have as a separate construct.
@@ -55,113 +26,3 @@ def render_card(parser, token): | |||
nodelist = parser.parse(("endrender_card",)) | |||
parser.delete_first_token() | |||
return ContentsNode(nodelist, "components/Card/RenderCard.html", **context_kwargs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very pleasant clean-up :-)
@@ -0,0 +1,16 @@ | |||
{% load link_tags string_tags %} | |||
<div class="card card__body"> | |||
{% if location_name %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see this card is in the 'old' style and contains a link inside, (as opposed to all the other cards that are entirely clickable with a surrounding anchor instead) but then again: we'll indeed need to keep the phone/mail as clickable items.
issue: https://taiga.maykinmedia.nl/project/open-inwoner/issue/2062