Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/feedback.html')
-rw-r--r--layouts/feedback.html25
1 files changed, 1 insertions, 24 deletions
diff --git a/layouts/feedback.html b/layouts/feedback.html
index 5c69e7eb..235ffdd1 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 %>