Commit 34ee2c8d authored by Kedar A.'s avatar Kedar A. 💻

Static dependencies for OrgitDown needed in discussion checked before getting fetched.

parent 3a346604
......@@ -69,8 +69,11 @@
{% edit_policy groupid node request.user as status %}
var edit_policy = "{{ status }}"; // "allow" or "disallow"
$("#orgitdownreps").orgitdown(mySettings);
if( user_access == "allow" && edit_policy == "allow" )
{
$("#orgitdownreps").orgitdown(mySettings);
}
function createDiscussion()
{
......
......@@ -6,22 +6,19 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Scripts required for D3 graph -->
<script type="text/javascript" src="/static/ndf/bower_components/d3/d3.min.js"></script> <!-- checked -->
<script type="text/javascript" src="/static/ndf/bower_components/underscore/underscore.js"></script> <!-- checked -->
<script sync="text/javascript" src="/static/ndf/bower_components/FileSaver/FileSaver.js" ></script> <!-- checked -->
<!-- Scripts and stylesheets for SideComments -->
<script type="text/javascript" src="/static/ndf/bower_components/side-comments/release/side-comments.js"></script>
<link rel="stylesheet" type="text/css" href="/static/ndf/bower_components/side-comments/release/side-comments.css">
<link rel="stylesheet" type="text/css" href="/static/ndf/bower_components/side-comments/release/themes/default-theme.css">
<!-- orgitdown! -->
<script type="text/javascript" src="/static/ndf/orgitdown/jquery.orgitdown-foundation.js"></script>
<!-- orgitdown! toolbar settings -->
<script type="text/javascript" src="/static/ndf/orgitdown/skins/gstudio/set.js"></script>
<!-- orgitdown! skin -->
<link rel="stylesheet" type="text/css" href="/static/ndf/orgitdown/skins/gstudio/style.css" />
<!-- <script type="text/javascript" src="/static/ndf/bower_components/side-comments/release/side-comments.js"></script> -->
<!-- <link rel="stylesheet" type="text/css" href="/static/ndf/bower_components/side-comments/release/side-comments.css"> -->
<!-- <link rel="stylesheet" type="text/css" href="/static/ndf/bower_components/side-comments/release/themes/default-theme.css"> -->
{% if user.is_authenticated %}
<!-- orgitdown! -->
<script type="text/javascript" src="/static/ndf/orgitdown/jquery.orgitdown-foundation.js"></script>
<!-- orgitdown! toolbar settings -->
<script type="text/javascript" src="/static/ndf/orgitdown/skins/gstudio/set.js"></script>
<!-- orgitdown! skin -->
<link rel="stylesheet" type="text/css" href="/static/ndf/orgitdown/skins/gstudio/style.css" />
{% endif %}
{% endblock %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment