diff options
author | György Peng <gypeng@drezina.hu> | 2014-01-06 11:15:33 +0100 |
---|---|---|
committer | György Peng <gypeng@drezina.hu> | 2014-01-06 11:15:33 +0100 |
commit | 077403c167f686e8d7afc9fd84c6079744372598 (patch) | |
tree | 92532cafed9fbc7fd06d6d2101b2a8c223d6f773 | |
parent | 91ccfb2e0e5062bbf3ee1be36429338b444676b3 (diff) |
Adding headers to wall
When a user has no activity and following nothing, his wall page
contains nothing, an empty page appears.
My suggestion to change the views/user/wall.html.erb:
- adding headers to page with title text
- adding paragraph with text "nothing to display"
-rw-r--r-- | app/views/user/wall.html.erb | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/app/views/user/wall.html.erb b/app/views/user/wall.html.erb index 190cc0a6d..5f11041e1 100644 --- a/app/views/user/wall.html.erb +++ b/app/views/user/wall.html.erb @@ -1,16 +1,19 @@ <% @title = h(@display_user.name) + _(" - wall") %> -<% if @is_you %> <div class="medium_column"> - <p><%= _('You can change the requests and users you are following on <a href="{{profile_url}}">your profile page</a>.', :profile_url => show_user_profile_path) %> - <%= render :partial => 'change_receive_email' %> + <% if @is_you %> + <h2><%= _("My wall") %></h2> + <p><%= _('You can change the requests and users you are following on <a href="{{profile_url}}">your profile page</a>.', :profile_url => show_user_profile_path) %></p> + <%= render :partial => 'change_receive_email' %> + <% else %> + <h2><%= _("This is <a href=\"{{profile_url}}\">{{user_name}}'s</a> wall\", :profile_url => show_user_profile_path, :user_name => h(@display_user.name)) %></h2> + <% end %> </div> -<% end %> <div id="user_profile_search"> - <% if !@feed_results.nil? %> - <% for result in @feed_results %> - <%= render :partial => 'request/wall_listing', :locals => { :event => result, :info_request => result.info_request } %> - <% end %> - <% end %> - - + <% if !@feed_results.nil? and !@feed_results.empty? %> + <% for result in @feed_results %> + <%= render :partial => 'request/wall_listing', :locals => { :event => result, :info_request => result.info_request } %> + <% end %> + <% else %> + <p><%= _("There are nothing to display yet.") %></p> + <% end %> </div> |