llazzaro / django-scheduler

A calendaring app for Django.
BSD 3-Clause "New" or "Revised" License
1.27k stars 391 forks source link

Overwriting templatetags #519

Open bastien34 opened 2 years ago

bastien34 commented 2 years ago

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 commented 2 years ago

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.