41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
<%= form_tag(m_posts_path, :method => "get") do %>
|
|
<%= text_field_tag("tags", params[:tags], :size => 14) %>
|
|
<%= submit_tag "Go", :name => nil %>
|
|
<% end %>
|
|
|
|
<%= @post_set.presenter.post_previews_html(self, :path_prefix => "/m/posts") %>
|
|
|
|
<%= sequential_paginator(@post_set.posts) %>
|
|
|
|
<%= content_for(:html_header) do %>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$(document).on("swipeleft", function(e) {
|
|
if (e.gesture.distance > 150) {
|
|
var href = $(".paginator a[rel=next]").attr("href");
|
|
if (href) {
|
|
window.location = href;
|
|
}
|
|
}
|
|
});
|
|
|
|
$(document).on("swiperight", function(e) {
|
|
if (e.gesture.distance > 150) {
|
|
var href = $(".paginator a[rel=prev]").attr("href");
|
|
if (href) {
|
|
window.location = href;
|
|
}
|
|
}
|
|
})
|
|
});
|
|
</script>
|
|
<% end %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
<% if @post_set.tag_string.present? %>
|
|
<%= @post_set.humanized_tag_string %> - <%= Danbooru.config.app_name %>
|
|
<% else %>
|
|
<%= Danbooru.config.app_name %>
|
|
<% end %>
|
|
<% end %> |