refinerycms-portfolio 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,15 +6,15 @@
6
6
  <%= error_messages_for :portfolio_entry %>
7
7
  <% form_for [:admin, @portfolio_entry] do |f| %>
8
8
  <div class='field'>
9
- <%= f.required_label :title %>
9
+ <%= f.required_label t('.title') %>
10
10
  <%= f.text_field :title, :class => "larger widest" %>
11
11
  </div>
12
12
  <div class='field images_field'>
13
13
  <span class='clearfix label_inline_with_link'>
14
- <%= label_tag('portfolio_entry_image_ids', 'Images') %>
15
- <%= link_to "#{refinery_icon_tag "add.png"} Add",
14
+ <%= label_tag('portfolio_entry_image_ids', t('.images')) %>
15
+ <%= link_to "#{refinery_icon_tag "add.png"} #{t('.add')}",
16
16
  insert_admin_images_url(:dialog => true, :width => 950, :height => 510, :callback => "image_added"),
17
- :name => "Add Another Image",
17
+ :name => t('.add_another_image'),
18
18
  :id => "add_image_link" %>
19
19
  </span>
20
20
  <ul id='portfolio_images' class='clearfix portfolio_entry_images'>
@@ -32,12 +32,12 @@
32
32
  </ul>
33
33
  </div>
34
34
  <div class='field clearfix'>
35
- <%= f.label :body, 'Content' %>
35
+ <%= f.label :body, t('.content') %>
36
36
  <%= f.text_area :body, :class => "wymeditor widest", :rows => 7 %>
37
37
  </div>
38
38
  <% if @portfolio_entries_for_parents_list.any? %>
39
39
  <div class='field'>
40
- <%= f.label :parent_id %>
40
+ <%= f.label t('.parent') %>
41
41
  <%= f.collection_select :parent_id, @portfolio_entries_for_parents_list, :id, :indented_title, :include_blank => true %>
42
42
  </div>
43
43
  <% end %>
@@ -10,15 +10,15 @@
10
10
  <span class='actions'>
11
11
  <% url = (::Refinery::Portfolio.multi_level? && list.parent ? portfolio_project_url(list.parent, list) : portfolio_url(list)) %>
12
12
  <%= link_to refinery_icon_tag('application_go.png'), url, :target => "_blank",
13
- :title => "View this entry live <br/><em>(opens in a new window)</em>" %>
13
+ :title => t('.view_live') %>
14
14
  <%= link_to refinery_icon_tag('application_edit.png'), edit_admin_portfolio_entry_path(list),
15
- :title => "Edit this entry" %>
15
+ :title => t('.edit_this_entry') %>
16
16
  <%= link_to refinery_icon_tag('arrow_up.png'),
17
17
  emancipate_admin_portfolio_entry_url(list),
18
- :title => "Move this entry up one level" if list.parent.present? %>
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 => "Remove this entry forever" %>
21
+ :title => t('.confirm_delete_entry_title') %>
22
22
  </span>
23
23
  <%=h list.title %>
24
24
  </div>
@@ -1,31 +1,30 @@
1
1
  <div id='actions'>
2
- <h2>Actions</h2>
2
+ <h2><%= t('.actions') %></h2>
3
3
  <ul>
4
4
  <li>
5
- <%= link_to "Create New Portfolio Entry", new_admin_portfolio_entry_url, :class => "add_icon" %>
5
+ <%= link_to t('.create_new_portfolio_entry'), new_admin_portfolio_entry_url, :class => "add_icon" %>
6
6
  </li>
7
7
  <% if PortfolioEntry.count > 1 %>
8
8
  <li>
9
- <%= link_to "Reorder Portfolio", "", :id => "reorder_action", :class => "reorder_icon" %>
10
- <%= link_to "Done Reordering Portfolio", "", :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %>
9
+ <%= link_to t('.reorder_portfolio'), "", :id => "reorder_action", :class => "reorder_icon" %>
10
+ <%= link_to t('.reorder_portfolio_done'), "", :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %>
11
11
  </li>
12
12
  <% end %>
13
13
  </ul>
14
14
  </div>
15
15
  <div id='records' class='tree'>
16
16
  <% if @portfolio_entries.any? %>
17
- <h2>Portfolio</h2>
17
+ <h2><%= t('.portfolio') %></h2>
18
18
  <ul id='sortable_list'>
19
19
  <%= render :partial => 'sortable_list' %>
20
20
  </ul>
21
21
  <% else %>
22
22
  <p>
23
23
  <strong>
24
- There are no portfolio entries yet.
25
- Click "Create New Portfolio Entry" to add your first portfolio entries.
24
+ <%=t('.no_portfolio_entries_yet')%>
26
25
  </strong>
27
26
  </p>
28
27
  <% end %>
29
28
  </div>
30
29
  <%= render :partial => "/shared/admin/make_sortable",
31
- :locals => { :tree => ::Refinery::Portfolio.multi_level? } if PortfolioEntry.count > 1 %>
30
+ :locals => { :tree => ::Refinery::Portfolio.multi_level? } if PortfolioEntry.count > 1 %>
@@ -0,0 +1,22 @@
1
+ en:
2
+ admin:
3
+ portfolio_entries:
4
+ index:
5
+ actions: Actions
6
+ create_new_portfolio_entry: "Create New Portfolio Entry"
7
+ reorder_portfolio: "Reorder Portfolio"
8
+ reorder_portfolio_done: "Done Reordering Portfolio"
9
+ portfolio: Portfolio
10
+ no_portfolio_entries_yet: 'There are no portfolio entries yet. Click "Create New Portfolio Entry" to add your first portfolio entries.'
11
+ list:
12
+ view_live: "View this entry live <br/><em>(opens in a new window)</em>"
13
+ edit_this_entry: "Edit this entry"
14
+ move_this_entry_up: "Move this entry up one level"
15
+ confirm_delete_entry_title: "Remove this entry forever"
16
+ form:
17
+ title: Title
18
+ images: Images
19
+ add: Add
20
+ add_another_image: "Add Another Image"
21
+ content: Content
22
+ parent: Parent
@@ -0,0 +1,25 @@
1
+ sl:
2
+ plugins:
3
+ portfolio:
4
+ title: Portfelja
5
+ admin:
6
+ portfolio_entries:
7
+ index:
8
+ actions: Dejavnosti
9
+ create_new_portfolio_entry: "Ustvari Novo Portfelje"
10
+ reorder_portfolio: "Prerazporedi Portfelja"
11
+ reorder_portfolio_done: "Končaj s prerazporejanjem Portfelja"
12
+ portfolio: Portfelja
13
+ no_portfolio_entries_yet: 'Trenutno še ni nobenega portfelja. Kliknite "Ustvari Novo Portfelje" če želite dodati prvo portfelje.'
14
+ list:
15
+ view_live: Poglej si ta zapis v živo <br/><em>(odpre se v novem oknu)</em>
16
+ edit_this_entry: "Uredi zapis"
17
+ move_this_entry_up: "Premakni zapis en nivo višje"
18
+ confirm_delete_entry_title: "Odstrani zapis"
19
+ form:
20
+ title: Naslov
21
+ images: Slike
22
+ add: Dodaj
23
+ add_another_image: Dodaj sliko
24
+ content: Vsebina
25
+ parent: Izberi Starša
@@ -22,7 +22,7 @@ class <%= migration_name %> < ActiveRecord::Migration
22
22
  add_index :portfolio_entries, :parent_id
23
23
 
24
24
  User.find(:all).each do |user|
25
- user.plugins.create(:title => "Portfolio", :position => (user.plugins.maximum(:position) || -1) +1)
25
+ user.plugins.create(:name => "Portfolio", :position => (user.plugins.maximum(:position) || -1) +1)
26
26
  end
27
27
 
28
28
  page = Page.create(:title => "Portfolio", :link_url => "/portfolio", :menu_match => "\/portfolio(|\/.+?)", :deletable => false, :position => ((Page.maximum(:position, :conditions => {:parent_id => nil}) || -1)+1))
data/lib/gemspec.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require File.expand_path('../portfolio.rb', __FILE__)
3
- version = Refinery::Portfolio::Version::STRING
3
+ version = Refinery::Portfolio.version
4
4
  raise "Could not get version so gemspec can not be built" if version.nil?
5
5
  files = %w( readme.md license.md )
6
6
  %w(app config generators lib public rails test vendor).each do |dir|
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.summary = %q{Ruby on Rails portfolio plugin for RefineryCMS.}
17
17
  s.email = %q{info@refinerycms.com}
18
18
  s.homepage = %q{http://refinerycms.com}
19
- s.authors = %w(Resolve\\ Digital Philip\\ Arndt)
19
+ s.authors = %w(Resolve\\ Digital)
20
20
  s.require_paths = %w(lib)
21
21
 
22
22
  s.files = [
@@ -28,11 +28,4 @@ Gem::Specification.new do |s|
28
28
  end
29
29
  EOF
30
30
 
31
- if (save = ARGV.delete('-s'))
32
- if File.exist?(file = File.expand_path("../../refinerycms-portfolio.gemspec", __FILE__))
33
- File.delete(file)
34
- end
35
- File.open(file, 'w') { |f| f.puts gemspec }
36
- else
37
- puts gemspec
38
- end
31
+ File.open(File.expand_path("../../refinerycms-portfolio.gemspec", __FILE__), 'w').puts(gemspec)
data/lib/portfolio.rb CHANGED
@@ -1,12 +1,14 @@
1
1
  module Refinery
2
2
  module Portfolio
3
- class Version
4
- MAJOR = 0
5
- MINOR = 9
6
- TINY = 6
7
- BUILD = nil
8
3
 
9
- STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
4
+ def self.version
5
+ ::Refinery::Portfolio::Version.to_s
6
+ end
7
+
8
+ class Version
9
+ def self.to_s
10
+ %q{0.9.7}
11
+ end
10
12
  end
11
13
 
12
14
  class << self
@@ -8,8 +8,8 @@ reset_functionality = function() {
8
8
  , 'items': 'li'
9
9
  });
10
10
 
11
- $('#content portfolio_images li:not(.empty)').each(function(index, li) {
12
- $(li).mouseover(function(e){
11
+ $('#content #portfolio_images li:not(.empty)').each(function(index, li) {
12
+ $(this).hover(function(e){
13
13
  if ((image_actions = $(this).find('.image_actions')).length == 0) {
14
14
  image_actions = $("<div class='image_actions'></div>");
15
15
  img_delete = $("<img src='/images/refinery/icons/delete.png' width='16' height='16' />");
@@ -22,9 +22,7 @@ reset_functionality = function() {
22
22
  }
23
23
 
24
24
  image_actions.show();
25
- });
26
-
27
- $(li).mouseout(function(e) {
25
+ }, function(e) {
28
26
  $(this).find('.image_actions').hide();
29
27
  });
30
28
  });
metadata CHANGED
@@ -1,22 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-portfolio
3
3
  version: !ruby/object:Gem::Version
4
- hash: 55
4
+ hash: 53
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 6
10
- version: 0.9.6
9
+ - 7
10
+ version: 0.9.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Resolve Digital
14
- - Philip Arndt
15
14
  autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2010-06-30 00:00:00 +12:00
18
+ date: 2010-07-09 00:00:00 +12:00
20
19
  default_executable:
21
20
  dependencies: []
22
21
 
@@ -44,7 +43,8 @@ files:
44
43
  - app/views/portfolio/_main_image.html.erb
45
44
  - app/views/portfolio/empty.html.erb
46
45
  - app/views/portfolio/show.html.erb
47
- - config/locale/en.yml
46
+ - config/locales/en.yml
47
+ - config/locales/sl.yml
48
48
  - config/routes.rb
49
49
  - generators/portfolio/portfolio_generator.rb
50
50
  - generators/portfolio/templates/migration.rb
data/config/locale/en.yml DELETED
File without changes