removed /m/ codepath, added mobile override stylesheet

This commit is contained in:
albert
2011-11-14 17:55:53 -05:00
parent eb58773089
commit 99a48dc242
16 changed files with 56 additions and 303 deletions

View File

@@ -17,6 +17,7 @@
<meta name="default-image-size" content="<%= CurrentUser.user.default_image_size %>">
<%= auto_discovery_link_tag :atom, posts_path(:format => "atom", :tags => params[:tags]) %>
<%= stylesheet_link_tag "application", :media => "screen" %>
<%= stylesheet_link_tag "mobile", :media => "handheld" %>
<%= javascript_include_tag "application" %>
<%= Danbooru.config.custom_html_header_content %>
<%= yield :html_header %>

View File

@@ -1,16 +0,0 @@
<header>
<div id="sign-in-item">
<%= link_to Danbooru.config.app_name, posts_path %>
<% if CurrentUser.is_anonymous? %>
&ndash; <%= link_to "Sign in", new_m_session_path(:url => request.fullpath) %>
<% else %>
&ndash; <%= link_to "Sign out", m_session_path, :remote => true, :method => :delete %>
<% end %>
</div>
<div id="search-item">
<%= form_tag(m_posts_path, :method => :get) do %>
<%= search_field_tag :tags, params[:tags], :placeholder => "Search" %>
<% end %>
</div>
</header>

View File

@@ -1,3 +0,0 @@
<div id="tag-list">
<%= post.presenter.tag_list_html(self, :name_only => true, :path_prefix => "/m/posts") %>
</div>

View File

@@ -1,21 +0,0 @@
<div id="c-m-posts">
<%= render "header" %>
<div id="posts">
<% @post_set.posts.each do |post| %>
<%= PostPresenter.preview(post, :path_prefix => "/m/posts") %>
<% end %>
</div>
<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 %>

View File

@@ -1,11 +0,0 @@
<div id="c-m-posts">
<%= render "header" %>
<%= image_tag(@post.large_file_url, :width => @post.large_image_width, :height => @post.large_image_height, :id => "image") %>
<%= render "tags", :post => @post %>
</div>
<% content_for(:page_title) do %>
<%= @post.tag_string %> - <%= Danbooru.config.app_name %>
<% end %>

View File

@@ -1,33 +0,0 @@
<div id="c-m-sessions">
<div id="a-new">
<section>
<h1>Sign in</h1>
<%= form_tag(session_path, :class => "simple_form") do %>
<%= hidden_field_tag "url", params[:url] %>
<div class="input">
<label for="name">Name</label>
<%= text_field_tag :name %>
</div>
<div class="input">
<label for="password">Password</label>
<%= password_field_tag :password %>
</div>
<div class="input">
<label for="remember" id="remember-label">Remember</label>
<%= check_box_tag :remember %>
</div>
<div class="input">
<%= submit_tag "Submit" %>
</div>
<% end %>
</section>
</div>
</div>
<% content_for(:page_title) do %>
Sign in - <%= Danbooru.config.app_name %>
<% end %>

View File

@@ -1,17 +1,17 @@
<% content_for(:secondary_links) do %>
<menu>
<li><%= link_to "Listing", posts_path %></li>
<li><%= link_to "Upload", new_upload_path %></li>
<li class="nonessential"><%= link_to "Upload", new_upload_path %></li>
<li><%= link_to "Popular", popular_explore_posts_path %></li>
<li><%= link_to "Hot", posts_path(:tags => "order:rank") %></li>
<% unless CurrentUser.is_anonymous? %>
<li><%= link_to "Favorites", favorites_path %></li>
<li><%= link_to "Subscriptions", posts_tag_subscription_path(CurrentUser.id) %></li>
<% end %>
<li><%= link_to "Changes", post_versions_path %></li>
<li class="nonessential"><%= link_to "Changes", post_versions_path %></li>
<% if CurrentUser.is_janitor? %>
<li><%= link_to "Moderate", moderator_post_queue_path %></li>
<li class="nonessential"><%= link_to "Moderate", moderator_post_queue_path %></li>
<% end %>
<li><%= link_to "Help", wiki_pages_path(:title => "help:posts") %></li>
<li class="nonessential"><%= link_to "Help", wiki_pages_path(:title => "help:posts") %></li>
</menu>
<% end %>