diff --git a/app/coffee/app.coffee b/app/coffee/app.coffee index 482fe1bf..26fd1c73 100644 --- a/app/coffee/app.coffee +++ b/app/coffee/app.coffee @@ -333,6 +333,7 @@ modules = [ "taigaPlugins", "taigaIntegrations", "taigaComponents", + "taigaProfile", # template cache "templates", diff --git a/app/coffee/modules/profile.coffee b/app/coffee/modules/profile.coffee new file mode 100644 index 00000000..a32f6001 --- /dev/null +++ b/app/coffee/modules/profile.coffee @@ -0,0 +1,22 @@ +### +# Copyright (C) 2014 Andrey Antukh +# Copyright (C) 2014 Jesús Espino Garcia +# Copyright (C) 2014 David Barragán Merino +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +# File: modules/team.coffee +### + +module = angular.module("taigaProfile", []) diff --git a/app/coffee/modules/profile/main.coffee b/app/coffee/modules/profile/main.coffee new file mode 100644 index 00000000..d78c5c45 --- /dev/null +++ b/app/coffee/modules/profile/main.coffee @@ -0,0 +1,37 @@ +### +# Copyright (C) 2014 Andrey Antukh +# Copyright (C) 2014 Jesús Espino Garcia +# Copyright (C) 2014 David Barragán Merino +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +# File: modules/team/main.coffee +### + +taiga = @.taiga + +module = angular.module("taigaProfile") + +############################################################################# +## Profile Tabs +############################################################################# + +ProfileTabsDirective = () -> + link = ($scope, $el, $attrs) -> + console.log $el + + return {link:link} + + +module.directive("tgProfileTabs", ProfileTabsDirective) diff --git a/app/partials/home/home-logged-in.jade b/app/partials/home/home-logged-in.jade index f700c8d0..42b5ded5 100644 --- a/app/partials/home/home-logged-in.jade +++ b/app/partials/home/home-logged-in.jade @@ -1,7 +1,7 @@ include ../includes/components/beta div.profile.centered include ../includes/modules/profile/profile-bar - div.main + div.main(tg-profile-tabs) div.hero include ../includes/modules/profile/profile-content-tabs div.content-wrapper diff --git a/gulpfile.js b/gulpfile.js index b436c775..f7e83029 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -103,6 +103,7 @@ paths.coffee_order = [ paths.app + "coffee/modules/admin/*.coffee", paths.app + "coffee/modules/projects/*.coffee", paths.app + "coffee/modules/locales/*.coffee", + paths.app + "coffee/modules/profile/*.js", paths.app + "coffee/modules/base/*.coffee", paths.app + "coffee/modules/resources/*.coffee", paths.app + "coffee/modules/user-settings/*.coffee",