From 3b5c671a0816372a8f1f1b8f74c857d3fa8e0ec6 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Tue, 30 May 2017 13:08:54 +0000 Subject: [PATCH] BreaMember picture is just a url and better container to show his/her profile. --- repository/Brea/BreaMember.class.st | 20 +++++++++++++++----- repository/Brea/BreaWebsite.class.st | 5 ----- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/repository/Brea/BreaMember.class.st b/repository/Brea/BreaMember.class.st index 3b3dfc2..51c88e2 100644 --- a/repository/Brea/BreaMember.class.st +++ b/repository/Brea/BreaMember.class.st @@ -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" - ^ '
+ ^ '
+

{{givenName}} {{familyName}}

@@ -186,6 +195,7 @@ BreaMember >> htmlOutputTemplate [ href="portfolio-example01.html">Read more
+
' ] @@ -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 } diff --git a/repository/Brea/BreaWebsite.class.st b/repository/Brea/BreaWebsite.class.st index 02234aa..317d716 100644 --- a/repository/Brea/BreaWebsite.class.st +++ b/repository/Brea/BreaWebsite.class.st @@ -11,11 +11,6 @@ Class { #category : #Brea } -{ #category : #utility } -BreaWebsite >> baseRepoUrl [ - ^ 'http://mutabit.com/repos.fossil/gig/' -] - { #category : #accessing } BreaWebsite >> fossilRepo [ ^ fossilRepo