Skip to content
Browse files

added facebook profile (issue#5)

  • Loading branch information...
1 parent 1f03a07 commit d8c455bccbe9695b8d9e64795a0de23196a607ff @dima767 committed
View
2 grails-app/domain/grailscrowd/core/Member.groovy
@@ -111,7 +111,7 @@ class Member extends NumberOfViewsTrackable implements Comparable {
}
def getFacebookProfileUri() {
- this.facebookProfileName != null ? "FACEBOOK_BASE_URI/$facebookProfileName" : null
+ this.facebookProfileName != null ? "$FACEBOOK_BASE_URI/$facebookProfileName" : null
}
def availableForHireAsString() {
View
3 grails-app/views/member/editProfile.gsp
@@ -56,6 +56,9 @@
<input type="text" size="55" name="deliciousProfileName" id="deliciousProfileName" value="${member.deliciousProfileName}"/></p>
<p><label for="ohlohProfileName">My Ohloh profile name:</label><br/>
<input type="text" size="55" name="ohlohProfileName" id="ohlohProfileName" value="${member.ohlohProfileName}"/></p>
+
+ <p><label for="facebookProfileName">My Facebook profile name:</label><br/>
+ <input type="text" size="55" name="facebookProfileName" id="facebookProfileName" value="${member.facebookProfileName}"/></p>
</div>
<br/>
View
6 grails-app/views/member/viewProfile.gsp
@@ -107,6 +107,12 @@
<br />
<br />
</g:if>
+ <g:if test="${member.facebookProfileUri}">
+ <img src="${createLinkTo(dir:'images',file:'facebook.png')}" alt="Facebook"/>
+ <label>Facebook profile:</label> <a href="${member.facebookProfileUri}" target="_blank">${member.facebookProfileUri.encodeAsHTML()}</a>
+ <br />
+ <br />
+ </g:if>
</span>
</p>
</g:if>
View
BIN web-app/images/facebook.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d8c455b

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