From: Alexandre Terrasa Date: Wed, 1 Jun 2016 02:48:42 +0000 (-0400) Subject: nitweb/angular: add /classdef/:full_name page X-Git-Url: http://nitlanguage.org nitweb/angular: add /classdef/:full_name page Signed-off-by: Alexandre Terrasa --- diff --git a/share/nitweb/javascripts/nitweb.js b/share/nitweb/javascripts/nitweb.js index 9a4aa16..e426fea 100644 --- a/share/nitweb/javascripts/nitweb.js +++ b/share/nitweb/javascripts/nitweb.js @@ -37,6 +37,11 @@ controller: 'EntityCtrl', controllerAs: 'entityCtrl' }) + .when('/classdef/:id', { + templateUrl: 'views/classdef.html', + controller: 'EntityCtrl', + controllerAs: 'entityCtrl' + }) .otherwise({ redirectTo: '/' }); diff --git a/share/nitweb/stylesheets/nitweb.css b/share/nitweb/stylesheets/nitweb.css index 18f2f4e..2baad72 100644 --- a/share/nitweb/stylesheets/nitweb.css +++ b/share/nitweb/stylesheets/nitweb.css @@ -76,6 +76,20 @@ a { 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 */ diff --git a/share/nitweb/views/classdef.html b/share/nitweb/views/classdef.html new file mode 100644 index 0000000..50768ec --- /dev/null +++ b/share/nitweb/views/classdef.html @@ -0,0 +1,16 @@ +
+ + + +