Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
Slightly better information about Møil deployment for admins.
Browse files Browse the repository at this point in the history
  • Loading branch information
nning committed Feb 25, 2014
1 parent ed032cc commit 13d368d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/shared/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
%footer.container
- if current_mailbox.try :admin?
%p.text-right
%code= RUBY_DESCRIPTION
%code= About.ruby
%p.text-right
%code= "Last deployment: #{About.last_deploy}"
%p.text-right
= link_to 'Released', 'https://github.com/nning/moeil.git'
under the terms of the
Expand Down
11 changes: 11 additions & 0 deletions lib/about.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module About
# Ruby platform.
def self.ruby
RUBY_DESCRIPTION
end

# Change time of Rails root.
def self.last_deploy
File.ctime Rails.root
end
end

0 comments on commit 13d368d

Please sign in to comment.