Permalink
Browse files

Display tag instead of SHA on version page

  • Loading branch information...
amalloy authored and amcnamara committed Sep 30, 2011
1 parent a0e6da7 commit ddc4b0fc4f7c5d2349b4cf3a1a215780901531a1
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/foreclojure/version.clj
@@ -1,15 +1,15 @@
(ns foreclojure.version
(:use [foreclojure.template :only [def-page]]
[foreclojure.config :only [repo-url]]
- [foreclojure.git :only [sha]]
+ [foreclojure.git :only [sha tag]]
[compojure.core :only [defroutes GET]]))
(def-page version []
{:title "About/version"
:content
- (if sha
- [:p "SHA: "
- [:a {:href (str repo-url "/tree/" sha)} sha]]
+ (if tag
+ [:p
+ [:a {:href (str repo-url "/tree/" sha)} tag]]
[:p "No git repository found"])})
(defroutes version-routes

0 comments on commit ddc4b0f

Please sign in to comment.