Bläddra i källkod

Add version, CCP copyright info.

old-ruby
Ben Kurtovic 7 år sedan
förälder
incheckning
35f0a27bee
4 ändrade filer med 10 tillägg och 8 borttagningar
  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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

@@ -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 Visa fil

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

Laddar…
Avbryt
Spara