social_stream 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/helpers/ties_helper.rb +1 -1
- data/app/models/actor.rb +1 -1
- data/app/views/home/_location.html.erb +1 -1
- data/app/views/home/_options.html.erb +0 -3
- data/app/views/layouts/_footer.html.erb +1 -1
- data/app/views/layouts/_header.erb +10 -11
- data/config/locales/en.yml +8 -2
- data/lib/social_stream/version.rb +1 -1
- data/lib/tasks/db/populate.rake +8 -10
- metadata +3 -3
data/app/helpers/ties_helper.rb
CHANGED
data/app/models/actor.rb
CHANGED
@@ -134,7 +134,7 @@ class Actor < ActiveRecord::Base
|
|
134
134
|
|
135
135
|
return nil unless candidate.present?
|
136
136
|
|
137
|
-
sent_ties.build :receiver_id => candidate,
|
137
|
+
sent_ties.build :receiver_id => candidate.id,
|
138
138
|
:relation => Relation.mode(subject_type, candidate.class).find_by_name(SuggestedRelations[candidate.class.to_s])
|
139
139
|
end
|
140
140
|
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<div id="map_location" class="content_size">
|
2
|
-
<%= t('location.message', :location => "#{ image_tag('btn/btn_home.png' , :class => 'btn_config') } #{ t('home
|
2
|
+
<%= t('location.message', :location => "#{ image_tag('btn/btn_home.png' , :class => 'btn_config') } #{ t('home') }: <span class=\"name_group\">#{ sanitize current_user.name }</span>").html_safe %>
|
3
3
|
</div>
|
@@ -6,28 +6,27 @@
|
|
6
6
|
<%= link_to(t('socialstream') , root_path)%>
|
7
7
|
</div>
|
8
8
|
<% if user_signed_in? %>
|
9
|
-
<%=image_tag("btn/btn_home.png",:class=>"btn_config"
|
9
|
+
<%=image_tag("btn/btn_home.png",:class=>"btn_config") %>
|
10
10
|
<div class="txt_config">
|
11
|
-
|
11
|
+
<%= link_to t('home'), home_path %>
|
12
12
|
</div>
|
13
|
-
<%=image_tag("btn/btn_profile.png",:class=>"btn_config"
|
13
|
+
<%=image_tag("btn/btn_profile.png",:class=>"btn_config") %>
|
14
14
|
<div class="txt_config">
|
15
|
-
|
15
|
+
<%= link_to(t('profile.one'), current_user)%>
|
16
16
|
</div>
|
17
|
-
|
17
|
+
<%=image_tag("btn/btn_browse.png",:class=>"btn_config") %>
|
18
18
|
<div class="txt_config2">
|
19
|
-
|
19
|
+
<%=link_to(t('browse'),users_path) %>
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
<div id="header_right">
|
23
|
-
<%=image_tag("btn/btn_config.png",:class=>"btn_config"
|
23
|
+
<%=image_tag("btn/btn_config.png",:class=>"btn_config") %>
|
24
24
|
<div class="txt_config">
|
25
|
-
|
26
|
-
|
25
|
+
<%= t('account.one') %>
|
27
26
|
</div>
|
28
|
-
<%=image_tag("btn/btn_exit.png",:class=>"btn_config"
|
27
|
+
<%=image_tag("btn/btn_exit.png",:class=>"btn_config") %>
|
29
28
|
<div class="txt_config2">
|
30
|
-
<%= link_to t('
|
29
|
+
<%= link_to t('sign_out_user', :user => current_user.name), destroy_user_session_path %>
|
31
30
|
</div>
|
32
31
|
<% end %>
|
33
32
|
</div>
|
data/config/locales/en.yml
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
en:
|
2
|
+
account:
|
3
|
+
one: "Account"
|
2
4
|
activity:
|
3
5
|
one: "Activity"
|
4
6
|
other: "Activities"
|
@@ -60,8 +62,9 @@ en:
|
|
60
62
|
by: By Groups
|
61
63
|
my: My Groups
|
62
64
|
one: Group
|
63
|
-
home:
|
64
|
-
|
65
|
+
home: "Home"
|
66
|
+
inbox:
|
67
|
+
one: "Inbox"
|
65
68
|
location:
|
66
69
|
message: "You are here > %{location}"
|
67
70
|
message: "Message"
|
@@ -69,8 +72,11 @@ en:
|
|
69
72
|
options: "Menu Options"
|
70
73
|
post:
|
71
74
|
confirm_delete: "Delete post?"
|
75
|
+
profile:
|
76
|
+
one: "Profile"
|
72
77
|
sign_in: "Sign in"
|
73
78
|
sign_up: "Sign up"
|
79
|
+
sign_out_user: "Sign out (%{user})"
|
74
80
|
socialstream: "SocialStream"
|
75
81
|
tie:
|
76
82
|
pending:
|
data/lib/tasks/db/populate.rake
CHANGED
@@ -11,21 +11,19 @@ namespace :db do
|
|
11
11
|
task :create => :environment do
|
12
12
|
|
13
13
|
# Create demo user if not present
|
14
|
-
if User.find_by_name('
|
15
|
-
u = User.create! :
|
16
|
-
:email => '
|
17
|
-
:password => '
|
18
|
-
:password_confirmation => '
|
19
|
-
u.confirm!
|
14
|
+
if User.find_by_name('demostration').blank?
|
15
|
+
u = User.create! :name => 'demostration',
|
16
|
+
:email => 'demostration@test.com',
|
17
|
+
:password => 'demostration',
|
18
|
+
:password_confirmation => 'demostration'
|
20
19
|
end
|
21
20
|
|
22
21
|
puts "* Create Users"
|
23
22
|
20.times do
|
24
|
-
u = User.create :
|
23
|
+
u = User.create :name => Forgery::Name.full_name,
|
25
24
|
:email => Forgery::Internet.email_address,
|
26
|
-
:password => '
|
27
|
-
:password_confirmation => '
|
28
|
-
u.confirm!
|
25
|
+
:password => 'demostration',
|
26
|
+
:password_confirmation => 'demostration'
|
29
27
|
end
|
30
28
|
|
31
29
|
available_users = User.all
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Antonio Tapiador
|