Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Port templates in core to django templating syntax
  • Loading branch information
Nehemiah60 committed Feb 2, 2023
commit 1622bce8716b0f29e45f52dde7f059b38b94fd6e
16 changes: 8 additions & 8 deletions project/core/templates/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{% load i18n %}

{% block extra_css %}
<link type="text/css" rel="stylesheet/less" href="{% static "less/about.less" %}"/>
<link type="text/css" rel="stylesheet/less" href="{% static " less/about.less" %}" />
{% endblock extra_css %}

{% block page_title %}{% trans "About Us" %}{% endblock page_title %}

{% block content %}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{% block content %}

<script id="about-template" type="text/template">
<header>
<div class="content-header center">
Expand Down Expand Up @@ -185,17 +185,17 @@ <h3 class="title">{% trans "Sponsors" %} </h3>
</div>
</main>
</script>
{% endblock content %}


{% block content %}
{% include "static_nav.html" %}
<div id="about"></div>
<div id="about"></div>
{% endblock content %}

{% block content%}
{% block extra_js%}
<!-- Backbone Views File -->
<script src="{% static "js/static/about_view.js" %}" type="text/javascript"></script>
<script src="{% static " js/static/about_view.js" %}" type="text/javascript"></script>
<script type="text/javascript">
var aboutView = new cw.AboutView();
</script>
{% endblock content%}
{% endblock extra_js%}
2 changes: 1 addition & 1 deletion project/core/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

</head>

{% block backbone_template %}{% endblock backbone_template %}


<body class="{% block body_class %}{% endblock body_class %}" id="{% block body_id %}{% endblock body_id %}">
{% include "global_nav.html" %}
Expand Down
16 changes: 8 additions & 8 deletions project/core/templates/general_message.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{% load i18n %}

{% block extra_css %}
<link type="text/css" rel="stylesheet/less" href="{% static "less/base.less" %}"/>
<link type="text/css" rel="stylesheet/less" href="{% static " less/base.less" %}" />
{% endblock extra_css %}

{% block page_title %}{{ title }}{% endblock page_title %}

{% block content%}

<script id="general-template" type="text/template">
<div id="general-section" class="center container section">
<div class="row">
Expand All @@ -29,18 +29,18 @@
</div>
</div>
</script>
{% endblock content %}


{% block body_id %}general_wrapper{% endblock body_id %}
{% block content %}
<div id="general">
</div>
<div id="general">
</div>
{% endblock content %}

{% block content %}
{% block extra_js%}
<!-- Backbone Views File -->
<script type="text/javascript" src="{% static "js/general_view.js" %}"></script>
<script type="text/javascript" src="{% static " js/general_view.js" %}"></script>
<script type="text/javascript">
var generalView = new cw.GeneralView();
</script>
{% endblock content %}
{% endblock extra_js%}
7 changes: 3 additions & 4 deletions project/core/templates/how_it_works.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<link type="text/css" rel="stylesheet/less" href="{% static " less/how_it_works.less" %}" />
{% endblock extra_css %}

{% block content %}
<script id="howitworks-template" type="text/template">
<div class="content-header center">
<div class="container section">
Expand Down Expand Up @@ -38,17 +37,17 @@ <h4 class="dark-purple">{% trans "Still not sure about something in CiviWiki?" %
</div>
</div>
</script>
{% endblock content%}


{% block content %}
{% include "static_nav.html" %}
<div id="howitworks"></div>
{% endblock content %}

{% block content %}
{% block extra_js %}
<!-- Backbone Views File -->
<script src="{% static " js/static/how_it_works_view.js" %}" type="text/javascript"></script>
<script type="text/javascript">
var howitworksView = new cw.HowItWorksView();
</script>
{% endblock content %}
{% endblock extra_js%}
4 changes: 2 additions & 2 deletions project/core/templates/support_us.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h4 class="center">{% trans "Spread the Word" %} </h4>
<div id="supportus"></div>
{% endblock content %}

{% block content %}

<!-- Backbone Views File -->
<script src="{% static "js/static/support_us_view.js" %}" type="text/javascript"></script>
<script type="text/javascript">
Expand All @@ -139,4 +139,4 @@ <h4 class="center">{% trans "Spread the Word" %} </h4>

});
</script>
{% endblock content %}