mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 14:36:59 +00:00
Created an about page
This commit is contained in:
@@ -1,18 +1,11 @@
|
|||||||
class StaticPagesController < ApplicationController
|
class StaticPagesController < ApplicationController
|
||||||
before_filter :check_access, only: [:weigh_in]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def not_allowed
|
def not_allowed
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
def about
|
||||||
def check_access
|
|
||||||
if params[:tournament]
|
|
||||||
@tournament = Tournament.find(params[:tournament])
|
|
||||||
if current_user != @tournament.user
|
|
||||||
redirect_to '/static_pages/not_allowed'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
2
app/views/static_pages/about.html.erb
Normal file
2
app/views/static_pages/about.html.erb
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<h3>About WrestlingDev</h3>
|
||||||
|
<p>WrestlingDev was created to help bring wrestling into the 21st century for <strong>free</strong>. This site is open source and is supported by the ads on the sidebar.</p>
|
||||||
Reference in New Issue
Block a user