Ver código fonte

Quick fix showing the version

Herbert Vojčík 9 anos atrás
pai
commit
1d0d4d4f3e
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      _layouts/index.html

+ 3 - 1
_layouts/index.html

@@ -12,11 +12,12 @@
 
     <script type='text/javascript' src='the.js'></script>
     <script type='text/javascript'>
-      require(['app'], function (amber) {
+      require(['app', 'jquery'], function (amber, $) {
           amber.initialize({
             //used for all new packages in IDE
             'transport.defaultAmdNamespace': "amber-trysmalltalk"
           });
+          $('#version').text('v' + amber.globals.Smalltalk._version());
       });
     </script>
     <script type='text/javascript'>
@@ -66,6 +67,7 @@
 	  <a href="http://github.com/amber-smalltalk/amber/zipball/master"><img src="images/zip.png" alt="Download"/></a>
 	</div>
 	  <ul id="tabs">
+	    <li id="version" style="color:white"></li>
 	    <li><a href="index.html">Overview</a></li>
 	    <li><a href="http://docs.amber-lang.net">Documentation</a></li>
 	    <li><a href="index.html#getinvolved">Get involved</a></li>