tenon 1.0.50 → 1.0.51

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54502b6fa4022f3091a7992df0d05a1ff26363e9
4
- data.tar.gz: 595f43bba44bd2f4ccb25ce826394128b9f0a4ce
3
+ metadata.gz: 1052906ed20a82597981ba08ce6fd371e4623da7
4
+ data.tar.gz: 63a66b9c310d34277cfb168311e23a0de6a7bf70
5
5
  SHA512:
6
- metadata.gz: b578dd52ba9a5d31ac24e7b23939d24fb917603d8a5605c677574ad0a7dec581375c71e1224926cdbfe983fb32976e426c29e2b7d1eec10e7e759872473f40a9
7
- data.tar.gz: 2be9569450c5c3bf1cb76536c28459517aa9e04cae3bd00616ba9bdeea52290b20d244294130764b90752cdadcb5d663208a5f988f317d372cb3d86e0bb7ed49
6
+ metadata.gz: 7793cd262a35059f3eb9222d8914aa43b83a7c75996089fa64e4ff0d836a764f8c3f93d49dee0d77dd651c4060e8e7eabd0eafa4c35ca37bd323b5fb35cce556
7
+ data.tar.gz: 41e7edfeaeee739cf8bf1bae76ab9599ba3d0d98b236c532b665004f1c471dcb43bb6e64fffc637a695c9d4b05547875b77835eb98bc3601496ad04827ac76e5
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "Tenon",
3
+ "icons": [
4
+ {
5
+ "src": "/assets/tenon/icon-36x36.png",
6
+ "sizes": "36x36",
7
+ "type": "image/png",
8
+ "density": "0.75"
9
+ },
10
+ {
11
+ "src": "/assets/tenon/icon-48x48.png",
12
+ "sizes": "48x48",
13
+ "type": "image/png",
14
+ "density": "1.0"
15
+ },
16
+ {
17
+ "src": "/assets/tenon/icon-72x72.png",
18
+ "sizes": "72x72",
19
+ "type": "image/png",
20
+ "density": "1.5"
21
+ },
22
+ {
23
+ "src": "/assets/tenon/icon-96x96.png",
24
+ "sizes": "96x96",
25
+ "type": "image/png",
26
+ "density": "2.0"
27
+ },
28
+ {
29
+ "src": "/assets/tenon/icon-144x144.png",
30
+ "sizes": "144x144",
31
+ "type": "image/png",
32
+ "density": "3.0"
33
+ },
34
+ {
35
+ "src": "/assets/tenon/icon-192x192.png",
36
+ "sizes": "192x192",
37
+ "type": "image/png",
38
+ "density": "4.0"
39
+ }
40
+ ],
41
+ // "start_url": "",
42
+ "display": "standalone",
43
+ "orientation": "portrait"
44
+ }
@@ -0,0 +1,9 @@
1
+ module Tenon
2
+ module PlatformHintsHelper
3
+
4
+ def platform_hints(color)
5
+ render 'tenon/shared/platform_hints', color: color
6
+ end
7
+
8
+ end
9
+ end
@@ -4,11 +4,12 @@
4
4
  = csrf_meta_tag
5
5
  %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }/
6
6
  %meta{ :content => 'initial-scale=1,width=device-width,user-scalable=no', :name => 'viewport' }
7
+ = platform_hints(Tenon.config.primary_color) if Tenon.config.primary_color.present?
8
+
7
9
  %title
8
- = raw @page_title + ": " if @page_title
9
10
  = Tenon::MySettings.site_title if Tenon::MySettings.site_title
10
- = stylesheet_link_tag 'tenon/tenon', '//fonts.googleapis.com/css?family=Open+Sans:400,700'
11
11
 
12
+ = stylesheet_link_tag 'tenon/tenon', '//fonts.googleapis.com/css?family=Open+Sans:400,700'
12
13
  = javascript_include_tag 'tenon/tenon_manifest'
13
14
 
14
15
  %body{data: { controller: params[:controller], action: params[:action] }, class: ('menu-open' if content_for?(:sidebar))}
@@ -4,14 +4,12 @@
4
4
  = csrf_meta_tag
5
5
  %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }/
6
6
  %meta{ :content => 'initial-scale=1,width=device-width', :name => 'viewport' }
7
+ = platform_hints(Tenon.config.client_color) if Tenon.config.client_color.present?
8
+
7
9
  %title
8
- - if controller_name == 'passwords'
9
- Forgot Password:
10
- - else
11
- Sign In:
12
10
  = Tenon::MySettings.site_title if Tenon::MySettings.site_title
13
- = stylesheet_link_tag 'tenon/tenon', '//fonts.googleapis.com/css?family=Open+Sans:400,700'
14
11
 
12
+ = stylesheet_link_tag 'tenon/tenon', '//fonts.googleapis.com/css?family=Open+Sans:400,700'
15
13
  = javascript_include_tag 'tenon/tenon_manifest'
16
14
 
17
15
  %body{data: { controller: params[:controller], action: params[:action] }, class: ('menu-open' if content_for?(:sidebar))}
@@ -0,0 +1,26 @@
1
+ -# Android
2
+ -# https://developer.chrome.com/multidevice/android/installtohomescreen
3
+ -# http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
4
+ %meta{ :content => color, :name => 'theme-color' }
5
+ %meta{ :content => 'yes', :name => 'mobile-web-app-capable' }
6
+ %link{ :rel => 'icon', :sizes => '192x192', :href => '/assets/tenon/icon-192x192.png' }
7
+ %link{ :rel => 'manifest', :href => '/assets/javascripts/manifest.json' }
8
+
9
+ -# iOS
10
+ -# https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
11
+ %link{ :rel => 'apple-touch-icon', :sizes => '57x57', :href => '/assets/tenon/icon-57x57.png' }
12
+ %link{ :rel => 'apple-touch-icon', :sizes => '72x72', :href => '/assets/tenon/icon-72x72.png' }
13
+ %link{ :rel => 'apple-touch-icon', :sizes => '114x114', :href => '/assets/tenon/icon-114x114.png' }
14
+ %link{ :rel => 'apple-touch-icon', :sizes => '144x144', :href => '/assets/tenon/icon-144x144.png' }
15
+ %meta{ :content => 'yes', :name => 'apple-mobile-web-app-capable' }
16
+ %meta{ :content => 'default', :name => 'apple-mobile-web-app-status-bar-style' }
17
+
18
+ -# Windows
19
+ -# http://msdn.microsoft.com/en-us/library/ie/gg491732(v=vs.85).aspx
20
+ -# http://blogs.msdn.com/b/ie/archive/2012/06/08/high-quality-visuals-for-pinned-sites-in-windows-8.aspx
21
+ %meta{ :content => 'Tenon', :name => 'application-name' }
22
+ %meta{ :content => 'Tenon', :name => 'msapplication-tooltip' }
23
+ %meta{ :content => '/tenon', :name => 'msapplication-starturl' }
24
+ %meta{ :content => color, :name => 'msapplication-navbutton-color' }
25
+ %meta{ :content => color, :name => 'msapplication-TileColor' }
26
+ %meta{ :content => '/assets/tenon/icon-144x144.png', :name => 'msapplication-TileImage' }
@@ -18,6 +18,10 @@ Tenon.configure do |config|
18
18
  }
19
19
  }
20
20
 
21
+ # Set platform hints color(s)
22
+ config.client_color = '#9c0f17'
23
+ config.primary_color = '#df222A'
24
+
21
25
  # Set the default after_update and after_create path
22
26
  # :edit or :index
23
27
  config.after_update_path = :edit
data/lib/tenon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tenon
2
- VERSION = '1.0.50'
2
+ VERSION = '1.0.51'
3
3
  end
data/lib/tenon.rb CHANGED
@@ -23,6 +23,6 @@ module Tenon
23
23
 
24
24
  class Configuration
25
25
  attr_accessor :mobile_layout, :languages, :seo_callout, :front_end,
26
- :after_create_path, :after_update_path
26
+ :after_create_path, :after_update_path, :client_color, :primary_color
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tenon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.50
4
+ version: 1.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - factor[e] design initiative
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-16 00:00:00.000000000 Z
11
+ date: 2014-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors
@@ -889,6 +889,14 @@ files:
889
889
  - README.rdoc
890
890
  - Rakefile
891
891
  - app/assets/images/tenon/client-logo.png
892
+ - app/assets/images/tenon/icon-114x114.png
893
+ - app/assets/images/tenon/icon-144x144.png
894
+ - app/assets/images/tenon/icon-192x192.png
895
+ - app/assets/images/tenon/icon-36x36.png
896
+ - app/assets/images/tenon/icon-48x48.png
897
+ - app/assets/images/tenon/icon-57x57.png
898
+ - app/assets/images/tenon/icon-72x72.png
899
+ - app/assets/images/tenon/icon-96x96.png
892
900
  - app/assets/images/tenon/icons/delete.png
893
901
  - app/assets/images/tenon/icons/edit.png
894
902
  - app/assets/images/tenon/icons/thumbdown.png
@@ -990,6 +998,7 @@ files:
990
998
  - app/assets/javascripts/tenon/features/tenon_content/stretch_to_fill.js.coffee
991
999
  - app/assets/javascripts/tenon/features/tenon_content/wrapped_sizing.js.coffee
992
1000
  - app/assets/javascripts/tenon/features/video_feeds.js.coffee
1001
+ - app/assets/javascripts/tenon/manifest.json
993
1002
  - app/assets/javascripts/tenon/medium_customizations.js
994
1003
  - app/assets/javascripts/tenon/templates/assets/asset_field.jst.eco
995
1004
  - app/assets/javascripts/tenon/templates/assets/asset_progress.jst.eco
@@ -1097,6 +1106,7 @@ files:
1097
1106
  - app/helpers/tenon/i18n_helper.rb
1098
1107
  - app/helpers/tenon/item_version_helper.rb
1099
1108
  - app/helpers/tenon/nav_helper.rb
1109
+ - app/helpers/tenon/platform_hints_helper.rb
1100
1110
  - app/helpers/tenon/tenon_content_helper.rb
1101
1111
  - app/helpers/tenon/tenon_helper.rb
1102
1112
  - app/helpers/tenon/tree_helper.rb
@@ -1231,6 +1241,7 @@ files:
1231
1241
  - app/views/tenon/shared/_i18n_language_nav.html.haml
1232
1242
  - app/views/tenon/shared/_main_nav.html.haml
1233
1243
  - app/views/tenon/shared/_pagination.json.jbuilder
1244
+ - app/views/tenon/shared/_platform_hints.html.haml
1234
1245
  - app/views/tenon/shared/_posts_nav.html.haml
1235
1246
  - app/views/tenon/shared/_seo_fields.html.haml
1236
1247
  - app/views/tenon/shared/_util_nav.html.haml
@@ -1491,7 +1502,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1491
1502
  version: '0'
1492
1503
  requirements: []
1493
1504
  rubyforge_project:
1494
- rubygems_version: 2.2.2
1505
+ rubygems_version: 2.4.5
1495
1506
  signing_key:
1496
1507
  specification_version: 4
1497
1508
  summary: A highly flexible mountable Rails CMS built for rapid application development.