Version strings.

This commit is contained in:
Jacques Distler 2007-02-19 10:01:16 -06:00
parent 09e8b609b6
commit e3fafb6e6d
2 changed files with 17 additions and 2 deletions

View file

@ -207,3 +207,18 @@ module Mime
LOOKUP["text/html"] = HTML
LOOKUP["application/xhtml+xml"] = XHTML
end
module Instiki
module VERSION #:nodoc:
MAJOR = 0
MINOR = 12
TINY = 0
SUFFIX = '(MML+)'
PRERELEASE = 'pre' # false
if PRERELEASE
STRING = [MAJOR, MINOR].join('.') + PRERELEASE + SUFFIX
else
STRING = [MAJOR, MINOR, TINY].join('.') + SUFFIX
end
end
end

View file

@ -66,8 +66,8 @@
<% if @show_footer %>
<div id="footer">
<div>This site is running on <a href="http://instiki.org/">Instiki</a></div>
<div>Powered by <a href="http://rubyonrails.com/">Ruby on Rails</a></div>
<div>This site is running on <a href="http://instiki.org/">Instiki</a> <%= "#{Instiki::VERSION::STRING}" %></div>
<div>Powered by <a href="http://rubyonrails.com/">Ruby on Rails</a> <%= "#{Rails::VERSION::STRING}" %></div>
</div>
<% end %>