Index: lib/bitclust/screen.rb
===================================================================
--- lib/bitclust/screen.rb	(revision 2682)
+++ lib/bitclust/screen.rb	(working copy)
@@ -19,6 +19,7 @@
     def initialize(h)
       @template = TemplateRepository.new(h.delete(:templatedir))
       @default_encoding = h.delete(:default_encoding)
+      @target_version = h.delete(:target_version)
       @urlmapper = URLMapper.new(h)
     end
 
@@ -61,7 +62,7 @@
     private
 
     def new_screen(c, *args)
-      c.new(@urlmapper, @template, @default_encoding, *args)
+      c.new(@urlmapper, @template, @default_encoding, @target_version, *args)
     end
   end
 
@@ -166,10 +167,11 @@
   class TemplateScreen < Screen
     include HTMLUtils
 
-    def initialize(urlmapper, template_repository, default_encoding)
+    def initialize(urlmapper, template_repository, default_encoding, target_version)
       @urlmapper = urlmapper
       @template_repository = template_repository
       @default_encoding = default_encoding
+      @target_version = target_version
     end
 
     def content_type
@@ -180,6 +182,10 @@
       default_encoding()
     end
 
+    def ruby_version
+      @target_version || 'unknown'
+    end
+
     private
 
     def default_encoding
@@ -255,8 +261,8 @@
   end
 
   class IndexScreen < TemplateScreen
-    def initialize(u, t, e, entries)
-      super u, t, e
+    def initialize(u, t, e, v, entries)
+      super u, t, e, v
       @entries = entries
     end
 
@@ -269,8 +275,8 @@
   end
 
   class EntryBoundScreen < TemplateScreen
-    def initialize(u, t, e, entry)
-      super u, t, e
+    def initialize(u, t, e, v, entry)
+      super u, t, e, v
       @entry = entry
     end
 
@@ -306,8 +312,8 @@
   end
 
   class MethodScreen < TemplateScreen
-    def initialize(u, t, e, entries)
-      super u, t, e
+    def initialize(u, t, e, v, entries)
+      super u, t, e, v
       @entries = entries
     end
 
@@ -336,8 +342,8 @@
   end
 
   class RDFileScreen < TemplateScreen
-    def initialize(u, t, e, s)
-      super u, t, e
+    def initialize(u, t, e, v, s)
+      super u, t, e, v
       @source = s
     end
 
Index: template/method
===================================================================
--- template/method	(revision 2682)
+++ template/method	(working copy)
@@ -12,7 +12,8 @@
 <body>
 
 <p>
-<a href="<%= library_index_url() %>">All Libraries</a>
+<%=h ruby_version() %>
+&gt; <a href="<%= library_index_url() %>">All Libraries</a>
 &gt; library <%= library_link(entry.library.name) %>
 &gt; <%= entry.klass.type %> <%= class_link(entry.klass.name) %>
 &gt; <% if entry.typename == :special_variable %>$<% end %><%=h entry.name %>
Index: template/library
===================================================================
--- template/library	(revision 2682)
+++ template/library	(working copy)
@@ -9,7 +9,8 @@
 <body>
 
 <p>
-<a href="<%= library_index_url() %>">All Libraries</a>
+<%=h ruby_version() %>
+&gt; <a href="<%= library_index_url() %>">All Libraries</a>
 &gt; library <%=h @entry.name %>
 </p>
 <%
Index: template/class
===================================================================
--- template/class	(revision 2682)
+++ template/class	(working copy)
@@ -9,7 +9,8 @@
 <body>
 
 <p>
-<a href="<%= library_index_url() %>">All Libraries</a>
+<%=h ruby_version() %>
+&gt; <a href="<%= library_index_url() %>">All Libraries</a>
 &gt; library <%= library_link(@entry.library.name) %>
 &gt; <%=h @entry.type %> <%=h @entry.name %>
 </p>
Index: template/function
===================================================================
--- template/function	(revision 2682)
+++ template/function	(working copy)
@@ -9,7 +9,8 @@
 <body>
 
 <p>
-<a href="<%= function_index_url() %>">All Functions</a>
+<%=h ruby_version() %>
+&gt; <a href="<%= function_index_url() %>">All Functions</a>
 &gt; <%=h @entry.name %>
 <% unless @entry.public? %>(static)<% end %>
 </p>
Index: template/library-index
===================================================================
--- template/library-index	(revision 2682)
+++ template/library-index	(working copy)
@@ -9,7 +9,7 @@
 <body id="libraryindex">
 
 <p>
-All Libraries
+<%=h ruby_version() %> &gt; All Libraries
 </p>
 <%
     headline_init
Index: template/function-index
===================================================================
--- template/function-index	(revision 2682)
+++ template/function-index	(working copy)
@@ -9,7 +9,8 @@
 <body id="functionindex">
 
 <p>
-All Functions
+<%=h ruby_version() %>
+&gt; All Functions
 </p>
 <%
     headline_init
Index: standalone.rb
===================================================================
--- standalone.rb	(revision 2682)
+++ standalone.rb	(working copy)
@@ -93,7 +93,8 @@
 manager = BitClust::ScreenManager.new(
   :base_url => baseurl,
   :cgi_url => "#{baseurl}/view",
-  :templatedir => templatedir
+  :templatedir => templatedir,
+  :target_version => db.propget('version')
 )
 handler = BitClust::RequestHandler.new(db, manager)
 
@@ -120,7 +121,8 @@
     manager = BitClust::ScreenManager.new(
       :base_url => baseurl,
       :cgi_url => "#{baseurl}/#{version}",
-      :templatedir => templatedir
+      :templatedir => templatedir,
+      :target_version => db.propget('version')
     )
     handlers[version] = BitClust::RequestHandler.new(db, manager)
     server.mount File.join(basepath, "#{version}/"), BitClust::Interface.new { handlers[version] }
