kopia lustrzana https://github.com/wagtail/wagtail
Don't include tab-content--comments-enabled in initial response
Let the JS add this when it's readypull/7088/head
rodzic
e62103ae1c
commit
84db8436d6
|
@ -30,7 +30,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-content tab-content--comments-enabled">
|
<div class="tab-content">
|
||||||
{% for child in self.children %}
|
{% for child in self.children %}
|
||||||
<section id="tab-{{ child.heading|cautious_slugify }}" class="{{ child.classes|join:" " }} {% if forloop.first %}active{% endif %}" role="tabpanel" aria-labelledby="tab-label-{{ child.heading|cautious_slugify }}" data-tab="{{ child.heading|cautious_slugify }}">
|
<section id="tab-{{ child.heading|cautious_slugify }}" class="{{ child.classes|join:" " }} {% if forloop.first %}active{% endif %}" role="tabpanel" aria-labelledby="tab-label-{{ child.heading|cautious_slugify }}" data-tab="{{ child.heading|cautious_slugify }}">
|
||||||
{{ child.render_as_object }}
|
{{ child.render_as_object }}
|
||||||
|
|
|
@ -315,7 +315,7 @@ class TestTabbedInterface(TestCase):
|
||||||
self.assertIn('<a href="#tab-speakers" class="" data-tab="speakers">Speakers</a>', result)
|
self.assertIn('<a href="#tab-speakers" class="" data-tab="speakers">Speakers</a>', result)
|
||||||
|
|
||||||
# result should contain tab panels
|
# result should contain tab panels
|
||||||
self.assertIn('<div class="tab-content tab-content--comments-enabled">', result)
|
self.assertIn('<div class="tab-content">', result)
|
||||||
self.assertIn('<section id="tab-event-details" class="shiny active" role="tabpanel" aria-labelledby="tab-label-event-details" data-tab="event-details">', result)
|
self.assertIn('<section id="tab-event-details" class="shiny active" role="tabpanel" aria-labelledby="tab-label-event-details" data-tab="event-details">', result)
|
||||||
self.assertIn('<section id="tab-speakers" class=" " role="tabpanel" aria-labelledby="tab-label-speakers" data-tab="speakers">', result)
|
self.assertIn('<section id="tab-speakers" class=" " role="tabpanel" aria-labelledby="tab-label-speakers" data-tab="speakers">', result)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue