Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Overwriting templatetags #519

Open
bastien34 opened this issue Sep 20, 2021 · 1 comment
Open

Overwriting templatetags #519

bastien34 opened this issue Sep 20, 2021 · 1 comment

Comments

@bastien34
Copy link

Hi,
Scheduletags tags return sometimes hardcoded html like:
return mark_safe( '<a href="%s%s"><span class="glyphicon glyphicon-circle-arrow-left"></span></a>' % ( reverse(f"{target}", kwargs={"calendar_slug": slug}), querystring_for_date(period.prev().start), ) )
What do you advise to overwrite it? Making a kind of NewScheduletags lib is the first idea that came to me? How would you integrate it?

@robertpro
Copy link
Contributor

I think this needs to be solved by adding another html template passing only the url, another solution is copy & paste the template tag and fix it locally.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants