Pārlūkot izejas kodu

Merge pull request #22 from amber-smalltalk/herby-patch-1

Quick fix showing the version
Hannes Hirzel 9 gadi atpakaļ
vecāks
revīzija
34e52b8e68
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  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>