Skip to content

Commit

Permalink
hiding the second improve btn from JS and NG SDK examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tsonevn committed Jul 6, 2018
1 parent 31dc73d commit e86c24d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build/_assets/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,9 @@ div.right-nav__links .ns-button {
margin-top: 1.56em;
display: block;
}
.hide {
display: none !important;
}

.right-nav__links a:not(.ns-button) > i {
margin-right: .2em;
Expand Down
5 changes: 3 additions & 2 deletions build/_plugins/improvethis_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ def generate(site)

site.pages.each do |page|
pageImproveThisUrl = getPageImproveThisUrl(page)
if pageImproveThisUrl.nil? || pageImproveThisUrl.length == 0
regexexp = /(?i)(?:ns-ui-widgets|ng-ui-widgets|ns-framework-modules|ng-framework-modules|ns-hardware-access|ng-hardware-access|common-screens)/;
if pageImproveThisUrl.nil? || pageImproveThisUrl.length == 0 || (!(page.path.match(regexexp).nil?))
page.data['improvethisurl'] = ''
page.data['improvethisvisibilityclass'] = '-hidden'
page.data['improvethisvisibilityclass'] = 'hide'
else
page.data['improvethisurl'] = pageImproveThisUrl
page.data['improvethisvisibilityclass'] = ''
Expand Down

0 comments on commit e86c24d

Please sign in to comment.