BreaMember picture is just a url and better container to show his/her profile.
This commit is contained in:
parent
a083e150a8
commit
3b5c671a08
@ -95,6 +95,14 @@ BreaMember >> familyName: anObject [
|
||||
familyName := anObject
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
BreaMember >> getGenericProfilePicture [
|
||||
"Other considered avatars where:
|
||||
'https://upload.wikimedia.org/wikipedia/commons/1/1e/Default-avatar.jpg'"
|
||||
self picture: 'https://www.jamf.com/jamf-nation/img/default-avatars/generic-user.png'.
|
||||
^ picture
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
BreaMember >> givenName [
|
||||
^ givenName
|
||||
@ -154,13 +162,14 @@ BreaMember >> htmlOutput [
|
||||
{ #category : #public }
|
||||
BreaMember >> htmlOutputTemplate [
|
||||
"I show the member profile as HTML"
|
||||
^ '<div class="mdl-cell mdl-card mdl-shadow--4dp portfolio-card">
|
||||
^ '<div class="mdl-grid portfolio-max-width">
|
||||
<div class="mdl-cell mdl-card mdl-shadow--4dp portfolio-card">
|
||||
<div class="mdl-card__title">
|
||||
<h2 class="mdl-card__title-text">{{givenName}} {{familyName}}</h2>
|
||||
</div>
|
||||
<div class="mdl-card__media">
|
||||
<img class="article-image"
|
||||
src="./artifacts/members/offray-luna/picture.png"
|
||||
src="{{picture}}"
|
||||
border="0" alt="">
|
||||
</div>
|
||||
<div class="mdl-card__supporting-text">
|
||||
@ -186,6 +195,7 @@ BreaMember >> htmlOutputTemplate [
|
||||
href="portfolio-example01.html">Read more</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
'
|
||||
]
|
||||
|
||||
@ -242,12 +252,12 @@ BreaMember >> password: anObject [
|
||||
|
||||
{ #category : #accessing }
|
||||
BreaMember >> picture [
|
||||
^ picture
|
||||
^ picture ifNil: [ ^ self getGenericProfilePicture ]
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
BreaMember >> picture: anObject [
|
||||
picture := anObject
|
||||
BreaMember >> picture: anImageFilePath [
|
||||
picture := anImageFilePath
|
||||
]
|
||||
|
||||
{ #category : #helpers }
|
||||
|
@ -11,11 +11,6 @@ Class {
|
||||
#category : #Brea
|
||||
}
|
||||
|
||||
{ #category : #utility }
|
||||
BreaWebsite >> baseRepoUrl [
|
||||
^ 'http://mutabit.com/repos.fossil/gig/'
|
||||
]
|
||||
|
||||
{ #category : #accessing }
|
||||
BreaWebsite >> fossilRepo [
|
||||
^ fossilRepo
|
||||
|
Loading…
Reference in New Issue
Block a user