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.
@@ -1,6 +1,6 @@
1
1
  module TiesHelper
2
2
  def tie_brief(tie)
3
- "18 contacts in common"
3
+ "N contacts in common"
4
4
  end
5
5
 
6
6
  def tie_link(tie)
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.one') }: <span class=\"name_group\">#{ sanitize current_user.name }</span>").html_safe %>
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>
@@ -8,7 +8,4 @@
8
8
  <li>
9
9
  <%= link_to( image_tag("btn/btn_inbox.png", :class => "menu_icon")+t('inbox.one'), current_user) %>
10
10
  </li>
11
- <li>
12
- <%= link_to(image_tag("btn/btn_photo.png", :class => "menu_icon")+t('photo.other'),current_user) %>
13
- </li>
14
11
  </ul>
@@ -1,7 +1,7 @@
1
1
  <div id="footerFront">
2
2
  <div id="footer">
3
3
  <ul>
4
- <li2010 </li>
4
+ <li>2010 © </li>
5
5
  <li id="trade_mark"><%= t('socialstream') %></li>
6
6
  </ul>
7
7
  </div>
@@ -6,28 +6,27 @@
6
6
  <%= link_to(t('socialstream') , root_path)%> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
7
7
  </div>
8
8
  <% if user_signed_in? %>
9
- <%=image_tag("btn/btn_home.png",:class=>"btn_config",:alt=>"Home") %>
9
+ <%=image_tag("btn/btn_home.png",:class=>"btn_config") %>
10
10
  <div class="txt_config">
11
- <%= link_to t('home.my'),home_path %>
11
+ <%= link_to t('home'), home_path %>
12
12
  </div>
13
- <%=image_tag("btn/btn_profile.png",:class=>"btn_config",:alt=>"Profile") %>
13
+ <%=image_tag("btn/btn_profile.png",:class=>"btn_config") %>
14
14
  <div class="txt_config">
15
- <%=link_to(t('profile.my'),current_user)%>
15
+ <%= link_to(t('profile.one'), current_user)%>
16
16
  </div>
17
- <%=image_tag("btn/btn_browse.png",:class=>"btn_config",:alt=>"Browse") %>
17
+ <%=image_tag("btn/btn_browse.png",:class=>"btn_config") %>
18
18
  <div class="txt_config2">
19
- <%=link_to(t('browse'),users_path) %> &nbsp;
19
+ <%=link_to(t('browse'),users_path) %> &nbsp;
20
20
  </div>
21
21
  </div>
22
22
  <div id="header_right">
23
- <%=image_tag("btn/btn_config.png",:class=>"btn_config",:alt=>"Configuration") %>
23
+ <%=image_tag("btn/btn_config.png",:class=>"btn_config") %>
24
24
  <div class="txt_config">
25
- <%= t('account') %>
26
-
25
+ <%= t('account.one') %>
27
26
  </div>
28
- <%=image_tag("btn/btn_exit.png",:class=>"btn_config",:alt=>"Exit") %>
27
+ <%=image_tag("btn/btn_exit.png",:class=>"btn_config") %>
29
28
  <div class="txt_config2">
30
- <%= link_to t('logout')+" ("+current_user.name+")", destroy_user_session_path %>
29
+ <%= link_to t('sign_out_user', :user => current_user.name), destroy_user_session_path %>
31
30
  </div>
32
31
  <% end %>
33
32
  </div>
@@ -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
- one: "Home"
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:
@@ -1,3 +1,3 @@
1
1
  module SocialStream
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
@@ -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('demo').blank?
15
- u = User.create! :full_name => 'demo',
16
- :email => 'demo@dit.upm.es',
17
- :password => 'demo',
18
- :password_confirmation => 'demo'
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 :full_name => Forgery::Name.full_name,
23
+ u = User.create :name => Forgery::Name.full_name,
25
24
  :email => Forgery::Internet.email_address,
26
- :password => 'test',
27
- :password_confirmation => 'test'
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Antonio Tapiador