Skip to content

Commit

Permalink
placeholder vs value in search
Browse files Browse the repository at this point in the history
  • Loading branch information
zapnap committed Aug 26, 2015
1 parent 27be4cb commit 038486b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/gems_index.erb
Expand Up @@ -5,7 +5,7 @@
<li><a href="/stdlib">Stdlib</a></li>
<li class="selected">RubyGems</li>
<li><a href="/github">GitHub</a></li>
<li class="search"><form action="/find/gems" method="GET"><input type="text" id="docSearch" name="q" value="<%= h @search || 'Search Gems' %>"/></form></li>
<li class="search"><form action="/find/gems" method="GET"><input type="text" id="docSearch" name="q" value="<%= h @search %>" placeholder="Search Gems"/></form></li>
</ul>
</nav>
<h2>RubyGems <%= h @search ? 'Search Results' : 'Listing' %></h2>
Expand Down
2 changes: 1 addition & 1 deletion templates/home.erb
Expand Up @@ -29,7 +29,7 @@
<li><a href="/stdlib">Stdlib</a></li>
<li><a href="/gems">RubyGems</a></li>
<li class="selected">GitHub</li>
<li class="search"><form action="/find/github" method="GET"><input type="text" id="docSearch" name="q" value="<%= h @search || 'Search GitHub Projects' %>"/></form></li>
<li class="search"><form action="/find/github" method="GET"><input type="text" id="docSearch" name="q" value="<%= h @search %>" placeholder="Search GitHub Projects"/></form></li>
</ul>
</nav>

Expand Down
2 changes: 1 addition & 1 deletion templates/scm_index.erb
Expand Up @@ -9,7 +9,7 @@
<li><a href="/stdlib">Stdlib</a></li>
<li><a href="/gems">RubyGems</a></li>
<li class="selected">GitHub</li>
<li class="search"><form action="/find/github" method="GET"><input type="text" id="docSearch" name="q" value="<%= h @search || 'Search GitHub Projects' %>"/></form></li>
<li class="search"><form action="/find/github" method="GET"><input type="text" id="docSearch" name="q" value="<%= h @search %>" placeholder="Search GitHub Projects"/></form></li>
</ul>
</nav>
<h2>GitHub Projects <%= h @search ? 'Search Results' : 'Listing' %></small></h2>
Expand Down

0 comments on commit 038486b

Please sign in to comment.