Skip to content

Commit

Permalink
Don't show the more (+) if there isn't multiple commits.
Browse files Browse the repository at this point in the history
Use cases: when somebody does `bananajour init` but doesn't push to Banana Master. Also, if the project only has one commit, then there isn't any more to show.
  • Loading branch information
chrislloyd committed Jun 14, 2009
1 parent 25f09f7 commit 2015bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinatra/views/home.haml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
repoLi.removeClass("loading");
$("<img class='gravatar'/>").attr("src", data.bananajour.gravatar).prependTo(repoLi);
$("<span class='branches' />").text(data.heads.join(", ")).appendTo(repoLi);
$('<span class="more">+</span>')
if(data.recent_commits.length > 1) $('<span class="more">+</span>')
.click(function() {
if ($(this).text() == "+") {
repoLi.find(".message").show();
Expand Down

0 comments on commit 2015bef

Please sign in to comment.