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
This commit is contained in:
Costantino Perciante 2016-09-01 15:25:40 +00:00
parent b46c4cf006
commit 03cb7227f0
3 changed files with 2 additions and 4 deletions

View File

@ -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)

View File

@ -5,8 +5,6 @@
.statistic-icon {
display: inline-block;
vertical-align: text-bottom;
width: 22px;
height: 22px;
}
.statistic-value {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 1.1 KiB