venice-chr 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/Gemfile +40 -0
  4. data/Gemfile.lock +481 -0
  5. data/Procfile +1 -0
  6. data/README.md +62 -0
  7. data/Rakefile +8 -0
  8. data/app/assets/fonts/ProximaNovaRegular.eot +0 -0
  9. data/app/assets/fonts/ProximaNovaRegular.ttf +0 -0
  10. data/app/assets/fonts/ProximaNovaRegular.woff +0 -0
  11. data/app/assets/fonts/ProximaNovaSemibold.eot +0 -0
  12. data/app/assets/fonts/ProximaNovaSemibold.ttf +0 -0
  13. data/app/assets/fonts/ProximaNovaSemibold.woff +0 -0
  14. data/app/assets/images/.keep +0 -0
  15. data/app/assets/javascripts/admin/settings/config.coffee +9 -0
  16. data/app/assets/javascripts/admin/settings/general.coffee +52 -0
  17. data/app/assets/javascripts/admin.coffee +39 -0
  18. data/app/assets/javascripts/application.coffee +2 -0
  19. data/app/assets/stylesheets/admin.scss +50 -0
  20. data/app/assets/stylesheets/application.scss +4 -0
  21. data/app/assets/stylesheets/themes/venice/base.scss +163 -0
  22. data/app/assets/stylesheets/themes/venice/desktop.scss +132 -0
  23. data/app/assets/stylesheets/themes/venice/mobile.scss +95 -0
  24. data/app/assets/stylesheets/themes/venice.scss +12 -0
  25. data/app/controllers/admin/base_controller.rb +17 -0
  26. data/app/controllers/admin/devise_overrides/passwords_controller.rb +11 -0
  27. data/app/controllers/admin/devise_overrides/sessions_controller.rb +20 -0
  28. data/app/controllers/application_controller.rb +7 -0
  29. data/app/controllers/concerns/load_settings.rb +23 -0
  30. data/app/helpers/application_helper.rb +102 -0
  31. data/app/helpers/body_class_helper.rb +15 -0
  32. data/app/mailers/.keep +0 -0
  33. data/app/models/.keep +0 -0
  34. data/app/models/concerns/.keep +0 -0
  35. data/app/models/venice_settings.rb +2 -0
  36. data/app/views/admin/devise_overrides/passwords/edit.html.erb +31 -0
  37. data/app/views/admin/devise_overrides/passwords/new.html.erb +19 -0
  38. data/app/views/admin/devise_overrides/sessions/new.html.erb +29 -0
  39. data/app/views/admin/index.html.erb +5 -0
  40. data/app/views/application/_footer.html.erb +3 -0
  41. data/app/views/application/_header.html.erb +17 -0
  42. data/app/views/application/_javascript.html.erb +7 -0
  43. data/app/views/kaminari/_first_page.html.erb +15 -0
  44. data/app/views/kaminari/_gap.html.erb +8 -0
  45. data/app/views/kaminari/_last_page.html.erb +15 -0
  46. data/app/views/kaminari/_next_page.html.erb +15 -0
  47. data/app/views/kaminari/_page.html.erb +12 -0
  48. data/app/views/kaminari/_paginator.html.erb +23 -0
  49. data/app/views/kaminari/_prev_page.html.erb +15 -0
  50. data/app/views/layouts/admin.html.erb +21 -0
  51. data/app/views/layouts/application.html.erb +22 -0
  52. data/bin/bundle +3 -0
  53. data/bin/deploy-heroku +35 -0
  54. data/bin/rails +8 -0
  55. data/bin/rake +8 -0
  56. data/bin/setup +35 -0
  57. data/bin/spring +15 -0
  58. data/bin/venice +12 -0
  59. data/config/application.rb +40 -0
  60. data/config/boot.rb +3 -0
  61. data/config/environment.rb +5 -0
  62. data/config/environments/development.rb +40 -0
  63. data/config/environments/production.rb +96 -0
  64. data/config/environments/staging.rb +9 -0
  65. data/config/environments/test.rb +44 -0
  66. data/config/initializers/assets.rb +11 -0
  67. data/config/initializers/backtrace_silencers.rb +7 -0
  68. data/config/initializers/bypass_ssl_verification_for_open_uri.rb +1 -0
  69. data/config/initializers/carrierwave.rb +21 -0
  70. data/config/initializers/cookies_serializer.rb +3 -0
  71. data/config/initializers/devise.rb +262 -0
  72. data/config/initializers/errors.rb +34 -0
  73. data/config/initializers/filter_parameter_logging.rb +4 -0
  74. data/config/initializers/inflections.rb +16 -0
  75. data/config/initializers/json_encoding.rb +1 -0
  76. data/config/initializers/kaminari_config.rb +10 -0
  77. data/config/initializers/mime_types.rb +4 -0
  78. data/config/initializers/session_store.rb +3 -0
  79. data/config/initializers/wrap_parameters.rb +9 -0
  80. data/config/locales/devise.en.yml +60 -0
  81. data/config/locales/en.yml +23 -0
  82. data/config/mongoid.yml +106 -0
  83. data/config/routes.rb +35 -0
  84. data/config/secrets.yml +14 -0
  85. data/config/smtp.rb +9 -0
  86. data/config/unicorn.rb +17 -0
  87. data/config.ru +4 -0
  88. data/db/seeds.rb +10 -0
  89. data/lib/assets/.keep +0 -0
  90. data/lib/tasks/.keep +0 -0
  91. data/lib/venice/kit.rb +39 -0
  92. data/lib/venice/version.rb +3 -0
  93. data/lib/venice.rb +2 -0
  94. data/public/404.html +69 -0
  95. data/public/422.html +69 -0
  96. data/public/500.html +68 -0
  97. data/public/favicon.ico +0 -0
  98. data/public/robots.txt +5 -0
  99. data/vendor/assets/javascripts/.keep +0 -0
  100. data/vendor/assets/stylesheets/.keep +0 -0
  101. data/venice-chr.gemspec +23 -0
  102. metadata +187 -0
@@ -0,0 +1,39 @@
1
+ #= require jquery
2
+ #= require jquery_ujs
3
+
4
+ #= require chr
5
+ #= require loft
6
+ #= require ants
7
+ #= require tape
8
+ #= require journal
9
+
10
+ #= require_tree ./admin
11
+
12
+ @redirectToSignIn = ->
13
+ signinPath = "/admin/sign_in"
14
+ if window.location.hash
15
+ returnTo = window.location.hash.substring(1)
16
+ signinPath = "#{signinPath}?return_to=#{returnTo}"
17
+ window.location = signinPath
18
+
19
+ @addWebsiteLink = ->
20
+ $link =$ """<a href='/' target='_blank'>
21
+ <i class='fa fa-home fa-fw'></i> View Site
22
+ </a>"""
23
+ chr.$mainMenu.prepend $link
24
+
25
+ $ ->
26
+ $.get("/admin/bootstrap.json", (response) ->
27
+ chr.start 'Venice',
28
+ modules:
29
+ tape: new Tape('Reader')
30
+ posts: new JournalPosts()
31
+ pages: new JournalPages()
32
+ loft: new Loft()
33
+ settings: settingsConfig()
34
+
35
+ new AntsProfile()
36
+ addWebsiteLink()
37
+ ).fail (response) ->
38
+ if response.status == 401
39
+ redirectToSignIn(response)
@@ -0,0 +1,2 @@
1
+ #= require jquery
2
+ #= require jquery_ujs
@@ -0,0 +1,50 @@
1
+ @import "chr";
2
+ @import "loft";
3
+ @import "ants";
4
+ @import "tape";
5
+ @import "journal";
6
+ @import "font-awesome";
7
+
8
+ @include font-face('Proxima Nova', "ProximaNovaRegular", $regular, $asset-pipeline: true, $file-formats: eot woff ttf);
9
+ @include font-face('Proxima Nova', "ProximaNovaSemibold", $semibold, $asset-pipeline: true, $file-formats: eot woff ttf);
10
+
11
+ $proxima-nova-family: "Proxima Nova", 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
12
+
13
+ .author_settings {
14
+ @include position(relative);
15
+ min-height: 8.8em;
16
+
17
+ .input-website_description {
18
+ @include no-bottom-border;
19
+ padding-left: 6em;
20
+
21
+ .label { display: none; }
22
+ }
23
+ }
24
+
25
+ /* Tablet ------------------------------------------------------------------ */
26
+ @media #{$tablet} {
27
+ .sidebar,
28
+ .header,
29
+ .list:not(.list-aside) .items {
30
+ font-family: $proxima-nova-family;
31
+ }
32
+
33
+ .tape .list.tape .items {
34
+ font-family: $base-font-family;
35
+ }
36
+
37
+ .menu,
38
+ .menu-posts,
39
+ .menu-settings {
40
+ margin-top: 1em;
41
+ }
42
+
43
+ .author_settings {
44
+ min-height: 17.8em;
45
+
46
+ .input-website_description {
47
+ padding-left: 15.25em;
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,4 @@
1
+ @import "bourbon";
2
+ @import "normalize-rails";
3
+ @import "font-awesome";
4
+ @import "themes/venice";
@@ -0,0 +1,163 @@
1
+ /* Base -------------------------------------------------------------------- */
2
+
3
+ /* Layout ------------------------------------------------------------------ */
4
+ *, *:before, *:after {
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ html {
9
+ -webkit-font-smoothing: antialiased;
10
+ text-rendering: optimizeLegibility;
11
+ }
12
+
13
+ body {
14
+ font-family: $base-font-family;
15
+ font-size: 14px;
16
+ }
17
+
18
+ h1, h2, h3 {
19
+ margin: 1.4em 0 0;
20
+ line-height: 1.2em;
21
+ }
22
+
23
+ h1 {
24
+ font-size: 1.5em;
25
+ }
26
+
27
+ h2 {
28
+ font-size: 1.3em;
29
+ }
30
+
31
+ h3 {
32
+ font-size: 1.15em;
33
+ }
34
+
35
+ p {
36
+ margin: 1.4em 0;
37
+ line-height: 1.4em;
38
+ }
39
+
40
+ blockquote {
41
+ font-family: georgia, serif;
42
+ font-style: italic;
43
+ font-size: 1.25em;
44
+ margin: 0;
45
+ }
46
+
47
+ code, pre {
48
+ font-family: 'Monaco', monospace;
49
+ }
50
+
51
+ img {
52
+ display: block;
53
+ }
54
+
55
+ .journal-page-body footer {
56
+ text-align: right;
57
+ line-height: 3;
58
+ margin-top: -1.4em;
59
+
60
+ a {
61
+ display: inline-block;
62
+ padding: 0 1em;
63
+ }
64
+ }
65
+
66
+ .pagination {
67
+ a, .page, .first, .last, .prev, .next {
68
+ display: inline-block;
69
+ width: 3em;
70
+ height: 3em;
71
+ line-height: 3em;
72
+ vertical-align: middle;
73
+ text-align: center;
74
+ }
75
+ }
76
+
77
+ .journal_posts-show {
78
+ .journal-page-body {
79
+ padding-bottom: 1.4em;
80
+ }
81
+ }
82
+
83
+ .footer {
84
+ text-align: center;
85
+ }
86
+
87
+ .footer-copyright {
88
+ font-size: .8em;
89
+ margin: 4em 0 4em;
90
+ }
91
+
92
+ /* Theme ------------------------------------------------------------------- */
93
+ body {
94
+ color: $text-color;
95
+ }
96
+
97
+ h1, h2, h3 {
98
+ color: $header-color;
99
+ }
100
+
101
+ a {
102
+ color: $theme-color;
103
+ text-decoration: none;
104
+
105
+ &:hover {
106
+ text-decoration: underline;
107
+ }
108
+ }
109
+
110
+ .journal-page-header h1 a {
111
+ color: $header-color;
112
+
113
+ &:hover {
114
+ color: $theme-color;
115
+ text-decoration: none;
116
+ }
117
+ }
118
+
119
+ .journal-post-header-categories,
120
+ .journal-post-header-time {
121
+ font-size: 0.8em;
122
+ line-height: 2.5;
123
+ }
124
+
125
+ .journal-post-header-time {
126
+ margin-right: 0.5em;
127
+ }
128
+
129
+ .journal-post-header-categories a {
130
+ padding: 0.5em;
131
+ text-transform: uppercase;
132
+ }
133
+
134
+ .journal-page-body footer a {
135
+ font-size: 1.5em;
136
+ color: $text-color;
137
+
138
+ &:hover {
139
+ color: $white-color;
140
+ background-color: $theme-color;
141
+ }
142
+ }
143
+
144
+ .pagination {
145
+ a, .page, .first, .last, .prev, .next {
146
+
147
+ background-color: $theme-color;
148
+ color: $white-color;
149
+
150
+ &.current {
151
+ color: $text-color;
152
+ background-color: $white-color;
153
+ }
154
+
155
+ &:hover {
156
+ text-decoration: none;
157
+ }
158
+ }
159
+ }
160
+
161
+ .footer-copyright {
162
+ opacity: 0.4;
163
+ }
@@ -0,0 +1,132 @@
1
+ /* Desktop ----------------------------------------------------------------- */
2
+ $desktop: "screen and (min-width:900px)";
3
+ @media #{$desktop} {
4
+ /* Layout ------------------------------------------------------------------ */
5
+ .container {
6
+ margin-left: 18.5em;
7
+ }
8
+
9
+ .header {
10
+ @include position(fixed, 0 null null 0);
11
+ width: 18.5em;
12
+ height: 100%;
13
+ text-align: center;
14
+ }
15
+
16
+ .footer {
17
+ @include position(fixed, null null 0 0);
18
+ width: 18.5em;
19
+ }
20
+
21
+ .header-image {
22
+ display: inline-block;
23
+ margin: 3em 0 0.5em;
24
+ }
25
+
26
+ .header-image img {
27
+ border-radius: 40px;
28
+ height: 80px;
29
+ width: 80px;
30
+ }
31
+
32
+ .header-tagline {
33
+ font-size: .9em;
34
+ line-height: 1.4em;
35
+ padding: 0 1.25em;
36
+ }
37
+
38
+ .header-menu {
39
+ margin: 2.5em 0;
40
+ }
41
+
42
+ .header-menu a {
43
+ font-weight: 600;
44
+ line-height: 2em;
45
+ display: block;
46
+ }
47
+
48
+ .social-menu {
49
+ font-size: 1.15em;
50
+ margin-top: 1em;
51
+
52
+ a {
53
+ padding: 0 0.15em;
54
+ }
55
+ }
56
+
57
+ .journal-page {
58
+ padding-top: 2em;
59
+
60
+ &:first-child {
61
+ padding-top: 4.25em;
62
+ }
63
+
64
+ img {
65
+ max-width: 100%;
66
+ }
67
+ }
68
+
69
+ .journal-page-header,
70
+ .journal-page-body {
71
+ max-width: 52em;
72
+ padding: 0 5em;
73
+ }
74
+
75
+ .journal-page-header h1 {
76
+ margin-top: 0;
77
+ }
78
+
79
+ .pagination {
80
+ padding: 2em 5em;
81
+ }
82
+
83
+ .journal_pages-preview,
84
+ .journal_pages-show,
85
+ .journal_posts-preview,
86
+ .journal_posts-show {
87
+ .journal-page-body {
88
+ padding-bottom: 5em;
89
+ }
90
+ }
91
+
92
+ .footer-copyright {
93
+ text-align: center;
94
+ margin: 1.4em;
95
+ }
96
+
97
+
98
+ /* Theme ------------------------------------------------------------------- */
99
+ .header {
100
+ border-top: 3px solid $theme-color;
101
+ background-color: $secondary-color;
102
+ }
103
+
104
+ .container {
105
+ border-top: 3px solid $theme-color;
106
+ }
107
+
108
+ .header-image img {
109
+ border: 4px solid $white-color;
110
+ }
111
+
112
+ .social-menu a {
113
+ color: lighten($text-color, 50%);
114
+
115
+ &:hover {
116
+ color: $theme-color;
117
+ text-decoration: none;
118
+ }
119
+ }
120
+
121
+ .journal_posts-category,
122
+ .journal_posts-index {
123
+ .journal-page {
124
+ border-bottom: 0.5em solid $secondary-color;
125
+ }
126
+ }
127
+
128
+ .pagination,
129
+ .journal-page {
130
+ background-color: $white-color;
131
+ }
132
+ }
@@ -0,0 +1,95 @@
1
+ /* Mobile ------------------------------------------------------------------ */
2
+ $mobile: "screen and (max-width:899px)";
3
+ @media #{$mobile} {
4
+ /* Layout ------------------------------------------------------------------ */
5
+ .header {
6
+ text-align: center;
7
+ padding: 2em 3em 1em;
8
+ }
9
+
10
+ .header-image {
11
+ display: inline-block;
12
+ }
13
+
14
+ .header-image img {
15
+ width: 6em;
16
+ border-radius: 3.5em;
17
+ border: 0.5em solid transparent;
18
+ }
19
+
20
+ .header-tagline {
21
+ margin: 1em 0 1.75em;
22
+ line-height: 1.4;
23
+ }
24
+
25
+ .header-menu {
26
+ margin-bottom: 1em;
27
+ }
28
+
29
+ .social-menu a {
30
+ font-size: 1.3em;
31
+ padding: 0 0.15em;
32
+ }
33
+
34
+ .header-menu a {
35
+ display: block;
36
+ line-height: 3em;
37
+ margin-bottom: 1px;
38
+ }
39
+
40
+ .journal-page {
41
+ margin-bottom: 0.5em;
42
+ padding: 1.4em 0.5em 0;
43
+
44
+ img {
45
+ max-width: 100%;
46
+ }
47
+ }
48
+
49
+ .journal-page-header h1 {
50
+ margin-top: 0;
51
+ }
52
+
53
+ .journal-page-body {
54
+ margin-top: -1em;
55
+ }
56
+
57
+ /* Theme ------------------------------------------------------------------- */
58
+ body {
59
+ background-color: $secondary-color;
60
+ }
61
+
62
+ .header {
63
+ color: $white-color;
64
+ background-color: $theme-color;
65
+ }
66
+
67
+ .header-image img {
68
+ border-color: $white-color;
69
+ }
70
+
71
+ .header-tagline a {
72
+ color: $white-color;
73
+ }
74
+
75
+ .header-menu a {
76
+ font-weight: 600;
77
+ color: $white-color;
78
+ background-color: rgba(0, 0, 0, 0.05);
79
+
80
+ &:hover {
81
+ text-decoration: none;
82
+ background-color: rgba(0, 0, 0, 0.075);
83
+ }
84
+ }
85
+
86
+ .social-menu a {
87
+ &:hover {
88
+ color: rgba(0, 0, 0, 0.075);
89
+ }
90
+ }
91
+
92
+ .journal-page {
93
+ background-color: $white-color;
94
+ }
95
+ }
@@ -0,0 +1,12 @@
1
+ /* Options ================================================================= */
2
+ $base-font-family: verdana, sans-serif!default;
3
+ $white-color: #FFF!default;
4
+ $text-color: #4D4D4D!default;
5
+ $header-color: #333!default;
6
+ $theme-color: #F04530!default;
7
+ $secondary-color: #FAFAFA!default;
8
+
9
+ /* Modules ================================================================= */
10
+ @import "venice/base";
11
+ @import "venice/desktop";
12
+ @import "venice/mobile";
@@ -0,0 +1,17 @@
1
+ module Admin
2
+ class BaseController < ActionController::Base
3
+ include LoadSettings
4
+
5
+ protect_from_forgery
6
+ before_action :authenticate_admin_user!, except: %w(index)
7
+ before_action :load_settings, only: %w(index)
8
+
9
+ def index
10
+ render '/admin/index', layout: 'admin'
11
+ end
12
+
13
+ def bootstrap_data
14
+ render json: {}
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,11 @@
1
+ module Admin
2
+ class DeviseOverrides::PasswordsController < Devise::PasswordsController
3
+ layout 'admin'
4
+
5
+ protected
6
+
7
+ def after_resetting_password_path_for(resource)
8
+ admin_path
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,20 @@
1
+ module Admin
2
+ class DeviseOverrides::SessionsController < Devise::SessionsController
3
+ layout 'admin'
4
+ before_filter :update_return_to, only: %w(new)
5
+
6
+ def after_sign_in_path_for(resource)
7
+ "#{admin_path}##{stored_location_for(resource)}"
8
+ end
9
+
10
+ def after_sign_out_path_for(resource)
11
+ new_admin_user_session_path
12
+ end
13
+
14
+ private
15
+
16
+ def update_return_to
17
+ session["admin_user_return_to"] = params[:return_to]
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ class ApplicationController < ActionController::Base
2
+ include LoadSettings
3
+ # Prevent CSRF attacks by raising an exception.
4
+ # For APIs, you may want to use :null_session instead.
5
+ # protect_from_forgery with: :exception
6
+ before_action :load_settings
7
+ end
@@ -0,0 +1,23 @@
1
+ module LoadSettings
2
+ extend ActiveSupport::Concern
3
+
4
+ included do
5
+ def load_settings
6
+ @settings = SettingsObject.hash
7
+ if @settings.empty?
8
+ build_settings_defaults
9
+ @settings = SettingsObject.hash
10
+ end
11
+ end
12
+
13
+ def build_settings_defaults
14
+ SettingsObject.create(title: 'general', values: {
15
+ website_title: '',
16
+ website_tagline: '',
17
+ website_description: '',
18
+ website_logo_url: '',
19
+ website_url: ''
20
+ })
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,102 @@
1
+ module ApplicationHelper
2
+ def include_meta_tags
3
+ name = @settings[:general][:website_title]
4
+ title = @settings[:general][:website_tagline]
5
+ description = @settings[:general][:website_description]
6
+ description = ActionController::Base.helpers.strip_tags(description).
7
+ gsub("\n", "").
8
+ gsub("\r", "")
9
+ url = @settings[:general][:website_url]
10
+ image_url = @settings[:general][:website_logo_url]
11
+
12
+ if Rails.env.production?
13
+ unless image_url.include?('//')
14
+ host = ENV.fetch("HOST")
15
+ protocole = Rails.application.config.force_ssl ? "https://" : "http://"
16
+ image_url = "#{protocole}#{host}#{image_url}"
17
+ end
18
+ end
19
+
20
+ display_meta_tags({
21
+ site: name,
22
+ title: title,
23
+ description: description,
24
+ canonical: url,
25
+ og: {
26
+ site_name: name,
27
+ url: url,
28
+ title: title,
29
+ description: description,
30
+ image: image_url,
31
+ type: "website"
32
+ },
33
+ twitter: {
34
+ url: url,
35
+ title: title,
36
+ description: description,
37
+ image: image_url,
38
+ card: "summary"
39
+ }
40
+ })
41
+ end
42
+
43
+ def sidebar_image_tag
44
+ tagline = @settings[:general][:website_tagline].presence
45
+ image_url = @settings[:general][:website_logo_url].presence
46
+ if image_url
47
+ image_tag(image_url, alt: tagline)
48
+ else
49
+ ""
50
+ end
51
+ end
52
+
53
+ def sidebar_tagline
54
+ tagline = @settings[:general][:website_description].presence
55
+ (tagline || "").html_safe
56
+ end
57
+
58
+ def social_links
59
+ links = @settings[:general][:social_links] || []
60
+ links.reject! { |l| l.empty? }
61
+
62
+ social_icons_map = {
63
+ "facebook.com" => "facebook",
64
+ "vk.com" => "vk",
65
+ "twitter.com" => "twitter",
66
+ "behance.net" => "behance",
67
+ "github.com" => "github",
68
+ "pinterest.com" => "pinterest",
69
+ "instagram.com" => "instagram",
70
+ "youtube.com" => "youtube-play",
71
+ "linkedin.com" => "linkedin",
72
+ "medium.com" => "medium",
73
+ "vimeo.com" => "vimeo",
74
+ "slack.com" => "slack",
75
+ "dribbble.com" => "dribbble",
76
+ "soundcloud.com" => "soundcloud",
77
+ "mailto:" => "envelope"
78
+ }
79
+ social_icons_domains = social_icons_map.keys
80
+
81
+ html = links.collect do |l|
82
+ key = social_icons_domains.select { |domain| l.include?(domain) }.first
83
+ icon = social_icons_map[key]
84
+
85
+ link_to l, target: "_blank" do
86
+ fa_stacked_icon("#{icon} inverse", base: "circle", class: "fa-1x")
87
+ end
88
+ end
89
+ .join("")
90
+
91
+ html.html_safe
92
+ end
93
+
94
+ def footer_copyright
95
+ title = @settings[:general][:website_title]
96
+ year = Date.today.year
97
+ html = "#{title} &copy; #{year}"
98
+ """<div class='footer-copyright'>
99
+ #{html}
100
+ </div>""".html_safe
101
+ end
102
+ end
@@ -0,0 +1,15 @@
1
+ # Body class helper striped our from:
2
+ # https://github.com/thoughtbot/flutie/blob/master/lib/flutie/body_class_helper.rb
3
+ module BodyClassHelper
4
+ def body_class(options = {})
5
+ extra_body_classes_symbol = options[:extra_body_classes_symbol] || :extra_body_classes
6
+ qualified_controller_name = controller.controller_path.gsub('/','-')
7
+ basic_body_class = "#{qualified_controller_name} #{qualified_controller_name}-#{controller.action_name}"
8
+
9
+ if content_for?(extra_body_classes_symbol)
10
+ [basic_body_class, content_for(extra_body_classes_symbol)].join(' ')
11
+ else
12
+ basic_body_class
13
+ end
14
+ end
15
+ end
data/app/mailers/.keep ADDED
File without changes
data/app/models/.keep ADDED
File without changes