From: Alexandre Terrasa Date: Wed, 1 Jun 2016 02:26:51 +0000 (-0400) Subject: nitweb/angular: add /group/:full_name page X-Git-Url: http://nitlanguage.org nitweb/angular: add /group/:full_name page Signed-off-by: Alexandre Terrasa --- diff --git a/share/nitweb/directives/group-block.html b/share/nitweb/directives/group-block.html new file mode 100644 index 0000000..ad7f00e --- /dev/null +++ b/share/nitweb/directives/group-block.html @@ -0,0 +1,21 @@ +
+
+ +
+
+
+ +
+ {{mentity.mdoc.synopsis}} +
+ +
+
+ +
+
+
diff --git a/share/nitweb/javascripts/nitweb.js b/share/nitweb/javascripts/nitweb.js index f5e06b2..da5af24 100644 --- a/share/nitweb/javascripts/nitweb.js +++ b/share/nitweb/javascripts/nitweb.js @@ -27,6 +27,11 @@ controller: 'EntityCtrl', controllerAs: 'entityCtrl' }) + .when('/group/:id', { + templateUrl: 'views/group.html', + controller: 'EntityCtrl', + controllerAs: 'entityCtrl' + }) .otherwise({ redirectTo: '/' }); diff --git a/share/nitweb/views/group.html b/share/nitweb/views/group.html new file mode 100644 index 0000000..ef07e48 --- /dev/null +++ b/share/nitweb/views/group.html @@ -0,0 +1,21 @@ +
+ + + + +
+
+ +
+
+
+