diff --git a/src/main/twirl/gitbucket/core/repo/editor.scala.html b/src/main/twirl/gitbucket/core/repo/editor.scala.html index 0bbc1f0..8639ae8 100644 --- a/src/main/twirl/gitbucket/core/repo/editor.scala.html +++ b/src/main/twirl/gitbucket/core/repo/editor.scala.html @@ -23,7 +23,7 @@
- @@ -44,21 +44,21 @@
@avatar(loginAccount.get.userName, 48)
-
-
+
+
Commit changes
-
- +
+
@if(fileName.isEmpty){ - Cancel + Cancel } else { - Cancel + Cancel } - + @@ -114,11 +114,15 @@ $('#btn-code').click(function(){ $('#editor').show(); $('#preview').hide(); + $('#btn-code').appendClass('active'); + $('#btn-preview').removeClass('active'); }); $('#btn-preview').click(function(){ $('#editor').hide(); - $('#preview').show() + $('#preview').show(); + $('#btn-code').removeClass('active'); + $('#btn-preview').appendClass('active'); @if(fileName.map(isRenderable _).getOrElse(false)) { // update preview