more work on mobile view

This commit is contained in:
albert
2011-11-09 18:33:13 -05:00
parent 3b961481f3
commit 935e746815
5 changed files with 96 additions and 15 deletions

View File

@@ -1,13 +1,16 @@
<header>
<div id="sign-in-item">
<%= Danbooru.config.app_name %>
<% if true || CurrentUser.is_anonymous? %>
- <%= link_to "Sign in", new_m_session_path %>
<%= 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] %>
<%= search_field_tag :tags, params[:tags], :placeholder => "Search" %>
<% end %>
</div>
</header>

View File

@@ -0,0 +1,33 @@
<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 %>