Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
controller: 'EntityCtrl',
controllerAs: 'entityCtrl'
})
+ .when('/classdef/:id', {
+ templateUrl: 'views/classdef.html',
+ controller: 'EntityCtrl',
+ controllerAs: 'entityCtrl'
+ })
.otherwise({
redirectTo: '/'
});
color: #666;
font-family: monospace;
}
+
+/* tabs */
+
+.nav-tabs li { cursor: pointer; }
+
+.nav>li.warning>a {
+ color: #fff;
+ background-color: #f0ad4e;
+}
+
+.nav>li.warning>a:focus, .nav>li.warning>a:hover {
+ background-color: #ff9c0f;
+}
+
/*
* Code Highlighting
*/
--- /dev/null
+<div class='container-fluid'>
+ <div class='page-header'>
+ <h2><entity-signature mentity='mentity'/></h2>
+ <entity-link mentity='mentity.mpackage' />
+ :: <entity-link mentity='mentity.mmodule' />
+ :: {{mentity.name}}
+ </div>
+
+ <ul class='nav nav-tabs' role='tablist'>
+ <li class='warning'>
+ <a ng-href='{{mentity.mclass.web_url}}'>
+ <span class='glyphicon glyphicon-chevron-left'/> Go to class
+ </a>
+ </li>
+ </ul>
+</div>