From 591ff738ee309a0fa1ffbe3263e2411d0a292885 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Mon, 8 Jun 2020 07:40:13 +0300 Subject: [PATCH] Added roles tooltip --- app/views/console/users/team.phtml | 123 +++++++++++++++++------------ public/scripts/filters.js | 7 ++ 2 files changed, 78 insertions(+), 52 deletions(-) diff --git a/app/views/console/users/team.phtml b/app/views/console/users/team.phtml index c31afd222f..b6e54838a0 100644 --- a/app/views/console/users/team.phtml +++ b/app/views/console/users/team.phtml @@ -1,7 +1,7 @@
@@ -34,7 +34,7 @@

General

-
+
@@ -67,13 +67,13 @@
+ data-name="project-members">

No Memberships Found

@@ -81,94 +81,113 @@

Create your first team member to get started

-
-
results found
+
+
members found
-
- - - - - - - - - - - - - - - - - -
NameMembersCreated
- Collection Avatar - - -
+
+
    +
  • +
    + + + + + +
    + + User Avatar + +
    +    + + +
    +   Pending Approval +
  • +
- diff --git a/public/scripts/filters.js b/public/scripts/filters.js index 6f08193df6..54d0fe8060 100644 --- a/public/scripts/filters.js +++ b/public/scripts/filters.js @@ -406,6 +406,13 @@ window.ls.filter return $value.substring(0, 50) + postfix; ; }) + .add("arraySentence", function($value) { + if(!Array.isArray($value)) { + return ''; + } + + return $value.join(", ").replace(/,\s([^,]+)$/, ' and $1'); + }) ; function abbreviate(number, maxPlaces, forcePlaces, forceLetter) {