Permalink
Browse files

Discover users button

  • Loading branch information...
1 parent e8e17e6 commit 0134eb114f39e908d2ffeee916f25717e626a637 @raquelgb raquelgb committed Jul 5, 2012
Showing with 15 additions and 2 deletions.
  1. +11 −0 app/views/followers/_filter.html.erb
  2. +2 −2 app/views/home/index.html.erb
  3. +1 −0 config/locales/en.yml
  4. +1 −0 config/locales/es.yml
@@ -2,6 +2,17 @@
<div class="pull-left">
<input id="<%= filter_id%>" type="text" class="input-medium inline-block ontop" placeholder="filter" name="filter">
</div>
+
+ <% show_add = false if !defined?(show_add) %>
+ <% if show_add %>
+ <div class="pull-right">
+ <div class="menu_resources">
+ <%= link_to raw("<i class='iconnav-followers'></i> ") + t('follow.find'),search_path(:type => "user"), :class => :action %>
+ </div>
+ </div>
+ <% end %>
+
+
<div class="clearfloat"></div>
<div class="space_center"></div>
<%= content_for :javascript do %>
@@ -214,7 +214,7 @@
<div class="tab-content">
<div id="follow-1" class="tab-pane active">
- <%= render :partial => "followers/filter" %>
+ <%= render :partial => "followers/filter", :locals => {:show_add => true} %>
<div class="follow-home-box ">
<% current_subject.following_actor_objects.includes(:actor).all.shuffle.first(6).each do |object| %>
@@ -237,7 +237,7 @@
</div>
<div id="follow-2" class="tab-pane">
- <%= render :partial => "followers/filter" %>
+ <%= render :partial => "followers/filter", :locals => {:show_add => true} %>
<div class="follow-home-box ">
<% current_subject.followers.all.shuffle.first(6).each do |object| %>
View
@@ -95,6 +95,7 @@ en:
add_favorite: "Add favorite"
contacts: "contacts"
favorites: "Favorites"
+ find: "find"
followers: "followers"
followings: "following"
is_favorite: "Is favorite"
View
@@ -97,6 +97,7 @@ es:
add_favorite: "Añadir favorito"
contacts: "contactos"
favorites: "Favoritos"
+ find: "buscar"
followers: "seguidores"
followings: "siguiendo"
is_favorite: "Favorito"

0 comments on commit 0134eb1

Please sign in to comment.