This commit is contained in:
r888888888
2013-11-20 15:45:03 -08:00
parent ce55d57728
commit 231993b98e
11 changed files with 177 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
<!doctype html>
<html>
<head>
<title><%= yield :page_title %></title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<%= csrf_meta_tag %>
<%= stylesheet_link_tag "mobile", :media => "screen" %>
<%= javascript_include_tag "mobile" %>
<%= Danbooru.config.custom_html_header_content %>
<%= yield :html_header %>
</head>
<body lang="en">
<header id="top">
<h1><%= link_to Danbooru.config.app_name, "/" %></h1>
</header>
<div id="page">
<%= yield :layout %>
</div>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<%= form_tag(m_posts_path, :method => "get") do %>
<%= text_field_tag("tags", params[:tags], :size => 30) %>
<%= submit_tag "Go", :name => nil %>
<% end %>
<%= @post_set.presenter.post_previews_html(self, :mobile => true) %>
<%= numbered_paginator(@post_set.posts) %>
<div id="tags">
<%= @post_set.presenter.tag_list_html(self, :name_only => true, :path_prefix => "/m/posts") %>
</div>
<%= content_for(:html_header) do %>
<meta name="viewport" content="width=device-width,initial-scale=1">
<% end %>

View File

@@ -0,0 +1,14 @@
<%= form_tag(m_posts_path, :method => "get") do %>
<%= text_field_tag("tags", params[:tags], :size => 20) %>
<%= submit_tag "Go", :name => nil %>
<% end %>
<%= @post.presenter.image_html(self) %>
<div id="tags">
<%= @post.presenter.tag_list_html(self, :name_only => true, :path_prefix => "/m/posts") %>
</div>
<%= content_for(:html_header) do %>
<meta name="viewport" content="width=device-width,initial-scale=<%= @post.device_scale %>">
<% end %>