adminpanel 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -3
- data/Gemfile +7 -7
- data/Rakefile +20 -4
- data/adminpanel.gemspec +7 -7
- data/app/controllers/adminpanel/categories_controller.rb +1 -5
- data/app/controllers/adminpanel/galleries_controller.rb +13 -18
- data/app/controllers/concerns/adminpanel/facebook_actions.rb +26 -18
- data/app/controllers/concerns/adminpanel/rest_actions.rb +8 -3
- data/app/helpers/adminpanel/router_helper.rb +4 -0
- data/app/models/adminpanel/section.rb +4 -4
- data/app/views/adminpanel/sessions/new.html.erb +1 -1
- data/app/views/layouts/_top_bar.html.erb +24 -2
- data/app/views/layouts/admin-login.html.erb +1 -2
- data/app/views/shared/fb_choose_page.html.erb +3 -3
- data/app/views/shared/new.html.erb +24 -23
- data/config/locales/es.yml +8 -3
- data/config/routes.rb +8 -3
- data/lib/adminpanel/version.rb +1 -1
- data/lib/generators/adminpanel/gallery/templates/gallery_migration.rb +1 -1
- data/lib/generators/adminpanel/resource/resource_generator.rb +2 -2
- data/{spec → test}/dummy/.gitignore +0 -1
- data/{spec → test}/dummy/README.rdoc +0 -0
- data/{spec → test}/dummy/Rakefile +0 -0
- data/{spec → test}/dummy/app/assets/images/hipster.jpg +0 -0
- data/{spec → test}/dummy/app/assets/images/test.jpg +0 -0
- data/{spec → test}/dummy/app/assets/javascripts/application.js +0 -0
- data/{spec → test}/dummy/app/assets/stylesheets/application.css +0 -0
- data/{spec → test}/dummy/app/controllers/adminpanel/.gitkeep +0 -0
- data/{spec → test}/dummy/app/controllers/adminpanel/mugs_controller.rb +0 -0
- data/{spec → test}/dummy/app/controllers/adminpanel/products_controller.rb +0 -0
- data/{spec → test}/dummy/app/controllers/adminpanel/salesmen_controller.rb +0 -0
- data/{spec → test}/dummy/app/controllers/application_controller.rb +0 -0
- data/{spec → test}/dummy/app/helpers/application_helper.rb +0 -0
- data/{spec → test}/dummy/app/mailers/.gitkeep +0 -0
- data/{spec → test}/dummy/app/models/.gitkeep +0 -0
- data/{spec → test}/dummy/app/models/ability.rb +0 -0
- data/{spec → test}/dummy/app/models/adminpanel/categorization.rb +0 -0
- data/{spec → test}/dummy/app/models/adminpanel/category.rb +0 -0
- data/{spec → test}/dummy/app/models/adminpanel/mug.rb +0 -0
- data/{spec → test}/dummy/app/models/adminpanel/photo.rb +0 -0
- data/{spec → test}/dummy/app/models/adminpanel/product.rb +0 -0
- data/{spec → test}/dummy/app/models/adminpanel/salesman.rb +0 -0
- data/{spec → test}/dummy/app/uploader/adminpanel/photo_uploader.rb +0 -0
- data/{spec → test}/dummy/app/uploader/adminpanel/section_uploader.rb +0 -0
- data/{spec → test}/dummy/app/views/layouts/application.html.erb +0 -0
- data/{spec → test}/dummy/config.ru +0 -0
- data/{spec → test}/dummy/config/application.rb +0 -0
- data/{spec → test}/dummy/config/boot.rb +0 -0
- data/{spec/dummy/config/carrierwve.rb → test/dummy/config/carrierwave.rb} +1 -1
- data/{spec → test}/dummy/config/database.yml +0 -0
- data/{spec → test}/dummy/config/environment.rb +0 -0
- data/{spec → test}/dummy/config/environments/development.rb +0 -0
- data/{spec → test}/dummy/config/environments/production.rb +0 -0
- data/{spec → test}/dummy/config/environments/test.rb +2 -2
- data/{spec → test}/dummy/config/initializers/adminpanel_setup.rb +0 -0
- data/{spec → test}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{spec → test}/dummy/config/initializers/mime_types.rb +0 -0
- data/{spec → test}/dummy/config/initializers/session_store.rb +0 -0
- data/{spec → test}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{spec → test}/dummy/config/locales/.keep +0 -0
- data/{spec → test}/dummy/config/routes.rb +0 -0
- data/test/dummy/config/secrets.yml +2 -0
- data/{spec → test}/dummy/db/schema.rb +0 -0
- data/{spec → test}/dummy/lib/assets/.gitkeep +0 -0
- data/{spec → test}/dummy/public/404.html +0 -0
- data/{spec → test}/dummy/public/422.html +0 -0
- data/{spec → test}/dummy/public/500.html +0 -0
- data/{spec → test}/dummy/public/favicon.ico +0 -0
- data/{spec → test}/dummy/script/rails +0 -0
- data/test/dummy/test/fixtures/adminpanel/galleries.yml +15 -0
- data/test/dummy/test/fixtures/adminpanel/groups.yml +4 -0
- data/test/dummy/test/fixtures/adminpanel/users.yml +8 -0
- data/test/features/session/login_test.rb +33 -0
- data/test/features/shared/new_test.rb +39 -0
- data/test/models/adminpanel/gallery_test.rb +37 -0
- data/test/models/adminpanel/section_test.rb +53 -0
- data/test/models/adminpanel/user_test.rb +51 -0
- data/test/test_helper.rb +71 -0
- data/test/unit/gallery_unit_test.rb +21 -0
- metadata +212 -246
- data/spec/features/authentication_pages_spec.rb +0 -45
- data/spec/models/gallery_spec.rb +0 -24
- data/spec/models/section_spec.rb +0 -61
- data/spec/models/user_spec.rb +0 -94
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8786bc62300628c7d87037f3e529408e44b4dd0
|
4
|
+
data.tar.gz: dd2c11295e1b0b9d39f26d72697e05e7b8189a58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c8a839e94618e65d911c6f8e4bd9667138660e46c78a746a670d54404f766d387d9ec13ff0e60d912f150fdbe2377e67cfd6bceead9395cd79f76994c83a312
|
7
|
+
data.tar.gz: 1b2e8b33ebef3b4b535ca73df2c8067e02c0a42de5d919f55d4510a85d521e37abe657e097424434a1a400afc0dddfe32770e14520da84eccc127636cb66c9d9
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -21,13 +21,13 @@ group :assets do
|
|
21
21
|
gem 'sass-rails', '>= 4.0.3', require: true
|
22
22
|
end
|
23
23
|
|
24
|
+
gem 'minitest'
|
24
25
|
group :development, :test do
|
25
|
-
gem 'selenium-webdriver', '2.42.0'
|
26
|
-
gem 'capybara-webkit', '1.1.1'
|
27
|
-
gem 'factory_girl_rails', '~> 4.4.1'
|
28
|
-
gem 'rspec', '~> 2.14.1'
|
29
|
-
gem 'rspec-rails', '~> 2.14.2'
|
30
26
|
gem 'sqlite3', '>= 1.3.9', '<= 2.0.0', :platform => [:ruby, :mswin, :mingw]
|
31
|
-
gem '
|
32
|
-
gem '
|
27
|
+
gem 'minitest-emoji'
|
28
|
+
gem 'minitest-capybara'
|
29
|
+
gem 'mocha'
|
30
|
+
gem 'poltergeist'
|
31
|
+
gem 'parallel_tests'
|
32
|
+
# gem 'minitest-debugger'
|
33
33
|
end
|
data/Rakefile
CHANGED
@@ -1,4 +1,20 @@
|
|
1
|
-
require
|
2
|
-
require '
|
3
|
-
|
4
|
-
task :default => :
|
1
|
+
require 'rake/testtask'
|
2
|
+
require 'rubygems/package_task'
|
3
|
+
|
4
|
+
task :default => :test
|
5
|
+
|
6
|
+
Rake::TestTask.new do |t|
|
7
|
+
# t.libs.delete 'lib'
|
8
|
+
# t.libs = ['test', 'app']
|
9
|
+
t.libs << 'test'
|
10
|
+
t.pattern = 'test/**/*_test.rb'
|
11
|
+
t.warning = false
|
12
|
+
end
|
13
|
+
|
14
|
+
# namespace :test do
|
15
|
+
# task :isolated do
|
16
|
+
# Dir.glob("test/**/*_test.rb").all? do |file|
|
17
|
+
# sh(Gem.ruby, '-w', '-Ilib:test', file)
|
18
|
+
# end or raise "Failures"
|
19
|
+
# end
|
20
|
+
# end
|
data/adminpanel.gemspec
CHANGED
@@ -36,11 +36,11 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency 'koala', '>= 1.9.0', '<= 2.0.0'
|
37
37
|
|
38
38
|
spec.add_development_dependency 'sqlite3', '>= 1.3.9', '<= 2.0.0'
|
39
|
-
spec.
|
40
|
-
spec.add_development_dependency '
|
41
|
-
spec.add_development_dependency '
|
42
|
-
spec.add_development_dependency '
|
43
|
-
spec.add_development_dependency '
|
44
|
-
spec.add_development_dependency '
|
45
|
-
spec.add_development_dependency '
|
39
|
+
spec.add_dependency 'minitest'
|
40
|
+
spec.add_development_dependency 'minitest-emoji'
|
41
|
+
spec.add_development_dependency 'minitest-capybara'
|
42
|
+
spec.add_development_dependency 'mocha'
|
43
|
+
spec.add_development_dependency 'minitest-metadata'
|
44
|
+
spec.add_development_dependency 'poltergeist'
|
45
|
+
# spec.add_development_dependency 'minitest-debugger'
|
46
46
|
end
|
@@ -18,11 +18,7 @@ module Adminpanel
|
|
18
18
|
|
19
19
|
|
20
20
|
def create
|
21
|
-
|
22
|
-
params.merge({:model => params[:model]}) if params[:model].present?
|
23
|
-
params.merge({:currentcontroller => params[:currentcontroller]}) if params[:currentcontroller].present?
|
24
|
-
params.merge({:belongs_request => params[:belongs_request]}) if params[:belongs_request].present?
|
25
|
-
|
21
|
+
merge_params
|
26
22
|
create! do |success, failure|
|
27
23
|
success.html do
|
28
24
|
flash[:success] = I18n.t("action.save_success")
|
@@ -27,29 +27,13 @@ module Adminpanel
|
|
27
27
|
def move_better
|
28
28
|
@gallery = Gallery.find(params[:id])
|
29
29
|
@gallery.move_to_better_position
|
30
|
-
|
31
|
-
format.html do
|
32
|
-
redirect_to galleries_path
|
33
|
-
end
|
34
|
-
format.js do
|
35
|
-
@galleries = Gallery.all
|
36
|
-
render :locals => { :galleries => @galleries }
|
37
|
-
end
|
38
|
-
end
|
30
|
+
respond
|
39
31
|
end
|
40
32
|
|
41
33
|
def move_worst
|
42
34
|
@gallery = Gallery.find(params[:id])
|
43
35
|
@gallery.move_to_worst_position
|
44
|
-
|
45
|
-
format.html do
|
46
|
-
redirect_to galleries_path
|
47
|
-
end
|
48
|
-
format.js do
|
49
|
-
@galleries = Gallery.all
|
50
|
-
render :locals => { :galleries => @galleries }
|
51
|
-
end
|
52
|
-
end
|
36
|
+
respond
|
53
37
|
end
|
54
38
|
|
55
39
|
def destroy
|
@@ -75,7 +59,18 @@ module Adminpanel
|
|
75
59
|
private
|
76
60
|
def gallery_params
|
77
61
|
params.require(:gallery).permit(:file)
|
62
|
+
end
|
78
63
|
|
64
|
+
def respond
|
65
|
+
respond_to do |format|
|
66
|
+
format.html do
|
67
|
+
redirect_to galleries_path
|
68
|
+
end
|
69
|
+
format.js do
|
70
|
+
@galleries = Gallery.all
|
71
|
+
render :locals => { :galleries => @galleries }
|
72
|
+
end
|
73
|
+
end
|
79
74
|
end
|
80
75
|
end
|
81
76
|
end
|
@@ -1,10 +1,9 @@
|
|
1
1
|
module Adminpanel
|
2
2
|
module FacebookActions
|
3
3
|
extend ActiveSupport::Concern
|
4
|
-
include ActionView::Helpers::TextHelper
|
5
4
|
|
6
5
|
included do
|
7
|
-
before_filter :set_auths_count
|
6
|
+
before_filter :set_auths_count
|
8
7
|
end
|
9
8
|
|
10
9
|
def fb_choose_page
|
@@ -17,36 +16,28 @@ module Adminpanel
|
|
17
16
|
id: resource,
|
18
17
|
host: request.host
|
19
18
|
})
|
20
|
-
).get_access_token(params[:code])
|
19
|
+
).get_access_token(params[:code])
|
21
20
|
user = Koala::Facebook::API.new(access_token)
|
22
21
|
@pages = user.get_connections('me', 'accounts')
|
23
22
|
user_object = user.get_object('me')
|
24
23
|
@name = user_object['name']
|
25
|
-
|
26
|
-
@pages << user_hash # to permit post on own profile
|
24
|
+
@pages << { 'name' => @name, 'access_token' => access_token } # to permit posts on own wall
|
27
25
|
render 'shared/fb_choose_page'
|
28
26
|
end
|
29
27
|
|
30
28
|
def fb_save_token
|
31
|
-
page_selected = Koala::Facebook::API.new(
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
name: page_selected.get_object('me')['name'],
|
37
|
-
value: params[@model.name.demodulize.downcase][:fb_page_access_key]
|
38
|
-
)
|
39
|
-
else
|
40
|
-
@auths.first.update_attribute(:value, params[@mode.name.demodulize.downcase][:fb_page_access_key])
|
41
|
-
end
|
42
|
-
flash[:success] = I18n.t('fb.saved-token')
|
29
|
+
page_selected = Koala::Facebook::API.new(
|
30
|
+
params[model_name][:fb_page_access_key]
|
31
|
+
)
|
32
|
+
update_facebook_auth(page_selected.get_object('me')['name'])
|
33
|
+
flash[:success] = I18n.t('fb.saved_token')
|
43
34
|
redirect_to resource
|
44
35
|
end
|
45
36
|
|
46
37
|
def fb_publish
|
47
38
|
page_graph = Koala::Facebook::API.new(Auth.find_by_key('facebook').value)
|
48
39
|
page_graph.put_wall_post(
|
49
|
-
|
40
|
+
params[model_name][:fb_message],
|
50
41
|
{
|
51
42
|
link: resource.fb_link,
|
52
43
|
name: resource.name
|
@@ -60,5 +51,22 @@ module Adminpanel
|
|
60
51
|
def set_auths_count
|
61
52
|
@fb_auths_count = Auth.where(key: 'facebook').count
|
62
53
|
end
|
54
|
+
|
55
|
+
def update_facebook_auth(account_selected_name)
|
56
|
+
auths = Auth.where(key: 'facebook', name: account_selected_name)
|
57
|
+
if auths.count == 0
|
58
|
+
Auth.create(
|
59
|
+
key: 'facebook',
|
60
|
+
name: account_selected_name,
|
61
|
+
value: params[model_name][:fb_page_access_key]
|
62
|
+
)
|
63
|
+
else
|
64
|
+
auths.first.update_attribute(:value, params[model_name][:fb_page_access_key])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def model_name
|
69
|
+
@model.name.demodulize.downcase # ex: posts
|
70
|
+
end
|
63
71
|
end
|
64
72
|
end
|
@@ -22,9 +22,7 @@ module Adminpanel
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def create
|
25
|
-
|
26
|
-
params.merge({:model_name => params[:model_name]}) if params[:model_name].present?
|
27
|
-
params.merge({:belongs_request => params[:belongs_request]}) if params[:belongs_request].present?
|
25
|
+
merge_params
|
28
26
|
create! do |success, failure|
|
29
27
|
success.html do
|
30
28
|
flash[:success] = I18n.t('action.save_success')
|
@@ -104,5 +102,12 @@ module Adminpanel
|
|
104
102
|
@collections.merge!({"#{class_variable}" => class_variable.all})
|
105
103
|
end
|
106
104
|
end
|
105
|
+
|
106
|
+
def merge_params
|
107
|
+
params.merge({:model => params[:model]}) if params[:model].present?
|
108
|
+
params.merge({:model_name => params[:model_name]}) if params[:model_name].present?
|
109
|
+
params.merge({:belongs_request => params[:belongs_request]}) if params[:belongs_request].present?
|
110
|
+
params.merge({:currentcontroller => params[:currentcontroller]}) if params[:currentcontroller].present?
|
111
|
+
end
|
107
112
|
end
|
108
113
|
end
|
@@ -10,7 +10,7 @@ module Adminpanel
|
|
10
10
|
minimum: 10,
|
11
11
|
maximum: 10,
|
12
12
|
on: :update,
|
13
|
-
if: :
|
13
|
+
if: :is_a_phone?,
|
14
14
|
message: I18n.t('activerecord.errors.messages.not_phone')
|
15
15
|
validates_presence_of :description,
|
16
16
|
minimum: 9,
|
@@ -19,7 +19,7 @@ module Adminpanel
|
|
19
19
|
validates :description,
|
20
20
|
numericality: { only_integer: true },
|
21
21
|
on: :update,
|
22
|
-
if: :
|
22
|
+
if: :is_a_phone?
|
23
23
|
validates_presence_of :key
|
24
24
|
validates_presence_of :name
|
25
25
|
validates_presence_of :page
|
@@ -54,7 +54,7 @@ module Adminpanel
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def description
|
57
|
-
if self.has_description
|
57
|
+
if self.has_description && !self.attributes['description'].nil?
|
58
58
|
return self.attributes['description'].html_safe
|
59
59
|
else
|
60
60
|
return self.attributes['description']
|
@@ -62,7 +62,7 @@ module Adminpanel
|
|
62
62
|
end
|
63
63
|
|
64
64
|
private
|
65
|
-
def
|
65
|
+
def is_a_phone?
|
66
66
|
key == 'phone' && description != ''
|
67
67
|
end
|
68
68
|
end
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<%= f.password_field :password, :class => "btn-block", :id => "inputPassword", :placeholder => t("session.password") %>
|
21
21
|
</div>
|
22
22
|
</div>
|
23
|
-
<%= f.submit
|
23
|
+
<%= f.submit I18n.t('authentication.new-session'), :class => "btn pull-right", :id => "signin-button" %>
|
24
24
|
<% end %>
|
25
25
|
</div>
|
26
26
|
</div>
|
@@ -21,9 +21,31 @@
|
|
21
21
|
<ul class="pull-right">
|
22
22
|
<li>
|
23
23
|
<% if signed_in? %>
|
24
|
-
<%=
|
24
|
+
<%=
|
25
|
+
link_to(
|
26
|
+
content_tag(
|
27
|
+
'i',
|
28
|
+
nil,
|
29
|
+
class: 'fa fa-power-off'
|
30
|
+
) + " #{I18n.t('authentication.logout')}",
|
31
|
+
signout_path,
|
32
|
+
method: :delete,
|
33
|
+
escape: true,
|
34
|
+
id: 'signout-button'
|
35
|
+
)
|
36
|
+
%>
|
25
37
|
<% else %>
|
26
|
-
<%=
|
38
|
+
<%=
|
39
|
+
link_to(
|
40
|
+
content_tag(
|
41
|
+
'i',
|
42
|
+
nil,
|
43
|
+
class: 'fa fa-power-off'
|
44
|
+
) + " #{I18n.t('authentication.login')}",
|
45
|
+
signin_path,
|
46
|
+
escape: true
|
47
|
+
)
|
48
|
+
%>
|
27
49
|
<% end %>
|
28
50
|
</li>
|
29
51
|
</ul>
|
@@ -7,9 +7,8 @@
|
|
7
7
|
<%= stylesheet_link_tag "application-admin", :media => "all" %>
|
8
8
|
<%= javascript_include_tag "application-admin" %>
|
9
9
|
<%= csrf_meta_tags %>
|
10
|
-
|
10
|
+
<%= favicon_link_tag "adminpanel/favicon.ico" %>
|
11
11
|
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
|
12
|
-
<link rel="Favicon Icon" href="favicon.ico">
|
13
12
|
<%= render 'layouts/shim' %>
|
14
13
|
</head>
|
15
14
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<%= f.select(
|
30
30
|
:fb_page_access_key,
|
31
31
|
options_for_select(@pages.map{ |p| [ p['name'], p['access_token'] ] }),
|
32
|
-
{ 'label' => I18n.t('fb.
|
32
|
+
{ 'label' => I18n.t('fb.page_select') }
|
33
33
|
)
|
34
34
|
%>
|
35
35
|
|
@@ -37,9 +37,9 @@
|
|
37
37
|
</div>
|
38
38
|
<div class = "widget-footer">
|
39
39
|
<%=
|
40
|
-
f.submit t('
|
40
|
+
f.submit t('fb.confirm_page'),
|
41
41
|
data: {:disable_with => t("action.submitting")},
|
42
|
-
:id =>"
|
42
|
+
:id =>"save-fb-page-button"
|
43
43
|
%>
|
44
44
|
</div>
|
45
45
|
<% end -%>
|
@@ -1,40 +1,41 @@
|
|
1
1
|
<% provide(:page_title, t("action.create") + " #{@model.display_name.capitalize}") -%>
|
2
|
-
<%
|
2
|
+
<%
|
3
|
+
breadcrumb_add(
|
3
4
|
@model.display_name.capitalize.pluralize(I18n.default_locale),
|
4
5
|
{
|
5
6
|
:controller => params[:controller],
|
6
7
|
:action => "index"
|
7
8
|
}
|
8
|
-
)
|
9
|
-
|
9
|
+
)
|
10
|
+
%>
|
10
11
|
<div class="row-fluid">
|
11
12
|
<div class = "widget widget-padding span12">
|
12
13
|
<div class = "widget-header">
|
13
14
|
<%= content_tag(:i, nil, :class => "fa fa-#{@model.icon}") %>
|
14
15
|
<h5><%= t("action.create") + " " + @model.display_name %></h5>
|
15
16
|
</div>
|
16
|
-
|
17
|
-
|
17
|
+
<%=
|
18
|
+
adminpanel_form_for(
|
19
|
+
resource,
|
20
|
+
:html => {
|
21
|
+
:class => 'form-horizontal',
|
22
|
+
:id => 'new_resource'
|
23
|
+
}
|
24
|
+
) do |f| -%>
|
25
|
+
<div class = "widget-body">
|
26
|
+
<div class = "widget-forms clearfix">
|
27
|
+
<%= render 'shared/error_messages', :object => resource %>
|
28
|
+
<%= render 'shared/form_fields', :f => f %>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
<div class = "widget-footer">
|
18
32
|
<%=
|
19
|
-
|
20
|
-
|
21
|
-
:
|
22
|
-
|
23
|
-
:id => 'new_resource'
|
24
|
-
}
|
25
|
-
) do |f| -%>
|
26
|
-
<%= render 'shared/error_messages', :object => resource %>
|
27
|
-
<%= render 'shared/form_fields', :f => f %>
|
33
|
+
f.submit t('action.add') + " " + @model.display_name,
|
34
|
+
data: {:disable_with => t("action.submitting")},
|
35
|
+
:id =>"new-#{@model.name.demodulize}-button"
|
36
|
+
%>
|
28
37
|
</div>
|
29
|
-
|
30
|
-
<div class = "widget-footer">
|
31
|
-
<%=
|
32
|
-
f.submit t('action.add') + " " + @model.display_name,
|
33
|
-
data: {:disable_with => t("action.submitting")},
|
34
|
-
:id =>"new-#{@model.name.demodulize}-button"
|
35
|
-
%>
|
36
|
-
</div>
|
37
|
-
<% end -%>
|
38
|
+
<% end -%>
|
38
39
|
</div>
|
39
40
|
</div>
|
40
41
|
<%= render 'shared/modal' %>
|
data/config/locales/es.yml
CHANGED
@@ -53,6 +53,7 @@ es:
|
|
53
53
|
submitting: 'Enviando...'
|
54
54
|
save: 'Guardar'
|
55
55
|
save_success: 'Se ha guardado con éxito'
|
56
|
+
save_account: 'Seleccionar cuenta'
|
56
57
|
update: 'Actualizar'
|
57
58
|
view: 'Ver'
|
58
59
|
is_true: 'Sí'
|
@@ -61,7 +62,10 @@ es:
|
|
61
62
|
welcome: 'Bienvenido! Inicia Sesión'
|
62
63
|
signin_error: 'Correo y/o Contraseña incorrecta.'
|
63
64
|
signin_success: 'Bienvenido!'
|
65
|
+
new-session: 'Iniciar Sesión'
|
64
66
|
not_authorized: 'No tienes permisos para acceder'
|
67
|
+
logout: 'Logout'
|
68
|
+
login: 'Log in'
|
65
69
|
gallery:
|
66
70
|
container: 'Imágenes'
|
67
71
|
new: 'Agregar Imagen'
|
@@ -95,8 +99,9 @@ es:
|
|
95
99
|
signin: 'iniciar-sesion'
|
96
100
|
fb:
|
97
101
|
posted: 'Publicado en el muro de %{user}'
|
98
|
-
|
102
|
+
confirm_page: 'Seleccionar Cuenta'
|
103
|
+
# not-posted: 'Hubo un error, no fue publicado en ningún muro, por favor intenta otra vez.'
|
99
104
|
pages: 'Publiar como %{name}'
|
100
|
-
|
105
|
+
page_select: 'Selecciona una cuenta para la publicación'
|
101
106
|
message: 'Mensaje de la publicación'
|
102
|
-
|
107
|
+
saved_token: 'Log in con Facebook exitoso, ya puedes publicar con la cuenta de Facebook'
|