瀏覽代碼

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

Quick fix showing the version
Hannes Hirzel 9 年之前
父節點
當前提交
34e52b8e68
共有 1 個文件被更改,包括 3 次插入1 次删除
  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>