Skip to content

Commit a654a1d

Browse files
committed
Display version on about page
1 parent aff3924 commit a654a1d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/views/about/index.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% set_page_title "About" %>
2-
<h4 class="page-header">About TIOJ <small>INFOR Online Judge</small></h4>
2+
<h4 class="page-header">About TIOJ <small>INFOR Online Judge <%= Tioj::VERSION %></small></h4>
33
<h5>Site Info</h5>
44
<div class="well">
55
This site is powered by Ruby on Rails! <br >

config/application.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Bundler.require(*Rails.groups)
88

99
module Tioj
10+
VERSION = '2.1.1'
1011
class Application < Rails::Application
1112
# Initialize configuration defaults for originally generated Rails version.
1213
config.load_defaults 7.0

0 commit comments

Comments
 (0)