Display the current version on the docs.

This commit is contained in:
Chris Eppstein 2010-04-25 11:28:56 -07:00
parent e713fdb66f
commit 458a19361d
4 changed files with 29 additions and 11 deletions

View File

@ -2,4 +2,4 @@
:patch: 0
:major: 0
:minor: 10
:build: rc3
:build: rc4

View File

@ -93,6 +93,16 @@ header[role="banner"]
+active-docs(".core", "/docs/reference/compass/")
+active-docs(".blueprint", "/docs/reference/blueprint/")
#version
// XXX This is placeholder styling. Susify me.
color: #999
+adjust-font-size-to(14px)
z-index: 3
.number
color: #666
float: right
margin-right: 400px
#search-docs
position: absolute
z-index: 1

View File

@ -41,6 +41,9 @@
/
%li
%a{:href => "/docs/plugins/"} plugins
#version
Current Version:
%a.number(href="/CHANGELOG/")= compass_version
#search-docs
%form
%p

View File

@ -106,3 +106,8 @@ def tutorial_item(path)
end
end
def compass_version
v = Compass.version
"#{v[:major]}.#{v[:minor]}.#{v[:teeny]}.#{v[:build]}"
end