docbrown/app/views/admin/tools/index.html.erb
Jacob Herrington f52aaa3610
[deploy] Add a simple image uploader partial (#10884)
* Add a simple image uploader partial

* Trigger Travis CI

Co-authored-by: rhymes <rhymes@hey.com>
2020-10-21 16:41:50 +02:00

33 lines
1.3 KiB
Text

<div class="crayons-card p-6 mb-6">
<h2 class="crayons-title mb-4">General Purpose URL Purge</h2>
<p class="mb-2">For a page that should 404. This will purge the page via Fastly.</p>
<p class="mb-6">Use the full path (<%= app_url("xyz") %>) or the relative path: (/xyz)</p>
<%= form_tag bust_cache_admin_tools_path do %>
<div class="form-group">
<%= label_tag :dead_link, "Link:" %>
<%= text_field_tag :dead_link, nil, placeholder: "/xyz" %>
<%= submit_tag("Clear Cache") %>
</div>
<% end %>
</div>
<div class="crayons-card p-6 mb-6">
<h2 class="crayons-title mb-4">Bust Cache For Specific Content</h2>
<p class="mb-6">This clears both the Rails cache & the Fastly cache.</p>
<%= form_tag bust_cache_admin_tools_path do %>
<div class="form-group">
<%= label_tag :bust_article, "Article ID:" %>
<%= text_field_tag :bust_article, nil, placeholder: "12345" %>
<%= submit_tag("Clear Article Cache") %>
</div>
<% end %>
<%= form_tag bust_cache_admin_tools_path do %>
<div class="form-group">
<%= label_tag :bust_user, "User ID:" %>
<%= text_field_tag :bust_user, nil, placeholder: "12345" %>
<%= submit_tag("Clear User Cache") %>
</div>
<% end %>
</div>
<%= render "admin/shared/image_uploader" %>