diff options
author | dcouture <dcouture@gitlab.com> | 2020-11-14 00:33:31 +0300 |
---|---|---|
committer | dcouture <dcouture@gitlab.com> | 2020-11-14 00:33:31 +0300 |
commit | 21e6e49ea68799a8d942cde078faa2614eb0d6bd (patch) | |
tree | 7f8903bb7ab0660b240886b9f729342f2725daae /layouts/feedback.html | |
parent | 98f967ef0b1f697277203bba981e64aa8913447d (diff) |
Add CSP meta tag
Diffstat (limited to 'layouts/feedback.html')
-rw-r--r-- | layouts/feedback.html | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/layouts/feedback.html b/layouts/feedback.html index ef091ee6..b1c44e7b 100644 --- a/layouts/feedback.html +++ b/layouts/feedback.html @@ -60,30 +60,7 @@ <div id="disqus_thread" class="disqus-comments-gitlab"></div> - <script> - var disqus_config = function () { - this.page.url = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>'; - this.page.title = '<%= @item.key?(:title) ? "#{item[:title]} - GitLab Documentation" : "GitLab Documentation" %>'; - <% if @item[:disqus_identifier] %> - this.page.identifier = '<%= @item[:disqus_identifier] %>'; - <% else %> - this.page.identifier = '<%= @config[:base_url] %><%= @item.identifier.without_ext + '.html' %>'; - <% end %> - }; - - var is_disqus_loaded = false; - window.loadDisqus = function() { - if (!is_disqus_loaded){ - is_disqus_loaded = true; - var disqusThread = document.getElementById('disqus_thread'); - var d = document, s = d.createElement('script'); - disqusThread.innerHTML = ''; - s.src = 'https://gitlab-docs.disqus.com/embed.js'; - s.setAttribute('data-timestamp', +new Date()); - (d.head || d.body).appendChild(s); - } - }; - </script> + <script src="<%= @items['/assets/javascripts/disqus.*'].path %>"></script> <script src="<%= @items['/frontend/feedback/feedback.*'].path %>"></script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript> <% end %> |