diff --git a/lang/en.json b/lang/en.json index 691eb3a6..5f9a511f 100644 --- a/lang/en.json +++ b/lang/en.json @@ -51,7 +51,10 @@ "fires": "Fires", "functions": "Method |||| Methods", "globals": "Global |||| Globals", + "implementations": "Implemented by", + "implements": "Implements", "inheritedFrom": "Inherited from", + "interfaces": "Interface |||| Interfaces", "license": "License", "listeners": "Listener |||| Listeners", "listens": "Listens to", diff --git a/lib/enums.js b/lib/enums.js index d76cfa83..fb1f6294 100644 --- a/lib/enums.js +++ b/lib/enums.js @@ -23,6 +23,7 @@ var CATEGORIES = exports.CATEGORIES = { EXTERNALS: 'externals', FUNCTIONS: 'functions', GLOBALS: 'globals', + INTERFACES: 'interfaces', LISTENERS: 'listeners', MIXINS: 'mixins', MODULES: 'modules', @@ -42,6 +43,7 @@ exports.KIND_TO_CATEGORY = { 'event': CATEGORIES.EVENTS, 'external': CATEGORIES.EXTERNALS, 'function': CATEGORIES.FUNCTIONS, + 'interface': CATEGORIES.INTERFACES, 'member': CATEGORIES.PROPERTIES, 'mixin': CATEGORIES.MIXINS, 'module': CATEGORIES.MODULES, @@ -56,6 +58,7 @@ exports.KIND_TO_CATEGORY = { exports.OUTPUT_FILE_CATEGORIES = [ CATEGORIES.CLASSES, CATEGORIES.EXTERNALS, + CATEGORIES.INTERFACES, CATEGORIES.MIXINS, CATEGORIES.MODULES, CATEGORIES.NAMESPACES diff --git a/views/includes/details.swig b/views/includes/details.swig index 0d2d9525..1be73e55 100644 --- a/views/includes/details.swig +++ b/views/includes/details.swig @@ -1,6 +1,8 @@ {% include 'lists/version.swig' %} {% include 'lists/since.swig' %} {% include 'lists/inherited.swig' %} +{% include 'lists/implements.swig' %} +{% include 'lists/implementations.swig' %} {% include 'lists/mixes.swig' %} {% include 'lists/deprecated.swig' %} {% include 'lists/author.swig' %} diff --git a/views/includes/lists/implementations.swig b/views/includes/lists/implementations.swig new file mode 100644 index 00000000..e65bd255 --- /dev/null +++ b/views/includes/lists/implementations.swig @@ -0,0 +1,6 @@ +{% import '../../macros.swig' as macros %} + +{% if implementations && implementations.length %} +
{{ translate('headings.implementations', implementations.length) }}
+ {{ macros.listItems(implementations, { needsLink: true }) }} +{% endif %} diff --git a/views/includes/lists/implements.swig b/views/includes/lists/implements.swig new file mode 100644 index 00000000..a57fe52c --- /dev/null +++ b/views/includes/lists/implements.swig @@ -0,0 +1,6 @@ +{% import '../../macros.swig' as macros %} + +{% if implements && implements.length %} +
{{ translate('headings.implements', implements.length) }}
+ {{ macros.listItems(implements, { needsLink: true }) }} +{% endif %}