Quellcode durchsuchen

Add version, CCP copyright info.

old-ruby
Ben Kurtovic vor 9 Jahren
Ursprung
Commit
35f0a27bee
4 geänderte Dateien mit 10 neuen und 8 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

@@ -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 Datei anzeigen

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

Laden…
Abbrechen
Speichern