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:
parent
b46c4cf006
commit
03cb7227f0
|
@ -455,7 +455,7 @@ public class StatisticsPanel extends Composite {
|
||||||
activityDone = new ActivityWidget();
|
activityDone = new ActivityWidget();
|
||||||
|
|
||||||
// set the event handler if needed
|
// set the event handler if needed
|
||||||
if(!isProfilePage || information.isOwner())
|
if(!isProfilePage || getUserToShowId() == null)
|
||||||
activityDone.setEventBus(eventBus);
|
activityDone.setEventBus(eventBus);
|
||||||
|
|
||||||
String urlPostsIcon = GWT.getModuleBaseURL() + "../images/share-blue.png";
|
String urlPostsIcon = GWT.getModuleBaseURL() + "../images/share-blue.png";
|
||||||
|
@ -522,7 +522,7 @@ public class StatisticsPanel extends Composite {
|
||||||
activityGotWidgetContainer.clearPanelValues();
|
activityGotWidgetContainer.clearPanelValues();
|
||||||
activityGot = new ActivityWidget();
|
activityGot = new ActivityWidget();
|
||||||
|
|
||||||
if(!isProfilePage || information.isOwner())
|
if(!isProfilePage || getUserToShowId() == null)
|
||||||
activityGot.setEventBus(eventBus);
|
activityGot.setEventBus(eventBus);
|
||||||
|
|
||||||
if(isRoot || isProfilePage)
|
if(isRoot || isProfilePage)
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
.statistic-icon {
|
.statistic-icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: text-bottom;
|
vertical-align: text-bottom;
|
||||||
width: 22px;
|
|
||||||
height: 22px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.statistic-value {
|
.statistic-value {
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 1.1 KiB |
Loading…
Reference in New Issue