Removed "Edit your profile picture" tooltip on user's avatar
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@122285 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a27851dbc6
commit
308f70092d
|
@ -4,16 +4,14 @@
|
|||
<ui:style>
|
||||
.image-preview {
|
||||
align: left;
|
||||
margin-right: 5px;
|
||||
margin-left: 2px;
|
||||
margin: 5px;
|
||||
display: inline;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
height: 40px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.attach-result {
|
||||
margin-top: 5px;
|
||||
vertical-align: top;
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
|
|
|
@ -6,7 +6,6 @@ import java.util.List;
|
|||
|
||||
import net.eliasbalasis.tibcopagebus4gwt.client.PageBusAdapter;
|
||||
import net.eliasbalasis.tibcopagebus4gwt.client.PageBusAdapterException;
|
||||
|
||||
import org.gcube.portal.databook.shared.ClientFeed;
|
||||
import org.gcube.portal.databook.shared.ClientFeed.ClientFeedJsonizer;
|
||||
import org.gcube.portal.databook.shared.FeedType;
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<table class="share-updates-table">
|
||||
<tr>
|
||||
<td class="share-updates-photo-cell">
|
||||
<g:Image title="Edit Profile Picture" styleName="share-updates-member-photo"
|
||||
<g:Image styleName="share-updates-member-photo"
|
||||
url="" ui:field="avatarImage" />
|
||||
</td>
|
||||
<td class="share-updates-cell">
|
||||
|
|
|
@ -124,7 +124,7 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
|||
}
|
||||
public String getDevelopmentUser() {
|
||||
String user = TEST_USER;
|
||||
// user = "costantino.perciante";
|
||||
user = "costantino.perciante";
|
||||
return user;
|
||||
}
|
||||
/**
|
||||
|
@ -334,24 +334,26 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
|||
firstAttachmentDescription = firstAttachment.getDescription();
|
||||
firstAttachmentFormat = firstAttachment.getFormat();
|
||||
firstAttachmentDownloadUrl = firstAttachment.getDownloadUrl();
|
||||
firstAttachmenturlThumbnail = firstAttachment.getThumbnailUrl() != null ? firstAttachment.getThumbnailUrl() : "null";
|
||||
firstAttachmenturlThumbnail =
|
||||
firstAttachment.getThumbnailUrl() != null ?
|
||||
firstAttachment.getThumbnailUrl() : firstAttachmenturlThumbnail;
|
||||
|
||||
if(uploadedFiles.size() > 1){
|
||||
if(uploadedFiles.size() > 1){
|
||||
|
||||
attachments = new ArrayList<>();
|
||||
attachments = new ArrayList<>();
|
||||
|
||||
// check if there are more files
|
||||
for (UploadedFile file : uploadedFiles) {
|
||||
attachments.add(new Attachment(
|
||||
UUID.randomUUID().toString(),
|
||||
file.getDownloadUrl(),
|
||||
file.getFileName(),
|
||||
file.getDescription(),
|
||||
file.getThumbnailUrl(),
|
||||
file.getFormat())
|
||||
);
|
||||
}
|
||||
}
|
||||
// check if there are more files
|
||||
for (UploadedFile file : uploadedFiles) {
|
||||
attachments.add(new Attachment(
|
||||
UUID.randomUUID().toString(),
|
||||
file.getDownloadUrl(),
|
||||
file.getFileName(),
|
||||
file.getDescription(),
|
||||
file.getThumbnailUrl(),
|
||||
file.getFormat())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -432,8 +434,6 @@ public class ShareUpdateServiceImpl extends RemoteServiceServlet implements Shar
|
|||
}
|
||||
if (!result) return null;
|
||||
|
||||
_log.debug("Saved feed text is " + toShare.getDescription());
|
||||
|
||||
//everything went fine
|
||||
ClientFeed cf = new ClientFeed(toShare.getKey(), toShare.getType().toString(), username, feedDate, toShare.getUri(),
|
||||
TextTransfromUtils.replaceAmpersand(toShare.getDescription()), fullName, email, thumbnailAvatarURL, toShare.getLinkTitle(), toShare.getLinkDescription(),
|
||||
|
|
Loading…
Reference in New Issue