Browse Source

Fix bugu, kdy se na apríla objeví na chvíli stránka normálně

middleware_test
Pavel "LEdoian" Turinsky 4 years ago
parent
commit
f1aa2d6368
  1. 6
      mamweb/templates/base.html
  2. 1
      various/context_processors.py

6
mamweb/templates/base.html

@ -169,10 +169,8 @@
return Math.floor(360*Math.random());
}
$(document).ready(function(){
$('.container').css('margin', 0);
rotace_a_posun($('.container'), randomUhel());
});
$('.container').css('margin', 0);
rotace_a_posun($('.container'), randomUhel());
</script>
{% endif %}
{% render_block "js" %}

1
various/context_processors.py

@ -1,4 +1,5 @@
def april(req):
return {'april': 2021}
if 'X-April' in req.headers:
try:
year = int(req.headers['X-April'])

Loading…
Cancel
Save