Skip to content

Commit

Permalink
Better UI for navigating to the parent folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Jul 19, 2012
1 parent be9de34 commit f1a5d96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _includes/templates/posts._
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<div class='inner'>

<div class="search-menu">
<% parent = _.parentPath(path); %>
<% if (parent !== path) { %>
<a class='link parent-folder' href='#<%= user %>/<%= repo %>/tree/<%= branch %><%= parent ? "/"+parent : ""%>'>
&nbsp;
</a>
<% } %>
<div class="search"><input placeholder="Type to search ..." type="text" id="search_str"/></div>
<div class="results"><%= files.length %> Files</div>

Expand All @@ -9,6 +16,7 @@
New File
</a>
<% } %>

</div>
</div>
<div class='post-listing prose clearfix'>
Expand Down

0 comments on commit f1a5d96

Please sign in to comment.