refinerycms-page-downloads 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,57 @@
|
|
1
|
+
#page_downloads {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
width: 280px;
|
5
|
+
width: 100%;
|
6
|
+
li {
|
7
|
+
position: relative;
|
8
|
+
list-style: none;
|
9
|
+
float: left;
|
10
|
+
margin: 10px 20px 20px 0;
|
11
|
+
* {
|
12
|
+
cursor: move;
|
13
|
+
}
|
14
|
+
&.odd {
|
15
|
+
margin-right: 18px;
|
16
|
+
}
|
17
|
+
.image_actions {
|
18
|
+
background: white;
|
19
|
+
position: absolute;
|
20
|
+
padding: 3px;
|
21
|
+
left: 0;
|
22
|
+
top: 0;
|
23
|
+
width: 135px;
|
24
|
+
* {
|
25
|
+
cursor: pointer;
|
26
|
+
}
|
27
|
+
&.no_captions {
|
28
|
+
background: transparent;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
> li .image_actions img.caption {
|
33
|
+
position: absolute;
|
34
|
+
right: 3px;
|
35
|
+
top: 3px;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
#content {
|
40
|
+
ul.ui-sortable li {
|
41
|
+
border: 0;
|
42
|
+
background: none !important;
|
43
|
+
}
|
44
|
+
#page_downloads.ui-sortable li.placeholder {
|
45
|
+
width: 135px;
|
46
|
+
height: 135px;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
a#add_download_link {
|
51
|
+
margin-top: 0;
|
52
|
+
line-height: 29px;
|
53
|
+
padding-left: 20px;
|
54
|
+
display: inline;
|
55
|
+
border-bottom: 0;
|
56
|
+
background: image-url('refinery/icons/add.png') no-repeat 0px 6px;
|
57
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class='wym_skin_refinery page_part' id='page_download_picker'>
|
2
|
+
<div class='wym_area_top'>
|
3
|
+
<span class='clearfix label_inline_with_link'>
|
4
|
+
<%= link_to t('.add'),
|
5
|
+
refinery.new_downloads_admin_download_path(:page_id => @page.id, :dialog => true, :width => 950, :height => 510, :callback => "image_added"),
|
6
|
+
:id => "add_download_link" %>
|
7
|
+
</span>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<div class='wym_box field'>
|
11
|
+
<ul id='page_downloads' class='clearfix'>
|
12
|
+
<%= render :partial => '/refinery/admin/pages/tabs/download', :collection => @page.downloads %>
|
13
|
+
</ul>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<% content_for :stylesheets, stylesheet_link_tag('refinery/page-downloads') %>
|
19
|
+
<!--<% content_for :javascripts, javascript_include_tag('refinery/page-downloads') %>-->
|
metadata
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: refinerycms-page-downloads
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Stas Ladonenko
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-03-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: refinerycms-pages
|
16
|
+
requirement: &70120589425740 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.0.2
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70120589425740
|
25
|
+
description: Page Downloads Engine for Refinery CMS
|
26
|
+
email: stas.ladonenko@gmail.com
|
27
|
+
executables: []
|
28
|
+
extensions: []
|
29
|
+
extra_rdoc_files: []
|
30
|
+
files:
|
31
|
+
- app/assets/stylesheets/refinery/page-downloads.css.scss
|
32
|
+
- app/views/refinery/admin/pages/tabs/_download.html.erb
|
33
|
+
- app/views/refinery/admin/pages/tabs/_downloads.html.erb
|
34
|
+
homepage: http://github.com/stasl/refinerycms-page-downloads
|
35
|
+
licenses: []
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options: []
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
requirements: []
|
53
|
+
rubyforge_project:
|
54
|
+
rubygems_version: 1.8.10
|
55
|
+
signing_key:
|
56
|
+
specification_version: 3
|
57
|
+
summary: Page Downloads Engine for Refinery CMS
|
58
|
+
test_files: []
|