diff --git a/app/coffee/modules/team/main.coffee b/app/coffee/modules/team/main.coffee index c69e3714..09e00401 100644 --- a/app/coffee/modules/team/main.coffee +++ b/app/coffee/modules/team/main.coffee @@ -136,54 +136,91 @@ TeamFiltersDirective = () -> module.directive("tgTeamFilters", [TeamFiltersDirective]) +############################################################################# +## Team Member Stats Directive +############################################################################# + +TeamMemberStatsDirective = () -> + template = """ +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ """ + return { + template: template + } + +module.directive("tgTeamMemberStats", TeamMemberStatsDirective) + +############################################################################# +## Team Member Directive +############################################################################# + +TeamMemberCurrentUserDirective = () -> + template = """ +
+
+
+ +
+ +
+
+
+
+
+
+ """ + return { + template: template + scope: { + currentUser: "=currentuser", + stats: "=" + } + } + +module.directive("tgTeamCurrentUser", TeamMemberCurrentUserDirective) + ############################################################################# ## Team Members Directive ############################################################################# TeamMembersDirective = () -> template = """ -
+
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
+
""" return { - link: (scope) -> - if not _.isArray(scope.memberships) - scope.memberships = [scope.memberships] - template: template scope: { memberships: "=", filtersQ: "=filtersq", filtersRole: "=filtersrole", - currentUser: "@currentuser", stats: "=" } } @@ -208,8 +245,6 @@ LeaveProjectDirective = ($repo, $confirm, $location) -> console.log "TODO" return { scope: {}, - restrict: "EA", - replace: true, template: template, link: link } diff --git a/app/partials/views/modules/team/team-table.jade b/app/partials/views/modules/team/team-table.jade index 166a615e..43056945 100644 --- a/app/partials/views/modules/team/team-table.jade +++ b/app/partials/views/modules/team/team-table.jade @@ -26,7 +26,7 @@ section.table-team.basic-table div.popover.attribute-explanation span How far did you go into this Taiga? - div.hero(tg-team-members, memberships="currentUser" currentuser=true) + div.hero(tg-team-current-user, currentuser="currentUser") h2 span Team > diff --git a/app/styles/modules/admin/admin-membership-table.scss b/app/styles/modules/admin/admin-membership-table.scss index 6e15db4d..adbadf9d 100644 --- a/app/styles/modules/admin/admin-membership-table.scss +++ b/app/styles/modules/admin/admin-membership-table.scss @@ -90,7 +90,6 @@ .header-status { @include table-flex-child(1, 50px, 0); } - .check { background-color: darken($whitish, 10%); border-radius: 2px; diff --git a/app/styles/modules/team/team-table.scss b/app/styles/modules/team/team-table.scss index e9e4f3e7..bed23da5 100644 --- a/app/styles/modules/team/team-table.scss +++ b/app/styles/modules/team/team-table.scss @@ -5,6 +5,10 @@ .username { @include table-flex-child(3, 0, 0); } + .member-stats { + @include table-flex(stretch, center, flex, row, wrap, flex-start); + @include table-flex-child(6, 0, 0); + } .attribute { @include table-flex-child(1, 0, 0); position: relative;