BreaMember picture is just a url and better container to show his/her profile.

This commit is contained in:
Offray Luna 2017-05-30 13:08:54 +00:00
parent a083e150a8
commit 3b5c671a08
2 changed files with 15 additions and 10 deletions

View File

@ -95,6 +95,14 @@ BreaMember >> familyName: anObject [
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 } { #category : #accessing }
BreaMember >> givenName [ BreaMember >> givenName [
^ givenName ^ givenName
@ -154,13 +162,14 @@ BreaMember >> htmlOutput [
{ #category : #public } { #category : #public }
BreaMember >> htmlOutputTemplate [ BreaMember >> htmlOutputTemplate [
"I show the member profile as HTML" "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"> <div class="mdl-card__title">
<h2 class="mdl-card__title-text">{{givenName}} {{familyName}}</h2> <h2 class="mdl-card__title-text">{{givenName}} {{familyName}}</h2>
</div> </div>
<div class="mdl-card__media"> <div class="mdl-card__media">
<img class="article-image" <img class="article-image"
src="./artifacts/members/offray-luna/picture.png" src="{{picture}}"
border="0" alt=""> border="0" alt="">
</div> </div>
<div class="mdl-card__supporting-text"> <div class="mdl-card__supporting-text">
@ -185,6 +194,7 @@ BreaMember >> htmlOutputTemplate [
mdl-js-ripple-effect mdl-button--accent" mdl-js-ripple-effect mdl-button--accent"
href="portfolio-example01.html">Read more</a> href="portfolio-example01.html">Read more</a>
</div> </div>
</div>
</div> </div>
' '
] ]
@ -242,12 +252,12 @@ BreaMember >> password: anObject [
{ #category : #accessing } { #category : #accessing }
BreaMember >> picture [ BreaMember >> picture [
^ picture ^ picture ifNil: [ ^ self getGenericProfilePicture ]
] ]
{ #category : #accessing } { #category : #accessing }
BreaMember >> picture: anObject [ BreaMember >> picture: anImageFilePath [
picture := anObject picture := anImageFilePath
] ]
{ #category : #helpers } { #category : #helpers }

View File

@ -11,11 +11,6 @@ Class {
#category : #Brea #category : #Brea
} }
{ #category : #utility }
BreaWebsite >> baseRepoUrl [
^ 'http://mutabit.com/repos.fossil/gig/'
]
{ #category : #accessing } { #category : #accessing }
BreaWebsite >> fossilRepo [ BreaWebsite >> fossilRepo [
^ fossilRepo ^ fossilRepo