nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Added contributing guidelines and link from readme
[nit.git]
/
share
/
nitweb
/
directives
/
entity
/
defcard.html
diff --git
a/share/nitweb/directives/entity/defcard.html
b/share/nitweb/directives/entity/defcard.html
index
2c0b9c8
..
5a024fe
100644
(file)
--- a/
share/nitweb/directives/entity/defcard.html
+++ b/
share/nitweb/directives/entity/defcard.html
@@
-20,7
+20,18
@@
<span ng-if='!definition.mclassdef'>
in <entity-link mentity='definition.mmodule' />
</span>
<span ng-if='!definition.mclassdef'>
in <entity-link mentity='definition.mmodule' />
</span>
+ <div class='btn-bar'>
+ <button class='btn btn-link' aria-expanded='false'
+ data-target='#{{codeId}}' ng-click='loadCardCode()'
+ aria-controls='{{codeId}}'>
+ <span class='glyphicon glyphicon-console'
+ title='Show code' />
+ </button>
+ </div>
</h5>
</h5>
+ <div id='{{codeId}}' class='collapse'>
+ <pre ng-bind-html='code' />
+ </div>
<entity-location mentity='definition' />
</div>
</div>
<entity-location mentity='definition' />
</div>
</div>