Permalink
Browse files

Show file name in versions screen.

  • Loading branch information...
1 parent 7fb9c74 commit d8bb1e82d279ca5fa1d2259cf3519814262444d3 @coreh coreh committed Jan 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 client/js/CodeEditor.js
View
@@ -44,10 +44,10 @@
return CodeMirror(parentNode, options);
}
- var createGalaxyBackground = function() {
+ var createGalaxyBackground = function(name) {
var galaxyBackground = document.createElement('div')
galaxyBackground.innerHTML =
- '<h1 class="now">Now</h1>' +
+ '<h1 class="now">Now (' + name + ')</h1>' +
'<h1 class="then">Then</h1>' +
'<button class="done">Done</button>' +
'<button class="revert">Revert</button>' +
@@ -91,7 +91,7 @@
window.CodeEditor = function(entry) {
var codeMirror;
var currentVersion;
- var galaxyBackground = createGalaxyBackground()
+ var galaxyBackground = createGalaxyBackground(entry.name)
var actionsBar = createActionsBar(entry.path)
var editor = document.createElement('div')
var versionEditors = []

0 comments on commit d8bb1e8

Please sign in to comment.