Skip to content

Commit

Permalink
Improved search bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Jul 19, 2012
1 parent 131fbd8 commit 4850dc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _includes/styles/style.css
Expand Up @@ -618,7 +618,6 @@ body.start {
}

.search-menu .actions {
margin-right: 60px;
float: right;
height: 60px;
}
Expand Down Expand Up @@ -651,11 +650,12 @@ body.start {
}

.search-menu .results {
margin-left: 30px;
float: left;
}

.search-menu .search {
float: right;
float: left;
}

.loading-branches, .post-listing a.link.folder.loading .filename {
Expand Down
3 changes: 1 addition & 2 deletions _includes/templates/posts._
@@ -1,9 +1,8 @@
<div class='inner'>
<div class="search-menu">
<div class="search"><input placeholder="Type to search ..." type="text" id="search_str"/></div>
<div class="results"><%= files.length %> Files</div>

<div class="search"><input type="text" id="search_str"/></div>

<div class="actions">
<% if (window.authenticated) { %>
<a class='link new new-file' href='#<%= user %>/<%= repo %>/new/<%= branch %><%= path ? "/"+path : ""%>'>
Expand Down
2 changes: 1 addition & 1 deletion _includes/views/posts.js
Expand Up @@ -37,7 +37,7 @@ views.Posts = Backbone.View.extend({
var caption = this.model.files.length+'';
var searchstr = this.$('#search_str').val();
if (searchstr) {
caption += ' matches for "'+searchstr+'"'; // within "'+app.state.path+'/*"';
caption += ' matches'; // for "'+searchstr+'"'; // within "'+app.state.path+'/*"';
} else {
caption += ' files'; // within "'+ (app.state.path ? app.state.path : '/') +'"';
}
Expand Down

0 comments on commit 4850dc5

Please sign in to comment.