mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Added config file system.
This commit is contained in:
parent
5ea9ff0f75
commit
3be7b82af8
@ -1,7 +1,7 @@
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%title Pixelhum Admin
|
||||
%title= "#{APP_CONFIG['name']} Admin"
|
||||
= stylesheet_link_tag "admin"
|
||||
= javascript_include_tag "admin"
|
||||
= csrf_meta_tag
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%title Pixelhum Admin
|
||||
%title= "#{APP_CONFIG['name']} Admin"
|
||||
= stylesheet_link_tag "admin"
|
||||
= javascript_include_tag "admin"
|
||||
= csrf_meta_tag
|
||||
|
||||
@ -1 +1 @@
|
||||
%h1 Template App
|
||||
%h1= APP_CONFIG['name']
|
||||
@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Abidownloads</title>
|
||||
<%= stylesheet_link_tag "application" %>
|
||||
<%= javascript_include_tag "application" %>
|
||||
<%= csrf_meta_tags %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
9
app/views/layouts/application.html.haml
Normal file
9
app/views/layouts/application.html.haml
Normal file
@ -0,0 +1,9 @@
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%title= APP_CONFIG['name']
|
||||
= stylesheet_link_tag "application"
|
||||
= javascript_include_tag "application"
|
||||
= csrf_meta_tags
|
||||
%body
|
||||
= yield
|
||||
1
config/config.yml
Normal file
1
config/config.yml
Normal file
@ -0,0 +1 @@
|
||||
name: Pixelhum
|
||||
2
config/initializers/load_config.rb
Normal file
2
config/initializers/load_config.rb
Normal file
@ -0,0 +1,2 @@
|
||||
# Load the app config from the config.yml file.
|
||||
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")
|
||||
Loading…
Reference in New Issue
Block a user