diff --git a/src/main/scala/app/AccountController.scala b/src/main/scala/app/AccountController.scala index 3453055..e6a0632 100644 --- a/src/main/scala/app/AccountController.scala +++ b/src/main/scala/app/AccountController.scala @@ -46,6 +46,8 @@ params.getOrElse("tab", "repositories") match { // Public Activity case "activity" => account.html.activity(x, getActivitiesByUser(userName, true)) + // Members + case "members" if(x.isGroupAccount) => account.html.members(x, getGroupMembers(x.userName)) // Repositories case _ => account.html.repositories(x, getVisibleRepositories(userName, baseUrl, context.loginAccount.map(_.userName))) } diff --git a/src/main/twirl/account/members.scala.html b/src/main/twirl/account/members.scala.html new file mode 100644 index 0000000..e2366b9 --- /dev/null +++ b/src/main/twirl/account/members.scala.html @@ -0,0 +1,33 @@ +@(account: model.Account, members: List[String])(implicit context: app.Context) +@import context._ +@import view.helpers._ +@html.main(account.userName){ +
+
+
+
+ +
@account.userName
+
+
+
@account.url
+
Joined on @date(account.registeredDate)
+
+
+
+ @tab(account, "members") + @if(members.isEmpty){ + No members + } else { + @members.map { userName => +
+
+ @avatar(userName, 20) @userName +
+
+ } + } +
+
+
+} \ No newline at end of file diff --git a/src/main/twirl/account/tab.scala.html b/src/main/twirl/account/tab.scala.html index 2a12a0c..0e2a9fe 100644 --- a/src/main/twirl/account/tab.scala.html +++ b/src/main/twirl/account/tab.scala.html @@ -3,7 +3,11 @@ @import view.helpers._