Skip to content

Instantly share code, notes, and snippets.

@rhelmer
Created February 27, 2012 22:43
Show Gist options
  • Select an option

  • Save rhelmer/1927657 to your computer and use it in GitHub Desktop.

Select an option

Save rhelmer/1927657 to your computer and use it in GitHub Desktop.
diff --git a/js/graph-2.js b/js/graph-2.js
--- a/js/graph-2.js
+++ b/js/graph-2.js
@@ -402,10 +402,13 @@
var buttonHtmlGenerator = function(repository) {
var text = 'Changesets';
- if (repository)
+ if (repository) {
text += ' for ' + repository;
- return '<a class="button disabled" -data-repository="' + repository +
- '" href="#">' + text + '</a>';
+ return '<a class="button disabled" -data-repository="' +
+ repository + '" href="#">' + text + '</a>';
+ } else {
+ return '<a class="button disabled" href="#">' + text + '</a>';
+ }
}
var buttons = '';
if (window.REPOSITORIES && window.DEFAULT_REPOSITORY) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment