tenon 1.0.41 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/tenon/features/asset_cropping.js.coffee +1 -1
- data/app/assets/javascripts/tenon/templates/assets/asset_field.jst.eco +3 -3
- data/app/assets/javascripts/tenon/templates/assets/asset_row.jst.eco +1 -1
- data/app/assets/javascripts/tenon/tenon_manifest.js +1 -0
- data/app/models/ability.rb +1 -1
- data/config/routes.rb +1 -1
- data/lib/tenon/engine.rb +1 -0
- data/lib/tenon/version.rb +1 -1
- data/spec/controllers/tenon/assets_controller_spec.rb +3 -3
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5747889adb3a9b011fe501c2ef049ff321191e5b
|
4
|
+
data.tar.gz: c92f02e7db14a5bac99a2e6ad61c16936a470142
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da50312b33ddb8ee6ebd3c92f46dc7fb6383fa94f008beae1a91f09e0db44b504a9a110105515773c01b82de5206cab986ba3b8e83775647adca57b57787a646
|
7
|
+
data.tar.gz: c87d3304040a3d9ecab3c54619c967d80648d7ee383064a063fcf3ba21bc4d0fd37a17ee4a7ac49b1f67158052d6bfa46887baf8e92ac362e7f5c7efd201643a
|
@@ -13,7 +13,7 @@ class Tenon.features.AssetCropping
|
|
13
13
|
_loadCrop: (e) =>
|
14
14
|
e.preventDefault()
|
15
15
|
@$link = $(e.currentTarget)
|
16
|
-
url =
|
16
|
+
url = Routes.tenon_crop_asset_path(@$link.data('asset-id'))
|
17
17
|
$.get(url, {format: 'html'}, @_startCrop, 'html')
|
18
18
|
|
19
19
|
_cancelCrop: (e) ->
|
@@ -3,15 +3,15 @@
|
|
3
3
|
<div class="record-details">
|
4
4
|
<div class="record-title big">
|
5
5
|
<strong>
|
6
|
-
<a href="
|
6
|
+
<a href="<%= Routes.tenon_edit_asset_path(@asset.id) %>"><%= @asset.display_name %></a>
|
7
7
|
</strong>
|
8
8
|
<div class="explanation">
|
9
9
|
<%= @asset.human_size %>
|
10
10
|
</div>
|
11
11
|
</div>
|
12
12
|
<div class="record-actions">
|
13
|
-
<a data-tooltip="Edit" href="
|
14
|
-
<a data-confirm="Are you sure? There is no undo for this!" data-method="delete" data-tooltip="Delete" href="
|
13
|
+
<a data-tooltip="Edit" href="<%= Routes.tenon_edit_asset_path(@asset.id) %>" title="Edit"><i class="fa fa-pencil"></i></a>
|
14
|
+
<a data-confirm="Are you sure? There is no undo for this!" data-method="delete" data-tooltip="Delete" href="<%= Routes.tenon_asset_path(@asset.id) %>" rel="nofollow" title="Delete"><i class="fa fa-trash-o"></i></a>
|
15
15
|
</div>
|
16
16
|
</div>
|
17
17
|
</li>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="thumbnail"><%- @asset.icon %></div>
|
3
3
|
<div class="record-details">
|
4
4
|
<div class="record-title">
|
5
|
-
<a href="
|
5
|
+
<a href="<%= Routes.tenon_edit_asset_path(@asset.id) %>" data-modal-remote="true" data-modal-title="Edit Asset"><%= @asset.display_name %></a>
|
6
6
|
</div>
|
7
7
|
|
8
8
|
<div class="record-fields">
|
data/app/models/ability.rb
CHANGED
@@ -18,7 +18,7 @@ class Ability
|
|
18
18
|
end
|
19
19
|
can :create, Tenon::User
|
20
20
|
elsif u.is_contributor?
|
21
|
-
can([:update, :edit], Tenon::User) { |user| user == u }
|
21
|
+
can([:update, :edit, :publish], Tenon::User) { |user| user == u }
|
22
22
|
can :read, :all
|
23
23
|
can :create, Tenon::Page
|
24
24
|
can([:update, :destroy, :edit], Tenon::Page) do |item|
|
data/config/routes.rb
CHANGED
@@ -3,7 +3,7 @@ Tenon::Engine.routes.draw do
|
|
3
3
|
|
4
4
|
resources :item_versions, only: [:create, :show, :new, :index]
|
5
5
|
|
6
|
-
resources :assets, except: [:show] do
|
6
|
+
resources :assets, path: 'asset-library', except: [:show] do
|
7
7
|
post 'encode_notify', :on => :collection
|
8
8
|
get :crop, :on => :member
|
9
9
|
end
|
data/lib/tenon/engine.rb
CHANGED
data/lib/tenon/version.rb
CHANGED
@@ -15,7 +15,7 @@ describe Tenon::AssetsController do
|
|
15
15
|
|
16
16
|
before do
|
17
17
|
controller.stub(:current_user) { user }
|
18
|
-
controller.stub(:polymorphic_index_path) { '/tenon/
|
18
|
+
controller.stub(:polymorphic_index_path) { '/tenon/asset-library' }
|
19
19
|
end
|
20
20
|
|
21
21
|
describe 'GET index.html' do
|
@@ -134,9 +134,9 @@ describe Tenon::AssetsController do
|
|
134
134
|
expect(controller.flash[:notice]).not_to be_nil
|
135
135
|
end
|
136
136
|
|
137
|
-
it "should redirect to '/tenon/
|
137
|
+
it "should redirect to '/tenon/asset-library'" do
|
138
138
|
post :create, asset: params
|
139
|
-
expect(response).to redirect_to '/tenon/
|
139
|
+
expect(response).to redirect_to '/tenon/asset-library'
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
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.
|
4
|
+
version: 1.0.42
|
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-10-
|
11
|
+
date: 2014-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: better_errors
|
@@ -528,6 +528,20 @@ dependencies:
|
|
528
528
|
- - '='
|
529
529
|
- !ruby/object:Gem::Version
|
530
530
|
version: 4.0.5
|
531
|
+
- !ruby/object:Gem::Dependency
|
532
|
+
name: js-routes
|
533
|
+
requirement: !ruby/object:Gem::Requirement
|
534
|
+
requirements:
|
535
|
+
- - '='
|
536
|
+
- !ruby/object:Gem::Version
|
537
|
+
version: 0.9.9
|
538
|
+
type: :runtime
|
539
|
+
prerelease: false
|
540
|
+
version_requirements: !ruby/object:Gem::Requirement
|
541
|
+
requirements:
|
542
|
+
- - '='
|
543
|
+
- !ruby/object:Gem::Version
|
544
|
+
version: 0.9.9
|
531
545
|
- !ruby/object:Gem::Dependency
|
532
546
|
name: later_dude
|
533
547
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1475,7 +1489,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1475
1489
|
version: '0'
|
1476
1490
|
requirements: []
|
1477
1491
|
rubyforge_project:
|
1478
|
-
rubygems_version: 2.
|
1492
|
+
rubygems_version: 2.4.2
|
1479
1493
|
signing_key:
|
1480
1494
|
specification_version: 4
|
1481
1495
|
summary: A highly flexible mountable Rails CMS built for rapid application development.
|