Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added facebook profile (issue#5)

  • Loading branch information...
commit d8c455bccbe9695b8d9e64795a0de23196a607ff 1 parent 1f03a07
Dmitriy Kopylenko authored June 13, 2009
2  grails-app/domain/grailscrowd/core/Member.groovy
@@ -111,7 +111,7 @@ class Member extends NumberOfViewsTrackable implements Comparable {
111 111
     }
112 112
 
113 113
 	def getFacebookProfileUri() {
114  
-		this.facebookProfileName != null ? "FACEBOOK_BASE_URI/$facebookProfileName" : null
  114
+		this.facebookProfileName != null ? "$FACEBOOK_BASE_URI/$facebookProfileName" : null
115 115
 	}
116 116
 
117 117
     def availableForHireAsString() {
3  grails-app/views/member/editProfile.gsp
@@ -56,6 +56,9 @@
56 56
                                 <input type="text" size="55" name="deliciousProfileName" id="deliciousProfileName" value="${member.deliciousProfileName}"/></p>
57 57
 							<p><label for="ohlohProfileName">My Ohloh profile name:</label><br/>
58 58
                                 <input type="text" size="55" name="ohlohProfileName" id="ohlohProfileName" value="${member.ohlohProfileName}"/></p>
  59
+
  60
+							<p><label for="facebookProfileName">My Facebook profile name:</label><br/>
  61
+	                            <input type="text" size="55" name="facebookProfileName" id="facebookProfileName" value="${member.facebookProfileName}"/></p>
59 62
                         </div>
60 63
                         <br/>
61 64
 
6  grails-app/views/member/viewProfile.gsp
@@ -107,6 +107,12 @@
107 107
                             <br />
108 108
                             <br />
109 109
                         </g:if>
  110
+						<g:if test="${member.facebookProfileUri}">
  111
+							<img src="${createLinkTo(dir:'images',file:'facebook.png')}" alt="Facebook"/>
  112
+                            <label>Facebook profile:</label> <a href="${member.facebookProfileUri}" target="_blank">${member.facebookProfileUri.encodeAsHTML()}</a>
  113
+                            <br />
  114
+                            <br />
  115
+                        </g:if>
110 116
                     </span>
111 117
                 </p>
112 118
             </g:if>
BIN  web-app/images/facebook.png

0 notes on commit d8c455b

Please sign in to comment.
Something went wrong with that request. Please try again.