nitweb/angular: add /module/:full_name page
authorAlexandre Terrasa <alexandre@moz-code.org>
Mon, 23 May 2016 22:16:49 +0000 (18:16 -0400)
committerAlexandre Terrasa <alexandre@moz-code.org>
Wed, 1 Jun 2016 03:54:07 +0000 (23:54 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

share/nitweb/javascripts/nitweb.js
share/nitweb/views/module.html [new file with mode: 0644]

index da5af24..9a4aa16 100644 (file)
                                controller: 'EntityCtrl',
                                controllerAs: 'entityCtrl'
                        })
+                       .when('/module/:id', {
+                               templateUrl: 'views/module.html',
+                               controller: 'EntityCtrl',
+                               controllerAs: 'entityCtrl'
+                       })
                        .otherwise({
                                redirectTo: '/'
                        });
diff --git a/share/nitweb/views/module.html b/share/nitweb/views/module.html
new file mode 100644 (file)
index 0000000..23f6d52
--- /dev/null
@@ -0,0 +1,20 @@
+<div class='container-fluid'>
+       <div class='page-header'>
+               <h2><entity-signature mentity='mentity'/></h2>
+               <entity-link mentity='mentity.mpackage' /> :: {{mentity.name}}
+       </div>
+
+       <ul class='nav nav-tabs'>
+               <li class='active'>
+                       <a data-toggle='tab' data-target='#doc'>
+                               <span class='glyphicon glyphicon-book'/> Doc
+                       </a>
+               </li>
+       </ul>
+
+       <div class='tab-content'>
+               <div role='tabpanel' class='tab-pane fade in active' id='doc'>
+                       <entity-doc mentity='mentity'/>
+               </div>
+       </div>
+</div>