tenon 1.0.48 → 1.0.49

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48186d1e5fd7bd80c806cf7b9480f8daea7cee15
4
- data.tar.gz: a7a13d8cd9d59f5d414afeb61b1b7315997a935e
3
+ metadata.gz: 619780ee5084625b9e5fdb2c3fce7dbbfb582a5a
4
+ data.tar.gz: 30c4d7fcba7d142b1d534c561b3de368b87f4e1d
5
5
  SHA512:
6
- metadata.gz: b41663956ce236b28a4c1c8d2f8c915146e51237334e053555bbc191488723e514959894bb1188e10f2934fd6b7f5d24f8efe2e1fd21f9aff3f6fcf97f127169
7
- data.tar.gz: df690f17bb17d4ba5397033340f3d58c8d933fe9e71cbd1fab5b8457f3ffb2f2457934521e94562c45662bb9eefeb106c7877c5252a4158c609d5d927294fad2
6
+ metadata.gz: cf68bb7c4e5b4ae5b8977e47ed9135cccf45a6431205224c937199f426974b8b4619cac70ebbc372fbc66d3cb0bb0ff12c0ae7f21c678c18950d4731c2c9769f
7
+ data.tar.gz: c52fd8a04e4ea4a51c5bdde748edef569e30047401d7d3348cb5c550915352037182d369a8deed06e82eed10c17922bbd95fa5f65a96dd3ef4e87feb8f8d231e
@@ -2,6 +2,8 @@
2
2
  position: absolute;
3
3
  z-index: 5;
4
4
  opacity: 0;
5
+ width: 100%;
6
+ cursor: pointer;
5
7
 
6
8
  & + label {
7
9
  display: inline;
@@ -26,15 +28,6 @@
26
28
  content: $checked;
27
29
  }
28
30
 
29
- // &:hover + label:before {
30
-
31
- // @if $hover-color != inherit {
32
- // color: $hover-color;
33
- // }
34
- // content: $hover;
35
- // outline: 2px auto $checked-color;
36
- // }
37
-
38
31
  &:focus + label:before {
39
32
  outline: 1px dotted $checked-color;
40
33
  content: $active;
@@ -70,8 +63,5 @@
70
63
  &:nth-child(#{$number-of-columns}n + #{$number-of-columns}) {
71
64
  margin-right: 0;
72
65
  }
73
- // &:nth-child(#{2 * $number-of-columns}n + 1):last-child, &:nth-child(#{2 * $number-of-columns}n + 2):last-child {
74
- // @include span-columns(12);
75
- // }
76
66
  }
77
67
 
@@ -77,9 +77,15 @@
77
77
  .remember {
78
78
  display: inline-block;
79
79
  vertical-align: middle;
80
+ width: 50%;
81
+ position: relative;
80
82
 
81
83
  label {
82
84
  display: inline;
85
+ &:before {
86
+ position: relative;
87
+ top: 3px;
88
+ }
83
89
  }
84
90
  }
85
91
 
@@ -61,17 +61,6 @@ module Tenon
61
61
  end
62
62
  end
63
63
 
64
- # form row helper for boolean published block
65
- def publish_box(f, object)
66
- if can?(:publish, object)
67
- content = [
68
- f.check_box(:published, class: 'tn-checkbox-right'),
69
- f.super_label(:published, 'Published?')
70
- ].join(' ').html_safe
71
- content_tag(:div, content, class: 'form-group inline')
72
- end
73
- end
74
-
75
64
  def i18n_language_nav(table)
76
65
  if Tenon.config.languages && I18nLookup.fields[:tables][table]
77
66
  render 'tenon/shared/i18n_language_nav'
@@ -23,7 +23,7 @@ module Tenon
23
23
  before_destroy :check_attached_items
24
24
 
25
25
  def self.with_type(type)
26
- if %w(images videos).include?(type)
26
+ if %w(images).include?(type)
27
27
  where('attachment_content_type LIKE ?', "%#{type.singularize}%")
28
28
  else
29
29
  documents
@@ -32,7 +32,6 @@ module Tenon
32
32
 
33
33
  def self.documents
34
34
  where('attachment_content_type NOT LIKE ?', '%image%')
35
- .where('attachment_content_type NOT LIKE ?', '%video%')
36
35
  end
37
36
 
38
37
  def is_image?
@@ -1,8 +1,14 @@
1
1
  module Tenon
2
2
  class User < ActiveRecord::Base
3
3
  # Include default devise modules. Others available are:
4
- # :token_authenticatable, :confirmable, :lockable and :timeoutable
5
- devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable
4
+ # :token_authenticatable, :confirmable, :lockable and
5
+ devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :timeoutable
6
+
7
+ # To use :timeoutable, extent the Tenon::User model and
8
+ # include the following method your preferred value:
9
+ # def timeout_in
10
+ # 30.days
11
+ # end
6
12
 
7
13
  # Roles
8
14
  has_many :role_assignments
@@ -16,6 +16,3 @@
16
16
 
17
17
  %li
18
18
  = link_to 'Documents', '?type=documents', class: 'record-list-updater'
19
-
20
- %li
21
- = link_to 'Videos', '?type=videos', class: 'record-list-updater'
data/lib/tenon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tenon
2
- VERSION = '1.0.48'
2
+ VERSION = '1.0.49'
3
3
  end
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
 
3
3
  describe Tenon::Asset do
4
4
  describe '.with_type' do
5
- %w(images videos).each do |type|
5
+ %w(images).each do |type|
6
6
  context "when type is #{type}" do
7
7
  it 'should receive the proper args' do
8
8
  args = ['attachment_content_type LIKE ?', "%#{type.singularize}%"]
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.48
4
+ version: 1.0.49
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-02 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: better_errors