r7052 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- From: commits mugshot org
- To: online-desktop-list gnome org
- Subject: r7052 - dumbhippo/trunk/server/src/com/dumbhippo/server/impl
- Date: Thu, 13 Dec 2007 13:58:56 -0600 (CST)
Author: marinaz
Date: 2007-12-13 13:58:56 -0600 (Thu, 13 Dec 2007)
New Revision: 7052
Modified:
dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java
Log:
Add a link to the application page where the user can edit their accounts.
Display a link to the Mugshot page only if the user has accepted terms of use.
If we don't have any actvity for a new user, display a note about it showing
up in the profile box once there are new updates.
Modified: dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java
===================================================================
--- dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java 2007-12-13 17:55:24 UTC (rev 7051)
+++ dumbhippo/trunk/server/src/com/dumbhippo/server/impl/FacebookTrackerBean.java 2007-12-13 19:58:56 UTC (rev 7052)
@@ -587,6 +587,9 @@
private String createFbmlForUser(User user) {
StringBuilder fbmlSb = new StringBuilder("");
+ fbmlSb.append("<fb:visible-to-owner><fb:subtitle>" +
+ "<a href='http://apps.facebook.com/mugshot'>Edit Accounts</a>" +
+ "</fb:subtitle></fb:visible-to-owner>");
Pageable<BlockView> pageableMugshot = new Pageable<BlockView>("mugshot");
pageableMugshot.setPosition(0);
pageableMugshot.setInitialPerPage(INITIAL_BLOCKS_PER_PAGE);
@@ -602,8 +605,14 @@
": <a target='_blank' href='" + getAbsoluteUrl(blockView.getSummaryLink()) + "'>" + blockView.getSummaryLinkText() + "</a>" +
"</td></tr></table>");
}
- fbmlSb.append("<a target='blank' style='font-size: 12px; font-weight: bold; margin-top: 10px;' href='" + getAbsoluteUrl("/person?who=" + user.getId().toString()) + "'>" +
- "Visit My Mugshot to See More</a>");
+ // display a note if there was no activity
+ if (pageableMugshot.getResults().size() == 0) {
+ fbmlSb.append("<div>Once there are new updates, they will show up here.</div>");
+ }
+ if (user.getAccount().getHasAcceptedTerms()) {
+ fbmlSb.append("<a target='_blank' style='font-size: 12px; font-weight: bold; margin-top: 10px;' href='" + getAbsoluteUrl("/person?who=" + user.getId().toString()) + "'>" +
+ "Visit my Mugshot Page</a>");
+ }
return fbmlSb.toString();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]