tmatt_cms 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generators/tmatt_cms/install_generator.rb +14 -15
- data/lib/generators/tmatt_cms/templates/concerns/pretty_url.rb +10 -2
- data/lib/generators/tmatt_cms/templates/css/layouts/dashboard.css.scss +61 -0
- data/lib/generators/tmatt_cms/templates/css/style.css.scss +34 -11
- data/lib/generators/tmatt_cms/templates/gemfile/Gemfile +4 -1
- data/lib/generators/tmatt_cms/templates/js/application.js +4 -0
- data/lib/generators/tmatt_cms/templates/js/utils/action_alert.js +15 -14
- data/lib/generators/tmatt_cms/templates/js/utils/body_util.js +1 -1
- data/lib/generators/tmatt_cms/templates/js/utils/froala_editor.js +1 -1
- data/lib/generators/tmatt_cms/templates/js/utils/magnificPopup.js +19 -11
- data/lib/generators/tmatt_cms/templates/js/utils/turbolinks.js +14 -0
- data/lib/generators/tmatt_cms/templates/views/application/_footer.html.haml +1 -0
- data/lib/generators/tmatt_cms/templates/views/application/_head.html.haml +58 -0
- data/lib/generators/tmatt_cms/templates/views/application/_head_dashboard.html.haml +61 -0
- data/lib/generators/tmatt_cms/templates/views/layouts/application.html.haml +5 -5
- data/lib/generators/tmatt_cms/templates/views/layouts/dashboard.html.haml +8 -11
- data/lib/tmatt_cms/version.rb +1 -1
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc96eaec80f30bf401a732a6c93ab047649d2ff9
|
4
|
+
data.tar.gz: b3120484c9bf945c935be734993b77f3bfb1da4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ce881c0f3d977ce626238df679b1c754530d584b63a63b634854dfcb67592df1768de35a627286c37b2240434a99597a8cca9a5e993f6672c4a1705099d981f
|
7
|
+
data.tar.gz: 7715d1eb2a9a47d6aa4d7f00a168bb2695787feeb2e9b08c46e9d8b9be7750d7d5dbc7e5fd2c0ed6953a5aa00391a60c5817594ff19590c412261f5e53e50ab6
|
@@ -198,21 +198,6 @@ module TmattCms
|
|
198
198
|
end
|
199
199
|
end
|
200
200
|
|
201
|
-
# def config_paperclip
|
202
|
-
# filename = 'config/environments/development.rb'
|
203
|
-
# if File.readlines(filename).grep(/Paperclip/).size == 0
|
204
|
-
# line_count = get_line_count filename
|
205
|
-
# insert_at_line(filename, line_count - 1, ["\n\t#Paperclip.options[:command_path] = '/usr/local/bin/'"])
|
206
|
-
# end
|
207
|
-
#
|
208
|
-
#
|
209
|
-
# filename = 'config/environments/production.rb'
|
210
|
-
# if File.readlines(filename).grep(/Paperclip/).size == 0
|
211
|
-
# line_count = get_line_count filename
|
212
|
-
# insert_at_line(filename, line_count - 1, ["\n\t#Paperclip.options[:command_path] = '/usr/bin/'"])
|
213
|
-
# end
|
214
|
-
# end
|
215
|
-
|
216
201
|
def config_jasny_bootstrap
|
217
202
|
copy_file 'css/utils/jasny-bootstrap.min.css', 'app/assets/stylesheets/utils/jasny-bootstrap.min.css'
|
218
203
|
copy_file 'js/utils/jasny-bootstrap.min.js', 'app/assets/javascripts/utils/jasny-bootstrap.min.js'
|
@@ -226,7 +211,17 @@ module TmattCms
|
|
226
211
|
end
|
227
212
|
end
|
228
213
|
|
214
|
+
def config_head
|
215
|
+
copy_file 'views/application/_head.html.haml', 'app/views/application/_head.html.haml'
|
216
|
+
copy_file 'views/application/_head_dashboard.html.haml', 'app/views/application/_head_dashboard.html.haml'
|
217
|
+
end
|
218
|
+
|
219
|
+
def config_footer
|
220
|
+
copy_file 'views/application/_footer.html.haml', 'app/views/application/_footer.html.haml'
|
221
|
+
end
|
222
|
+
|
229
223
|
def add_dashboard
|
224
|
+
copy_file 'css/layouts/dashboard.css.scss', 'app/assets/stylesheets/layouts/dashboard.css.scss'
|
230
225
|
copy_file 'views/dashboard/partial/_sidebar.html.haml', 'app/views/dashboard/partial/_sidebar.html.haml'
|
231
226
|
copy_file 'views/layouts/dashboard.html.haml', 'app/views/layouts/dashboard.html.haml'
|
232
227
|
|
@@ -298,6 +293,10 @@ module TmattCms
|
|
298
293
|
copy_file 'config/initializers/carrier_wave.rb', 'config/initializers/carrier_wave.rb'
|
299
294
|
end
|
300
295
|
|
296
|
+
def config_turbolinks
|
297
|
+
copy_file 'js/utils/turbolinks.js', 'app/assets/javascripts/utils/turbolinks.js'
|
298
|
+
end
|
299
|
+
|
301
300
|
private
|
302
301
|
|
303
302
|
def get_line_count(filename)
|
@@ -23,10 +23,18 @@ module PrettyUrl
|
|
23
23
|
private
|
24
24
|
def update_url_name
|
25
25
|
if I18n.locale == :en
|
26
|
-
if self.has_attribute?(:name)
|
26
|
+
if self.has_attribute?(:name)
|
27
27
|
self.update_column :url_name, "#{name.to_url}-#{id}"
|
28
|
-
|
28
|
+
|
29
|
+
elsif self.has_attribute?(:title)
|
30
|
+
self.update_column :url_name, "#{title.to_url}-#{id}"
|
31
|
+
|
32
|
+
elsif self.translations.first.has_attribute?(:name)
|
33
|
+
self.update_column :url_name, "#{name.to_url}-#{id}"
|
34
|
+
|
35
|
+
elsif self.translations.first.has_attribute?(:title)
|
29
36
|
self.update_column :url_name, "#{title.to_url}-#{id}"
|
37
|
+
|
30
38
|
else
|
31
39
|
self.update_column :url_name, self.id
|
32
40
|
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
.dashboard {
|
2
|
+
@media (min-width: $screen-md) {
|
3
|
+
#main {
|
4
|
+
padding: 0 0 0 300px;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
|
8
|
+
@media (max-width: $screen-md - 1) {
|
9
|
+
|
10
|
+
.navmenu.navmenu-default.navmenu-fixed-left.offcanvas-sm {
|
11
|
+
z-index:100;
|
12
|
+
left: -300px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.navbar-toggle {
|
16
|
+
display: block !important;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.navbar.navbar-default.navbar-fixed-top.hidden-md.hidden-lg {
|
21
|
+
z-index:90;
|
22
|
+
}
|
23
|
+
|
24
|
+
form {
|
25
|
+
.control-label {
|
26
|
+
text-align: left !important;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
li:hover {
|
31
|
+
ul {
|
32
|
+
color: $orange !important;
|
33
|
+
margin-left: 0 !important;
|
34
|
+
}
|
35
|
+
cursor: pointer;
|
36
|
+
}
|
37
|
+
|
38
|
+
li {
|
39
|
+
a {
|
40
|
+
span {
|
41
|
+
color: $gray;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
a.visited {
|
46
|
+
span {
|
47
|
+
color: $orange !important;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
a.active {
|
52
|
+
@extend .font-bold;
|
53
|
+
color: $orange !important;
|
54
|
+
|
55
|
+
span {
|
56
|
+
@extend .font-bold;
|
57
|
+
color: $orange !important;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
@@ -33,7 +33,7 @@ img { max-width: 100%; }
|
|
33
33
|
ul {
|
34
34
|
&.fa-ul li {
|
35
35
|
margin-bottom: $gutter/2.5;
|
36
|
-
.fa { margin-right:
|
36
|
+
.fa { margin-right: .5rem; }
|
37
37
|
}
|
38
38
|
}
|
39
39
|
|
@@ -45,7 +45,7 @@ ul, li {
|
|
45
45
|
|
46
46
|
ol, ul {
|
47
47
|
margin-top: 0;
|
48
|
-
margin-bottom:
|
48
|
+
margin-bottom: 1rem;
|
49
49
|
}
|
50
50
|
|
51
51
|
|
@@ -73,17 +73,36 @@ a:visited, a:hover, a:active, a:focus {
|
|
73
73
|
|
74
74
|
hr {
|
75
75
|
margin: $gutter 0;
|
76
|
-
border-top:
|
76
|
+
border-top: .1rem solid $light-gray;
|
77
77
|
}
|
78
78
|
|
79
79
|
mark { background: none; color: $font-highlight-color; }
|
80
80
|
abbr[title] { border: 0; }
|
81
81
|
|
82
|
+
#main {
|
83
|
+
transition: .3s;
|
84
|
+
}
|
85
|
+
|
86
|
+
.main-blur {
|
87
|
+
@include blur_image(.1rem);
|
88
|
+
}
|
89
|
+
|
90
|
+
.main-no-blur {
|
91
|
+
@include blur_image(0);
|
92
|
+
}
|
93
|
+
|
82
94
|
.block { display:block; }
|
83
95
|
.inline-block { display:inline-block; }
|
84
96
|
.relative { position:relative; }
|
85
97
|
.absolute { position:absolute; }
|
86
98
|
|
99
|
+
.full {
|
100
|
+
top: 0;
|
101
|
+
right: 0;
|
102
|
+
bottom: 0;
|
103
|
+
left: 0;
|
104
|
+
}
|
105
|
+
|
87
106
|
.overflow-h { overflow: hidden }
|
88
107
|
|
89
108
|
.no-scroll { position: fixed; overflow-y:scroll }
|
@@ -271,6 +290,7 @@ abbr[title] { border: 0; }
|
|
271
290
|
.text-orange { color: $orange !important; }
|
272
291
|
.text-blue { color: $blue !important; }
|
273
292
|
.text-grey { color: $gray; }
|
293
|
+
.text-light-grey { color: $light-gray; }
|
274
294
|
|
275
295
|
.pull-none { float: none; }
|
276
296
|
.media > .pull-left { margin-right: $gutter*2; }
|
@@ -280,7 +300,7 @@ abbr[title] { border: 0; }
|
|
280
300
|
.float_r { float: right; }
|
281
301
|
|
282
302
|
.btn {
|
283
|
-
border-radius:
|
303
|
+
border-radius: 0;
|
284
304
|
border: .1rem solid $black;
|
285
305
|
}
|
286
306
|
|
@@ -309,7 +329,7 @@ abbr[title] { border: 0; }
|
|
309
329
|
.table-cell { display:table-cell; }
|
310
330
|
|
311
331
|
.bg-blur {
|
312
|
-
@include blur_image(
|
332
|
+
@include blur_image(1rem);
|
313
333
|
}
|
314
334
|
|
315
335
|
.cover-black:after {
|
@@ -331,16 +351,19 @@ abbr[title] { border: 0; }
|
|
331
351
|
}
|
332
352
|
|
333
353
|
.image-bg {
|
334
|
-
position: absolute;
|
335
|
-
top:
|
336
|
-
right:
|
337
|
-
bottom:
|
338
|
-
left:
|
354
|
+
position: absolute !important;
|
355
|
+
top: -2rem;
|
356
|
+
right: -2rem;
|
357
|
+
bottom: -2rem;
|
358
|
+
left: -2rem;
|
339
359
|
overflow: hidden;
|
360
|
+
z-index: $cover-image-index !important;
|
340
361
|
}
|
341
362
|
|
342
363
|
.cover-image {
|
343
|
-
background-repeat: no-repeat;
|
364
|
+
background-repeat: no-repeat;
|
365
|
+
background-size: cover;
|
366
|
+
background-position: center center;
|
344
367
|
}
|
345
368
|
|
346
369
|
.fa-lg {
|
@@ -14,6 +14,7 @@
|
|
14
14
|
//= require h5bp
|
15
15
|
//= require respond
|
16
16
|
//= require jquery
|
17
|
+
//= require jquery.turbolinks
|
17
18
|
//= require jquery_ujs
|
18
19
|
//= require jquery-ui
|
19
20
|
//= require bootstrap
|
@@ -23,6 +24,8 @@
|
|
23
24
|
//= require utils/body_util
|
24
25
|
//= require utils/action_alert
|
25
26
|
//= require utils/froala_editor
|
27
|
+
//= require utils/magnificPopup
|
28
|
+
//= require utils/turbolinks
|
26
29
|
//= require froala_editor.min.js
|
27
30
|
//= require plugins/align.min.js
|
28
31
|
//= require plugins/colors.min.js
|
@@ -45,3 +48,4 @@
|
|
45
48
|
//= require plugins/url.min.js
|
46
49
|
//= require plugins/video.min.js
|
47
50
|
//= require languages/zh_cn.js
|
51
|
+
//= require turbolinks
|
@@ -1,4 +1,4 @@
|
|
1
|
-
$(function() {
|
1
|
+
$(document).on('turbolinks:load', function() {
|
2
2
|
var action_alert = $('.action-alert');
|
3
3
|
var action_alert_count = action_alert.length;
|
4
4
|
|
@@ -14,19 +14,20 @@ $(function() {
|
|
14
14
|
// $("#action_alert_audio")[0].play();
|
15
15
|
}
|
16
16
|
}, 200);
|
17
|
+
});
|
17
18
|
|
18
|
-
var action_alert_close = action_alert.find('.close');
|
19
|
-
action_alert_close.click(function(e) {
|
20
|
-
var alert = $(this).parent('.action-alert');
|
21
|
-
var select_bottom = parseFloat(alert.css('bottom')) / 10;
|
22
|
-
var select_height = parseFloat(alert.css('height')) / 10;
|
23
|
-
$(this).parent('.action-alert').animate({bottom: -1 * select_height - 5 + 'rem'});
|
24
19
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
20
|
+
$(document).on('click', '.action-alert-close', function() {
|
21
|
+
var alert = $(this).parent('.action-alert');
|
22
|
+
var select_bottom = parseFloat(alert.css('bottom')) / 10;
|
23
|
+
var select_height = parseFloat(alert.css('height')) / 10;
|
24
|
+
alert.animate({bottom: -1 * select_height - 5 + 'rem'});
|
25
|
+
|
26
|
+
var action_alert = $('.action-alert');
|
27
|
+
$.each(action_alert, function() {
|
28
|
+
var bottom = parseFloat($(this).css('bottom')) / 10;
|
29
|
+
if (bottom > select_bottom ) {
|
30
|
+
$(this).animate({bottom: bottom - select_height - 1 + 'rem'});
|
31
|
+
}
|
32
|
+
});
|
32
33
|
});
|
@@ -2,15 +2,23 @@
|
|
2
2
|
* Created by Charlie on 20/12/2016.
|
3
3
|
*/
|
4
4
|
|
5
|
-
$(function() {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
$(document).on('turbolinks:load', function() {
|
6
|
+
$('.open-popup-link').magnificPopup({
|
7
|
+
removalDelay: 500,
|
8
|
+
type: 'inline',
|
9
|
+
midClick: true,
|
10
|
+
callbacks: {
|
11
|
+
beforeOpen: function () {
|
12
|
+
this.st.mainClass = this.st.el.attr('data-effect');
|
13
|
+
$('.navbar').hide().css({top: '-100px'});
|
14
|
+
},
|
15
|
+
close: function () {
|
16
|
+
$('.navbar').show();
|
17
|
+
setTimeout(function() {
|
18
|
+
$('.navbar').css({top: '0'});
|
19
|
+
}, 1);
|
20
|
+
|
21
|
+
}
|
22
|
+
}
|
23
|
+
});
|
16
24
|
});
|
@@ -0,0 +1,14 @@
|
|
1
|
+
$(document).on('turbolinks:request-start', function() {
|
2
|
+
$('#main').removeClass('main-no-blur').addClass('main-blur');
|
3
|
+
$('#footer').removeClass('main-no-blur').addClass('main-blur');
|
4
|
+
});
|
5
|
+
|
6
|
+
$(document).on('turbolinks:load', function() {
|
7
|
+
var main = $('#main');
|
8
|
+
var footer = $('#footer');
|
9
|
+
|
10
|
+
setTimeout(function() {
|
11
|
+
main.removeClass('main-blur').addClass('main-no-blur');
|
12
|
+
footer.removeClass('main-blur').addClass('main-no-blur');
|
13
|
+
}, 300);
|
14
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
%footer#footer.main-blur
|
@@ -0,0 +1,58 @@
|
|
1
|
+
%head
|
2
|
+
/[if lt IE 9]
|
3
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
4
|
+
%meta{:charset => 'UTF-8'}
|
5
|
+
/[if IE]
|
6
|
+
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
7
|
+
- if current_page?(root_url)
|
8
|
+
- @title_tag = 'Tmatt Technology'
|
9
|
+
- else
|
10
|
+
- @title_tag = 'Tmatt Technology'
|
11
|
+
= display_meta_tags site: @title_tag,
|
12
|
+
keywords: '',
|
13
|
+
description: '',
|
14
|
+
separator: '|',
|
15
|
+
reverse: true
|
16
|
+
|
17
|
+
%meta{content: 'Tmatt Tech', :name => 'author'}
|
18
|
+
%meta{content: 'google-site-verification', :name => 'google-site-verification'}
|
19
|
+
%meta{:content => 'Copyright Brand #{Date.today.year}. All Rights Reserved.', :name => 'Copyright'}
|
20
|
+
|
21
|
+
-#%meta{:content => 'no-preview', :name => 'turbolinks-cache-control'}/
|
22
|
+
|
23
|
+
%meta{name:'viewport', content:'width=device-width, initial-scale=1'}
|
24
|
+
:javascript
|
25
|
+
(function(doc) {
|
26
|
+
viewport = document.querySelector("meta[name=viewport]");
|
27
|
+
if ( navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) ) {
|
28
|
+
viewport.setAttribute('content', 'width=device-width, initial-scale=1');
|
29
|
+
} else if ( navigator.userAgent.match(/iPad/i) ) {
|
30
|
+
viewport.setAttribute('content', 'width=device-width, initial-scale=1');
|
31
|
+
} else if ( navigator.userAgent.match(/Android/i) ) {
|
32
|
+
viewport.setAttribute('content', 'width=900, initial-scale=1');
|
33
|
+
}
|
34
|
+
}(document));
|
35
|
+
|
36
|
+
%link{:href => '/favicon.ico', :rel => 'shortcut icon'}
|
37
|
+
%link{href: '/apple-touch-icon.png', rel: 'apple-touch-icon'}
|
38
|
+
%link{href: '/apple-touch-icon-57x57.png', rel: 'apple-touch-icon', sizes: '57x57'}
|
39
|
+
%link{href: '/apple-touch-icon-72x72.png', rel: 'apple-touch-icon', sizes: '72x72'}
|
40
|
+
%link{href: '/apple-touch-icon-76x76.png', rel: 'apple-touch-icon', sizes: '76x76'}
|
41
|
+
%link{href: '/apple-touch-icon-114x114.png', rel: 'apple-touch-icon', sizes: '114x114'}
|
42
|
+
%link{href: '/apple-touch-icon-120x120.png', rel: 'apple-touch-icon', sizes: '120x120'}
|
43
|
+
%link{href: '/apple-touch-icon-144x144.png', rel: 'apple-touch-icon', sizes: '144x144'}
|
44
|
+
%link{href: '/apple-touch-icon-152x152.png', rel: 'apple-touch-icon', sizes: '152x152'}
|
45
|
+
/ %link{href: "http://fonts.googleapis.com/css?family=Open+Sans:300,400,700", rel: "stylesheet", type: "text/css"}
|
46
|
+
|
47
|
+
= render 'stylesheets'
|
48
|
+
= javascript_include_tag 'polyfills'
|
49
|
+
|
50
|
+
= render 'javascripts'
|
51
|
+
= yield :js
|
52
|
+
= yield :custom_javascripts
|
53
|
+
|
54
|
+
= csrf_meta_tag
|
55
|
+
|
56
|
+
/[if lt IE 9]
|
57
|
+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
58
|
+
|
@@ -0,0 +1,61 @@
|
|
1
|
+
%head
|
2
|
+
/[if lt IE 9]
|
3
|
+
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
4
|
+
%meta{:charset => 'UTF-8'}
|
5
|
+
/[if IE]
|
6
|
+
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
|
7
|
+
- if current_page?(root_url)
|
8
|
+
- @title_tag = 'Tmatt Technology'
|
9
|
+
- else
|
10
|
+
- @title_tag = 'Tmatt Technology'
|
11
|
+
= display_meta_tags site: @title_tag,
|
12
|
+
keywords: '',
|
13
|
+
description: '',
|
14
|
+
separator: '|',
|
15
|
+
reverse: true
|
16
|
+
|
17
|
+
%meta{content: 'Tmatt Tech', :name => 'author'}
|
18
|
+
%meta{content: 'google-site-verification', :name => 'google-site-verification'}
|
19
|
+
%meta{:content => 'Copyright Brand #{Date.today.year}. All Rights Reserved.', :name => 'Copyright'}
|
20
|
+
|
21
|
+
-#%meta{:content => 'no-preview', :name => 'turbolinks-cache-control'}/
|
22
|
+
|
23
|
+
%meta{name:'viewport', content:'width=device-width, initial-scale=1'}
|
24
|
+
:javascript
|
25
|
+
(function(doc) {
|
26
|
+
viewport = document.querySelector("meta[name=viewport]");
|
27
|
+
if ( navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i) ) {
|
28
|
+
viewport.setAttribute('content', 'width=device-width, initial-scale=1');
|
29
|
+
} else if ( navigator.userAgent.match(/iPad/i) ) {
|
30
|
+
viewport.setAttribute('content', 'width=device-width, initial-scale=1');
|
31
|
+
} else if ( navigator.userAgent.match(/Android/i) ) {
|
32
|
+
viewport.setAttribute('content', 'width=900, initial-scale=1');
|
33
|
+
}
|
34
|
+
}(document));
|
35
|
+
|
36
|
+
%link{:href => '/favicon.ico', :rel => 'shortcut icon'}
|
37
|
+
%link{href: '/apple-touch-icon.png', rel: 'apple-touch-icon'}
|
38
|
+
%link{href: '/apple-touch-icon-57x57.png', rel: 'apple-touch-icon', sizes: '57x57'}
|
39
|
+
%link{href: '/apple-touch-icon-72x72.png', rel: 'apple-touch-icon', sizes: '72x72'}
|
40
|
+
%link{href: '/apple-touch-icon-76x76.png', rel: 'apple-touch-icon', sizes: '76x76'}
|
41
|
+
%link{href: '/apple-touch-icon-114x114.png', rel: 'apple-touch-icon', sizes: '114x114'}
|
42
|
+
%link{href: '/apple-touch-icon-120x120.png', rel: 'apple-touch-icon', sizes: '120x120'}
|
43
|
+
%link{href: '/apple-touch-icon-144x144.png', rel: 'apple-touch-icon', sizes: '144x144'}
|
44
|
+
%link{href: '/apple-touch-icon-152x152.png', rel: 'apple-touch-icon', sizes: '152x152'}
|
45
|
+
/ %link{href: "http://fonts.googleapis.com/css?family=Open+Sans:300,400,700", rel: "stylesheet", type: "text/css"}
|
46
|
+
|
47
|
+
= stylesheet_link_tag 'utils/jasny-bootstrap.min'
|
48
|
+
|
49
|
+
= render 'stylesheets'
|
50
|
+
= javascript_include_tag 'polyfills'
|
51
|
+
|
52
|
+
= render 'javascripts'
|
53
|
+
= yield :js
|
54
|
+
= yield :custom_javascripts
|
55
|
+
= javascript_include_tag 'utils/jasny-bootstrap.min'
|
56
|
+
|
57
|
+
= csrf_meta_tag
|
58
|
+
|
59
|
+
/[if lt IE 9]
|
60
|
+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
61
|
+
|
@@ -1,14 +1,14 @@
|
|
1
1
|
!!!
|
2
2
|
- html_tag class: 'no-js', lang: 'en' do
|
3
|
+
|
3
4
|
= render 'head'
|
5
|
+
|
4
6
|
%body{ class: "#{controller.controller_name} #{controller.action_name}" }
|
5
|
-
#main
|
7
|
+
#main.main-blur
|
6
8
|
= render 'chromeframe'
|
9
|
+
|
7
10
|
= render 'header'
|
8
11
|
= flash_tag
|
9
12
|
= yield
|
10
|
-
= render 'footer'
|
11
13
|
|
12
|
-
= render '
|
13
|
-
= yield :js
|
14
|
-
= yield :custom_javascripts
|
14
|
+
= render 'footer'
|
@@ -1,19 +1,16 @@
|
|
1
1
|
!!!
|
2
|
+
- html_tag class: 'no-js', lang: 'en' do
|
2
3
|
|
3
|
-
|
4
|
-
= stylesheet_link_tag 'utils/jasny-bootstrap.css'
|
4
|
+
= render 'head_dashboard'
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
%body{ class: "#{controller.controller_name} #{controller.action_name} dashboard #{('admin' if admin_user_signed_in?)}" }
|
9
|
-
#main
|
6
|
+
%body{ class: "#{controller.controller_name} #{controller.action_name} dashboard #{('admin' if admin_signed_in?)}" }
|
7
|
+
#main.main-blur
|
10
8
|
= render 'chromeframe'
|
11
9
|
|
12
10
|
= render 'dashboard/partial/sidebar'
|
13
|
-
|
11
|
+
= flash_tag
|
12
|
+
.padd.hidden-xs.hidden-md.hidden-lg
|
13
|
+
.padd-2
|
14
14
|
= yield
|
15
15
|
|
16
|
-
|
17
|
-
= yield :js
|
18
|
-
= yield :custom_javascripts
|
19
|
-
= javascript_include_tag 'utils/jasny-bootstrap.js'
|
16
|
+
|
data/lib/tmatt_cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tmatt_cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xingyu Ye
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -87,6 +87,7 @@ files:
|
|
87
87
|
- lib/generators/tmatt_cms/templates/css/application/mixin.css.scss
|
88
88
|
- lib/generators/tmatt_cms/templates/css/application/variables.css.scss
|
89
89
|
- lib/generators/tmatt_cms/templates/css/application/z_index.css.scss
|
90
|
+
- lib/generators/tmatt_cms/templates/css/layouts/dashboard.css.scss
|
90
91
|
- lib/generators/tmatt_cms/templates/css/layouts/footer.css.scss
|
91
92
|
- lib/generators/tmatt_cms/templates/css/layouts/form.css.scss
|
92
93
|
- lib/generators/tmatt_cms/templates/css/layouts/header.css.scss
|
@@ -116,7 +117,11 @@ files:
|
|
116
117
|
- lib/generators/tmatt_cms/templates/js/utils/froala_editor.js
|
117
118
|
- lib/generators/tmatt_cms/templates/js/utils/jasny-bootstrap.min.js
|
118
119
|
- lib/generators/tmatt_cms/templates/js/utils/magnificPopup.js
|
120
|
+
- lib/generators/tmatt_cms/templates/js/utils/turbolinks.js
|
119
121
|
- lib/generators/tmatt_cms/templates/seed_bank/all.seeds.rb
|
122
|
+
- lib/generators/tmatt_cms/templates/views/application/_footer.html.haml
|
123
|
+
- lib/generators/tmatt_cms/templates/views/application/_head.html.haml
|
124
|
+
- lib/generators/tmatt_cms/templates/views/application/_head_dashboard.html.haml
|
120
125
|
- lib/generators/tmatt_cms/templates/views/dashboard/partial/_sidebar.html.haml
|
121
126
|
- lib/generators/tmatt_cms/templates/views/layouts/application.html.haml
|
122
127
|
- lib/generators/tmatt_cms/templates/views/layouts/dashboard.html.haml
|