From 03cb7227f0d7f7ec8f6c67b38b460ea56d7d721d Mon Sep 17 00:00:00 2001 From: Costantino Perciante Date: Thu, 1 Sep 2016 15:25:40 +0000 Subject: [PATCH] Minor fixes: (a) image for posts changed (b) when the user is viewing his profile as if it belongs to another person he cannot click to see his statistics git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/user-statistics@131074 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../client/StatisticsPanel.java | 4 ++-- .../client/ui/ActivityWidget.ui.xml | 2 -- src/main/webapp/images/share-blue.png | Bin 321 -> 1160 bytes 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java index 1e70a18..c8bcead 100644 --- a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java +++ b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/StatisticsPanel.java @@ -455,7 +455,7 @@ public class StatisticsPanel extends Composite { activityDone = new ActivityWidget(); // set the event handler if needed - if(!isProfilePage || information.isOwner()) + if(!isProfilePage || getUserToShowId() == null) activityDone.setEventBus(eventBus); String urlPostsIcon = GWT.getModuleBaseURL() + "../images/share-blue.png"; @@ -522,7 +522,7 @@ public class StatisticsPanel extends Composite { activityGotWidgetContainer.clearPanelValues(); activityGot = new ActivityWidget(); - if(!isProfilePage || information.isOwner()) + if(!isProfilePage || getUserToShowId() == null) activityGot.setEventBus(eventBus); if(isRoot || isProfilePage) diff --git a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/ui/ActivityWidget.ui.xml b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/ui/ActivityWidget.ui.xml index c269cca..ffdd2ef 100644 --- a/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/ui/ActivityWidget.ui.xml +++ b/src/main/java/org/gcube/portlet/user/userstatisticsportlet/client/ui/ActivityWidget.ui.xml @@ -5,8 +5,6 @@ .statistic-icon { display: inline-block; vertical-align: text-bottom; - width: 22px; - height: 22px; } .statistic-value { diff --git a/src/main/webapp/images/share-blue.png b/src/main/webapp/images/share-blue.png index 19bd20436287346a8bfa8a0a840526ccf4a0ce87..e7f0bb9c8bf2c41f0896b4170d1723f73095e951 100644 GIT binary patch literal 1160 zcmeAS@N?(olHy`uVBq!ia0vp^0zfRp!3HFQtmCqPlw^r(L`iUdT1k0gQ7VIDN`6wR zf@f}GdTLN=VoGJ<$y6H#24v4 zq}24xJX@vryZ0+8WTx0Eg`4^s_!c;)W@LI)6{QAO`Gq7`WhYyvDB0U7*i={n4aiL` zNmQuF&B-gas<2f8n`;GRgM{^!6u?SKvTcwn`Gtf;oFf&jvGt@IQ zHZeCh*HJJsFf`CNFw!?P(ls=ndS0-B(gnVDkcXl`a~XldqVW?^n=Xy|HY>11i>W^86^ZsB5V z?CNX@)9aF-T$-DjR|3{YjS`c=i({Bx1xWYunPX#H_+&e!PC&~y|NXrVfrymLFWZozE zWy-yidj(tyr`XM2mz%q&A+brMF2<2NJ62rMMtIig#W_VhkF<7f|Dg6LH)lbeOrVM5 z5tAhkbA249pBK Xgr~mQ-@DNrR5p0J`njxgN@xNAYVV63 delta 307 zcmV-30nGl03Bdx87k>{30{{R3+O5AG0001NP)t-s?)Lue_5SSj{p4a(Bk;v?E96q>pO1MKXcZ<)boa?h($kV!;AR0x@U zk5>|dFbqV6D;N`lV*>6D-2aZDq|Ia|`jfQ#v;z230~cRi1^iyZXMzEA@g*KRgem|* zrSVC>1cK|lrnHU+Yl%GMtY}o@<^(>qKFg(lR~&G@ySyc*2%W1 zY12J@J%<>WZ!C#r^_g+E)0=b7(nGQ3!UC|I=V|!;@Bw~S2T)@D57Ynv002ovPDHLk FV1gQeq{09I