diff options
| author | Brian Ford | 2013-07-11 15:32:33 -0700 |
|---|---|---|
| committer | Brian Ford | 2013-07-11 15:32:33 -0700 |
| commit | 2c0753225a506185bf8b09b344e7615957009f02 (patch) | |
| tree | 771cb6a6b6267318d981d07b03f2e1e3f687f6cc /docs/src | |
| parent | 3b898664eea9913b6b25261d7310a61de476d173 (diff) | |
| download | angular.js-2c0753225a506185bf8b09b344e7615957009f02.tar.bz2 | |
revert: feat(ngDocs): add links to source for API
This reverts commit 61fb5863df4afe0fad688a44ff78b245b8439db2.
Diffstat (limited to 'docs/src')
| -rw-r--r-- | docs/src/ngdoc.js | 13 | ||||
| -rw-r--r-- | docs/src/templates/css/docs.css | 3 |
2 files changed, 3 insertions, 13 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index d1ebb388..84a165f2 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -274,16 +274,7 @@ Doc.prototype = { dom.h(title(this.name), function() { notice('deprecated', 'Deprecated API', self.deprecated); - dom.tag('a', {href: 'http://github.com/angular/angular.js/edit/master/' + self.file, class: 'improve-docs btn btn-primary'}, function(dom) { - dom.tag('i', {class:'icon-edit'}, ' '); - dom.text(' Improve this doc'); - }); - if (self.section === 'api') { - dom.tag('a', {href: 'http://github.com/angular/angular.js/tree/v' + gruntUtil.getVersion().number + '/' + self.file + '#L' + self.line, class: 'view-source btn btn-action'}, function(dom) { - dom.tag('i', {class:'icon-zoom-in'}, ' '); - dom.text(' View source'); - }); - } + dom.tag('a', {href: 'http://github.com/angular/angular.js/edit/master/' + self.file, class: 'improve-docs btn btn-primary'}, 'Improve this doc'); if (self.ngdoc != 'overview') { dom.h('Description', self.description, dom.html); } @@ -306,7 +297,7 @@ Doc.prototype = { ////////////////////////// function notice(name, legend, msg){ - if (self[name] === undefined) return; + if (self[name] == undefined) return; dom.tag('fieldset', {'class':name}, function(dom){ dom.tag('legend', legend); dom.text(msg); diff --git a/docs/src/templates/css/docs.css b/docs/src/templates/css/docs.css index 27d2bcd3..0bb631d8 100644 --- a/docs/src/templates/css/docs.css +++ b/docs/src/templates/css/docs.css @@ -86,9 +86,8 @@ img.AngularJS-small { /* Content */ /* =============================== */ -.improve-docs, .view-source { +.improve-docs { float: right; - margin: 0 5px; } .hint { |
