Skip to content

Commit

Permalink
Tighten it up.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Jul 6, 2012
1 parent 19066fd commit 8532c07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/routers/application.js
Expand Up @@ -41,7 +41,7 @@ routers.Application = Backbone.Router.extend({
var url = this.extractURL(url);
if (url.mode === "tree") {
app.instance.posts(url.user, url.repo, url.branch, url.path);
} else if (url.mode === "new") { // New file
} else if (url.mode === "new") {
app.instance.newPost(url.user, url.repo, url.branch, url.path);
} else {
var parts = _.extractFilename(url.path);
Expand Down
2 changes: 1 addition & 1 deletion _includes/templates/posts._
Expand Up @@ -10,7 +10,7 @@
<% }); %>

<% if (window.authenticated) { %>
<a class='link new new-post' href='#<%= user %>/<%= repo %>/new/<%= branch %><%= path ? path+"/" : ""%>'>
<a class='link new new-post' href='#<%= user %>/<%= repo %>/new/<%= branch %><%= path ? "/"+path : ""%>'>
<div class="new-post button">New File</div>
</a>
<% } %>
Expand Down

0 comments on commit 8532c07

Please sign in to comment.