Skip to content

Commit

Permalink
Remove infamous Disqus integration, and add Gitter embed chats
Browse files Browse the repository at this point in the history
  • Loading branch information
calvellido committed Jun 13, 2018
1 parent b2f63a3 commit 99bd158
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 25 deletions.
5 changes: 5 additions & 0 deletions server/app/assets/stylesheets/layout/_global.scss
Expand Up @@ -39,3 +39,8 @@ section {
margin-bottom: ($line-height-computed * 3);
}
}

// Gitter embed chat
.gitter-chat-embed {
top: $navbar-height;
}
21 changes: 0 additions & 21 deletions server/app/views/templates/library/disqus.scala.html

This file was deleted.

12 changes: 12 additions & 0 deletions server/app/views/templates/library/gitter.scala.html
@@ -0,0 +1,12 @@
@import play.api.Play.current
<div class="comments">

<script>
((window.gitter = {}).chat = {}).options = {
room : '@current.configuration.getString("gitter.room").getOrElse("")'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<noscript>Please enable JavaScript to access the library room in Gitter.</noscript>

</div>
2 changes: 1 addition & 1 deletion server/app/views/templates/library/index.scala.html
Expand Up @@ -111,7 +111,7 @@ <h2 class="pull-left">@section.name.humanizeUnderscore</h2>
</ul>
</div>

@templates.library.disqus()
@templates.library.gitter()

</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions server/conf/application.conf
Expand Up @@ -114,11 +114,11 @@ evaluator.url=${?EVALUATOR_URL}
evaluator.authKey="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eW91ciBpZGVudGl0eQ.cfH43Wa7k_w1i0W2pQhV1k21t2JqER9lw5EpJcENRMI"
evaluator.authKey=${?EVALUATOR_AUTH_KEY}

# Disqus
# Gitter
# ~~~~~~
# Config for Disqus
# Config for Gitter

disqus.domain = "scala-exercises.disqus.com"
gitter.room = "scala-exercises/scala-exercises"

# Exercises
# ~~~~~~~~~
Expand Down

0 comments on commit 99bd158

Please sign in to comment.