Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
Hotlink to the production RubyGems stylesheet, start moving over some…
Browse files Browse the repository at this point in the history
… markup.
  • Loading branch information
nz committed Jun 4, 2011
1 parent 6e31754 commit 86235b8
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
25 changes: 23 additions & 2 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,34 @@
<html>
<head>
<title>SearchRubygems</title>
<%= stylesheet_link_tag "application" %>
<%= stylesheet_link_tag "http://rubygems.org/stylesheets/all.css" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>

<%= yield %>

<div class="container_12">

<div class="prefix_1 grid_4 header">
<h1><a href="https://rubygems.org/" title="Home">RubyGems.org</a></h1>
</div>

<div class="grid_6 suffix_1 nav">
<div id="nav-cap">
<div id="user-info"></div>
<ul id="signed-in"></ul>
</div>
<%= form_tag '/search', :method => :get, :id => 'main-search' do %>
<%= text_field_tag :q, params[:q], :id => 'query' %>
<%= submit_tag 'Search', :id => 'search_submit' %>
<% end %>
</div>

<div class="prefix_1 grid_10 suffix_1 main" data-pjax-container>
<%= yield %>
</div>
</div>

</body>
</html>
11 changes: 7 additions & 4 deletions app/views/search/search.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<%= form_tag '/search', :method => :get do %>
<div class="info clearfix">

<%= search_field_tag :q, params[:q] %>
<%= submit_tag 'Search' %>
<div class="title">
<h2><%= link_to 'search', '/search' %></h2>
<h3>for <em><%= params[:q] %></em></h3>
</div>

<% end %>
asdf
</div>

0 comments on commit 86235b8

Please sign in to comment.