diff --git a/app/plugins/humanshtml/humanshtml.coffee b/app/plugins/humanshtml/humanshtml.coffee new file mode 100644 index 00000000..59130f8a --- /dev/null +++ b/app/plugins/humanshtml/humanshtml.coffee @@ -0,0 +1,31 @@ +### +# 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: plugins/humanshtml/humanshtml.coffee +### + +# Simple plugin example that extends the urlmappings +# and add additional template. + +taiga = @.taiga +module = angular.module("taigaPlugins") + +configure = ($routeProvider) -> + $routeProvider.when("/humans.html", {"templateUrl": "/plugins/humanshtml/templates/humans.html"}) + +module.config(["$routeProvider", configure]) diff --git a/app/plugins/humanshtml/templates/humans.html b/app/plugins/humanshtml/templates/humans.html new file mode 100644 index 00000000..63ee509c --- /dev/null +++ b/app/plugins/humanshtml/templates/humans.html @@ -0,0 +1,10 @@ +

Team

+ +
    +
  • Andrey Antukh «niwi@niwi.be»
  • +
  • Jesus Espino Garcia «jespinog@gmail.com»
  • +
  • David Barragán Merino «bameda@dbarragan.com»
  • +
  • Xavi Julian «xavier.julian@kaleidos.net»
  • +
  • Alejandro Alonso «alejandro.alonso@kaleidos.net»
  • +
+ diff --git a/app/plugins/main.coffee b/app/plugins/main.coffee index e43cd966..3f7d3e9d 100644 --- a/app/plugins/main.coffee +++ b/app/plugins/main.coffee @@ -19,4 +19,4 @@ # File: pluggins/main.coffee ### -module = angular.module("taigaPlugins", []) +module = angular.module("taigaPlugins", ["ngRoute"]) diff --git a/gulpfile.coffee b/gulpfile.coffee index b4e791ba..f8364b04 100644 --- a/gulpfile.coffee +++ b/gulpfile.coffee @@ -170,7 +170,6 @@ gulp.task "jslibs", -> .pipe(concat("libs.js")) .pipe(gulp.dest("dist/js/")) - gulp.task "locales", -> gulp.src("app/locales/en/app.json") .pipe(wrap("angular.module('taigaLocales').constant('localesEnglish', <%= contents %>);")) @@ -195,6 +194,9 @@ gulp.task "copy", -> gulp.src("#{paths.app}/images/**/*") .pipe(gulp.dest("#{paths.dist}/images/")) + gulp.src("#{paths.app}/plugins/**/templates/*") + .pipe(gulp.dest("#{paths.dist}/plugins/")) + gulp.task "connect", -> connect.server({ @@ -213,6 +215,7 @@ gulp.task "express", -> app.use("/images", express.static("#{__dirname}/dist/images")) app.use("/partials", express.static("#{__dirname}/dist/partials")) app.use("/fonts", express.static("#{__dirname}/dist/fonts")) + app.use("/plugins", express.static("#{__dirname}/dist/plugins")) app.all "/*", (req, res, next) -> # Just send the index.html for other files to support HTML5Mode