public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Added description.blank? warning
Michael Hartl (author)
Fri May 09 10:48:09 -0700 2008
commit  39a30c4b375eb8356345f91be34ec409d15d8481
tree    3b496cb2eeeb6309e51bf7a7d4e3185418e1ebe8
parent  3044ee9172c5fa0402d97bda8a09d39223378402
...
2
3
4
5
6
7
8
 
 
 
 
 
 
 
 
 
 
 
 
9
10
11
...
2
3
4
 
 
 
 
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -2,10 +2,18 @@
0
   <div class="profile vcard">
0
     <h2>Profile: <span class="fn n"><%= h @person.name %></span></h2>
0
     <%- if current_person?(@person) -%>
0
- <div class="notice">
0
- You are viewing your own profile.
0
- <%= link_to "Click here to edit it", edit_person_path(@person) %>
0
- </div>
0
+ <%- if current_person.description.blank? -%>
0
+ <div class="error">
0
+ Your description is blank.
0
+ <%= link_to "Click here to add a description",
0
+ edit_person_path(@person) %>
0
+ </div>
0
+ <%- else -%>
0
+ <div class="notice">
0
+ You are viewing your own profile.
0
+ <%= link_to "Click here to edit it", edit_person_path(@person) %>
0
+ </div>
0
+ <%- end -%>
0
     <%- end -%>
0
     <div class="toolbox">
0
       <%= image_tag @person.main_photo, :class => "profile-image photo",

Comments

    No one has commented yet.