Browse Source

Add version, CCP copyright info.

old-ruby
Ben Kurtovic 9 years ago
parent
commit
35f0a27bee
4 changed files with 10 additions and 8 deletions
  1. +2
    -4
      app/helpers/application_helper.rb
  2. +1
    -1
      app/views/shared/_footer.html.erb
  3. +0
    -3
      config/routes.rb
  4. +7
    -0
      lib/calefaction/version.rb

+ 2
- 4
app/helpers/application_helper.rb View File

@@ -1,3 +1,5 @@
require 'calefaction/version'

module ApplicationHelper

def get_title(title = '')
@@ -10,8 +12,4 @@ module ApplicationHelper
year = Time.now.year
year > start ? "#{start}–#{year}" : start
end

def get_project_version
'0.1' # todo
end
end

+ 1
- 1
app/views/shared/_footer.html.erb View File

@@ -1 +1 @@
<p>Copyright &copy; <%= get_copyright_year %> [copyright holders] &bull; Running Calefaction <%= get_project_version %> &bull; [CCP Copyright Info]</p>
<p>Copyright &copy; <%= get_copyright_year %> [copyright holders] &bull; Running Calefaction <%= Calefaction::Version::VERSION_STRING %> &bull; <a href="//eveonline.com">EVE Online</a> and all related trademarks are property of <a href="//ccpgames.com">CCP hf</a>.</p>

+ 0
- 3
config/routes.rb View File

@@ -6,9 +6,6 @@ Rails.application.routes.draw do

get '/admin' => 'admin#index'

# Example of regular route:
# get 'products/:id' => 'catalog#view'

# Example of named route that can be invoked with purchase_url(id: product.id)
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase



+ 7
- 0
lib/calefaction/version.rb View File

@@ -0,0 +1,7 @@
module Calefaction::Version
MAJOR = 0
MINOR = 1
PATCH = 0
RELEASE = false
VERSION_STRING = "#{MAJOR}.#{MINOR}.#{PATCH}#{"-dev" unless RELEASE}"
end

Loading…
Cancel
Save