refinerycms-project_portfolios 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,86 +1,83 @@
|
|
1
1
|
<%= form_for [:admin, @project_portfolio] do |f| -%>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
<div class='field'>
|
2
|
+
<%= render :partial => "/shared/admin/error_messages", :locals => {
|
3
|
+
:object => @project_portfolio,
|
4
|
+
:include_object_name => true
|
5
|
+
} %>
|
6
|
+
<div class='field'>
|
8
7
|
<%= f.label :project_name -%>
|
9
8
|
<%= f.text_field :project_name, :class => 'larger widest' -%>
|
10
|
-
|
11
|
-
|
12
|
-
<div class='field'>
|
9
|
+
</div>
|
10
|
+
<div class='field'>
|
13
11
|
<%= f.label :title -%>
|
14
12
|
<%= f.text_field :title -%>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
13
|
+
</div>
|
14
|
+
<div class='block'>
|
15
|
+
<div class='field'>
|
16
|
+
<%= f.label :thumbnail -%>
|
17
|
+
<%= render :partial => "/shared/admin/image_picker", :locals => {
|
20
18
|
:f => f,
|
21
19
|
:field => :thumbnail_id,
|
22
20
|
:image => @project_portfolio.thumbnail,
|
23
21
|
:toggle_image_display => false
|
24
|
-
|
25
|
-
|
26
|
-
OR
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
22
|
+
} %>
|
23
|
+
</div>
|
24
|
+
OR
|
25
|
+
<div class='field'>
|
26
|
+
<%= f.label :thumbnail_url -%>
|
27
|
+
<%= f.text_field :thumbnail_url -%>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class='block'>
|
31
|
+
<div class='field'>
|
32
|
+
<%= f.label :image -%>
|
33
|
+
<%= render :partial => "/shared/admin/image_picker", :locals => {
|
35
34
|
:f => f,
|
36
35
|
:field => :image_id,
|
37
36
|
:image => @project_portfolio.image,
|
38
37
|
:toggle_image_display => false
|
39
|
-
|
40
|
-
|
41
|
-
OR
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
38
|
+
} %>
|
39
|
+
</div>
|
40
|
+
OR
|
41
|
+
<div class='field'>
|
42
|
+
<%= f.label :image_url -%>
|
43
|
+
<%= f.text_field :image_url -%>
|
44
|
+
</div>
|
45
|
+
</div>
|
46
|
+
<div class='field'>
|
48
47
|
<%= f.label :tag_list -%>
|
49
48
|
<%= f.text_field :tag_list -%>
|
50
|
-
|
51
|
-
|
52
|
-
<div class='field'>
|
49
|
+
</div>
|
50
|
+
<div class='field'>
|
53
51
|
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
</div>
|
52
|
+
<ul id='page_parts'>
|
53
|
+
<% [:description].each_with_index do |part, part_index| %>
|
54
|
+
<li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
|
55
|
+
<%= link_to part.to_s.titleize, "##{part}" %>
|
56
|
+
</li>
|
57
|
+
<% end %>
|
58
|
+
</ul>
|
59
|
+
<div id='page_part_editors'>
|
60
|
+
<% [:description].each do |part| %>
|
61
|
+
<div class='page_part' id='<%= part %>'>
|
62
|
+
<%= f.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
|
63
|
+
</div>
|
64
|
+
<% end %>
|
65
|
+
</div>
|
69
66
|
</div>
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
} %>
|
67
|
+
</div>
|
68
|
+
<%= render :partial => "/shared/admin/form_actions",
|
69
|
+
:locals => {
|
70
|
+
:f => f,
|
71
|
+
:continue_editing => false,
|
72
|
+
:delete_title => t('delete', :scope => 'admin.project_portfolios.project_portfolio'),
|
73
|
+
:delete_confirmation => t('message', :scope => 'shared.admin.delete', :title => @project_portfolio.project_name)
|
74
|
+
} %>
|
79
75
|
<% end -%>
|
80
76
|
<% content_for :javascripts do %>
|
81
|
-
|
82
|
-
$(document).ready(function(){
|
83
|
-
|
77
|
+
<script>
|
78
|
+
$(document).ready(function() {
|
79
|
+
page_options.init(false, '', '');
|
84
80
|
});
|
85
|
-
|
86
|
-
|
81
|
+
|
82
|
+
</script>
|
83
|
+
<% end %>
|
@@ -2,42 +2,8 @@
|
|
2
2
|
<%= javascript_include_tag 'jquery.quicksand.js' %>
|
3
3
|
<%= javascript_include_tag 'jquery.easing.js' %>
|
4
4
|
<%= javascript_include_tag 'jquery.bpopup.js' %>
|
5
|
+
<%= javascript_include_tag 'portfolio.js' %>
|
5
6
|
<link href="stylesheets/portfolio.css" media="screen" rel="stylesheet" type="text/css" />
|
6
|
-
<script type="text/javascript">
|
7
|
-
function attatch_all_popup() {
|
8
|
-
$('#portfolios a').click(function() {
|
9
|
-
var element_id = $(this).attr("popup-id");
|
10
|
-
$('#popup_content'+ element_id).openPopup({amsl:50, fadeSpeed:500, opacity:0.8});
|
11
|
-
return false;
|
12
|
-
});
|
13
|
-
}
|
14
|
-
|
15
|
-
$(document).ready(function(){
|
16
|
-
attatch_all_popup();
|
17
|
-
});
|
18
|
-
|
19
|
-
$(function() {
|
20
|
-
var projects = $('#portfolios');
|
21
|
-
var projectsClone = projects.clone();
|
22
|
-
$('#tags a').click(function() {
|
23
|
-
$('#tags label').removeClass("active");
|
24
|
-
var tag = $(this).html();
|
25
|
-
$(this).parent().addClass("active");
|
26
|
-
if(tag == 'all') {
|
27
|
-
var filteredProjects = projectsClone.find('li');
|
28
|
-
} else {
|
29
|
-
var filteredProjects = projectsClone.find('li[data-type*=' + tag + ']');
|
30
|
-
}
|
31
|
-
projects.quicksand(filteredProjects, {
|
32
|
-
duration : 800,
|
33
|
-
easing : 'easeInOutQuad'
|
34
|
-
}, function() { // when done shuffling
|
35
|
-
attatch_all_popup();
|
36
|
-
});
|
37
|
-
});
|
38
|
-
});
|
39
|
-
|
40
|
-
</script>
|
41
7
|
<% end %>
|
42
8
|
|
43
9
|
<% content_for :body_content_left do %>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/************************************************************************
|
2
|
+
* @name: A.K.M. Ashrafuzzaman
|
3
|
+
* @author: A.K.M. Ashrafuzzaman
|
4
|
+
************************************************************************/
|
5
|
+
function attatch_all_popup() {
|
6
|
+
$('#portfolios a').click(function() {
|
7
|
+
var element_id = $(this).attr("popup-id");
|
8
|
+
$('#popup_content' + element_id).openPopup({
|
9
|
+
amsl : 50,
|
10
|
+
fadeSpeed : 500,
|
11
|
+
opacity : 0.8
|
12
|
+
});
|
13
|
+
return false;
|
14
|
+
});
|
15
|
+
}
|
16
|
+
|
17
|
+
$(document).ready(function() {
|
18
|
+
attatch_all_popup();
|
19
|
+
});
|
20
|
+
|
21
|
+
$(function() {
|
22
|
+
var projects = $('#portfolios');
|
23
|
+
var projectsClone = projects.clone();
|
24
|
+
$('#tags a').click(function() {
|
25
|
+
$('#tags label').removeClass("active");
|
26
|
+
var tag = $(this).html();
|
27
|
+
$(this).parent().addClass("active");
|
28
|
+
if(tag == 'all') {
|
29
|
+
var filteredProjects = projectsClone.find('li');
|
30
|
+
} else {
|
31
|
+
var filteredProjects = projectsClone.find('li[data-type*=' + tag + ']');
|
32
|
+
}
|
33
|
+
projects.quicksand(filteredProjects, {
|
34
|
+
duration : 800,
|
35
|
+
easing : 'easeInOutQuad'
|
36
|
+
}, function() {// when done shuffling
|
37
|
+
attatch_all_popup();
|
38
|
+
});
|
39
|
+
});
|
40
|
+
});
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-project_portfolios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- A.K.M. Ashrafuzzaman
|
@@ -23,12 +23,14 @@ dependencies:
|
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
24
|
none: false
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 11
|
29
29
|
segments:
|
30
|
+
- 2
|
31
|
+
- 1
|
30
32
|
- 0
|
31
|
-
version:
|
33
|
+
version: 2.1.0
|
32
34
|
type: :runtime
|
33
35
|
version_requirements: *id001
|
34
36
|
- !ruby/object:Gem::Dependency
|
@@ -87,6 +89,7 @@ files:
|
|
87
89
|
- public/javascripts/jquery.bpopup.js
|
88
90
|
- public/javascripts/jquery.easing.js
|
89
91
|
- public/javascripts/jquery.quicksand.js
|
92
|
+
- public/javascripts/portfolio.js
|
90
93
|
- public/stylesheets/portfolio.css
|
91
94
|
homepage: http://www.ashrafuzzaman.com
|
92
95
|
licenses: []
|