Disable turbolinks for demo pages

This commit is contained in:
bumi 2020-05-04 11:09:57 +02:00
parent 63714b6c15
commit 55a2a1a51a
3 changed files with 8 additions and 8 deletions

View File

@ -8,13 +8,13 @@
<div class="tabs is-centered"> <div class="tabs is-centered">
<ul> <ul>
<li> <li>
<%= link_to demo_url(backend: 'google-sheets') do %> <%= link_to demo_url(backend: 'google-sheets'), data: { turbolinks: 'false'} do %>
<span class="icon is-small"><%= image_tag 'google_sheets-icon.svg' %></span> <span class="icon is-small"><%= image_tag 'google_sheets-icon.svg' %></span>
<span>Google Sheets</span> <span>Google Sheets</span>
<% end %> <% end %>
</li> </li>
<li class="is-active"> <li class="is-active">
<%= link_to demo_url(backend: 'airtable') do %> <%= link_to demo_url(backend: 'airtable'), data: { turbolinks: 'false'} do %>
<span class="icon is-small"><%= image_tag 'airtable-icon.svg' %></span> <span class="icon is-small"><%= image_tag 'airtable-icon.svg' %></span>
<span>Airtable</span> <span>Airtable</span>
<% end %> <% end %>
@ -35,7 +35,7 @@
<p> <p>
<%= link_to "Create your form now!", signup_url, class: 'button' %> <%= link_to "Create your form now!", signup_url, class: 'button' %>
<br> <br>
or got <%= link_to 'further questions?', contact_url %> or got <%= link_to 'further questions?', contact_url, data: { turbolinks: 'false'} %>
</p> </p>
</div> </div>

View File

@ -8,13 +8,13 @@
<div class="tabs is-centered"> <div class="tabs is-centered">
<ul> <ul>
<li class="is-active"> <li class="is-active">
<%= link_to demo_url(backend: 'google-sheets') do %> <%= link_to demo_url(backend: 'google-sheets'), data: { turbolinks: 'false'} do %>
<span class="icon is-small"><%= image_tag 'google_sheets-icon.svg' %></span> <span class="icon is-small"><%= image_tag 'google_sheets-icon.svg' %></span>
<span>Google Sheets</span> <span>Google Sheets</span>
<% end %> <% end %>
</li> </li>
<li> <li>
<%= link_to demo_url(backend: 'airtable') do %> <%= link_to demo_url(backend: 'airtable'), data: { turbolinks: 'false'} do %>
<span class="icon is-small"><%= image_tag 'airtable-icon.svg' %></span> <span class="icon is-small"><%= image_tag 'airtable-icon.svg' %></span>
<span>Airtable</span> <span>Airtable</span>
<% end %> <% end %>
@ -36,7 +36,7 @@
<p> <p>
<%= link_to "Create your form now!", signup_url, class: 'button' %> <%= link_to "Create your form now!", signup_url, class: 'button' %>
<br> <br>
or got <%= link_to 'further questions?', contact_url %> or got <%= link_to 'further questions?', contact_url, data: { turbolinks: 'false'} %>
</p> </p>
</div> </div>

View File

@ -20,7 +20,7 @@
</p> </p>
<p class="call-to-action"> <p class="call-to-action">
<%= link_to "Get started", signup_url, class: 'is-uppercase button is-rounded is-primary has-text-white a-menu' %> <%= link_to "Get started", signup_url, class: 'is-uppercase button is-rounded is-primary has-text-white a-menu' %>
or try our <%= link_to "Live demos", demo_url %> or try our <%= link_to "Live demos", demo_url, data: { turbolinks: 'false'} %>
</p> </p>
</div> </div>
</div> </div>
@ -245,7 +245,7 @@
<%= link_to "Start now - 15 days for free!", signup_url, class: 'is-uppercase button is-rounded is-primary has-text-white a-menu' %> <%= link_to "Start now - 15 days for free!", signup_url, class: 'is-uppercase button is-rounded is-primary has-text-white a-menu' %>
</p> </p>
<p class="paragraph" style="margin-top:1em"> <p class="paragraph" style="margin-top:1em">
Want to see tinyforms in action first? Try our <%= link_to "live demos", demo_url %>. Want to see tinyforms in action first? Try our <%= link_to "live demos", demo_url, data: { turbolinks: 'false'} %>.
</p> </p>
</div> </div>
</section> </section>