prototype mobile interface
This commit is contained in:
19
app/views/m/posts/index.html.erb
Normal file
19
app/views/m/posts/index.html.erb
Normal file
@@ -0,0 +1,19 @@
|
||||
<div id="c-m-posts">
|
||||
<%= render "header" %>
|
||||
|
||||
<% @post_set.posts.each do |post| %>
|
||||
<%= PostPresenter.preview(post, :path_prefix => "/m/posts") %>
|
||||
<% end %>
|
||||
|
||||
<footer>
|
||||
<%= sequential_paginator(@post_set.posts) %>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
<% content_for(:page_title) do %>
|
||||
<% if params[:tags].present? %>
|
||||
<%= params[:tags] %> - <%= Danbooru.config.app_name %>
|
||||
<% else %>
|
||||
<%= Danbooru.config.app_name %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user