refinerycms-portfolio 0.9.8.rc1 → 0.9.8.rc2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
|
|
1
1
|
class PortfolioEntry < ActiveRecord::Base
|
2
2
|
|
3
|
-
|
3
|
+
validates :title, :presence => true
|
4
4
|
|
5
5
|
# call to gems included in refinery.
|
6
6
|
has_friendly_id :title, :use_slug => true
|
@@ -17,8 +17,4 @@ class PortfolioEntry < ActiveRecord::Base
|
|
17
17
|
}.compact
|
18
18
|
end
|
19
19
|
|
20
|
-
def indented_title
|
21
|
-
"#{"--" * self.ancestors.size} #{self.title}".chomp
|
22
|
-
end
|
23
|
-
|
24
20
|
end
|
@@ -18,7 +18,9 @@
|
|
18
18
|
:title => t('.move_this_entry_up') if list.parent.present? %>
|
19
19
|
<%= link_to refinery_icon_tag('delete.png'), admin_portfolio_entry_path(list),
|
20
20
|
:class => "cancel confirm-delete",
|
21
|
-
:title => t('.confirm_delete_entry_title')
|
21
|
+
:title => t('.confirm_delete_entry_title'),
|
22
|
+
:'data-confirm' => t('shared.admin.delete.message', :title => list.title),
|
23
|
+
:'data-method' => "delete" %>
|
22
24
|
</span>
|
23
25
|
<%=h list.title %>
|
24
26
|
</div>
|
data/config/locales/en.yml
CHANGED
@@ -2,7 +2,7 @@ en:
|
|
2
2
|
plugins:
|
3
3
|
portfolio:
|
4
4
|
title: Portfolio
|
5
|
-
description: Manage a portfolio within
|
5
|
+
description: Manage a portfolio within Refinery CMS
|
6
6
|
admin:
|
7
7
|
portfolio:
|
8
8
|
index:
|
@@ -23,4 +23,4 @@ en:
|
|
23
23
|
add: Add
|
24
24
|
add_another_image: "Add Another Image"
|
25
25
|
content: Content
|
26
|
-
parent: Parent
|
26
|
+
parent: Parent
|
@@ -0,0 +1,27 @@
|
|
1
|
+
lv:
|
2
|
+
plugins:
|
3
|
+
portfolio:
|
4
|
+
title: Portfolio
|
5
|
+
description: Pārvaldīt portfeļa izmanto Refinery CMS
|
6
|
+
admin:
|
7
|
+
portfolio:
|
8
|
+
index:
|
9
|
+
actions: Darbības
|
10
|
+
create_new_portfolio_entry: Izveidot Jaunu Portfolio Ierakstu
|
11
|
+
reorder_portfolio: Pārkārtot Portfolio
|
12
|
+
reorder_portfolio_done: Pabeigt Portfolio Pārkārtošanu
|
13
|
+
portfolio: Portfolio
|
14
|
+
no_portfolio_entries_yet: Vēl nav neviena portfolio ieraksta. Spied "Izveidot Jaunu Portfolio Ierakstu", lai pievienotu pirmo ierakstu.
|
15
|
+
list:
|
16
|
+
view_live: Apskatīt šo ieraksu <br/><em>(tiks atvērts jaunā logā)</em>
|
17
|
+
edit_this_entry: Labot šo ierakstu
|
18
|
+
move_this_entry_up: Pārvietot šo ierkastu vienu līmeni augstāk
|
19
|
+
confirm_delete_entry_title: Dzēst šo ierakstu
|
20
|
+
form:
|
21
|
+
title: Nosaukums
|
22
|
+
images: Bildes
|
23
|
+
add: Pievienot
|
24
|
+
add_another_image: Pievienot Bildi
|
25
|
+
content: Saturs
|
26
|
+
# TODO: find good translation for this word
|
27
|
+
parent: Parent
|
data/lib/portfolio/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-portfolio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 977940519
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
9
|
- 8
|
10
|
-
-
|
11
|
-
version: 0.9.8.
|
10
|
+
- rc2
|
11
|
+
version: 0.9.8.rc2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Resolve Digital
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- app/views/portfolio/empty.html.erb
|
61
61
|
- app/views/portfolio/show.html.erb
|
62
62
|
- config/locales/en.yml
|
63
|
+
- config/locales/lv.yml
|
63
64
|
- config/locales/pt-BR.yml
|
64
65
|
- config/locales/sl.yml
|
65
66
|
- config/routes.rb
|