Commit 42fa45ba authored by alexandre's avatar alexandre

Credits page

parent 390a7e66
......@@ -28,6 +28,16 @@ window.W = window.W || {};
},
credits: function () {
document.title = 'Organon: Crédits';
var baseView = this.getOption('application').getView();
var view = new W.CreditsView();
baseView.showChildView('main', view);
baseView.getChildView('help').triggerMethod("hide");
},
userList: function () {
document.title = 'Organon: liste des utilisateurs';
......
......@@ -10,6 +10,7 @@ window.W = window.W || {};
appRoutes: {
'': 'home',
'la-notation-w(/)': 'about',
'credits(/)': 'credits',
'partitions(/)': 'scoreList',
'partitions/:id(/)': 'scoreDetail',
'users(/)': 'userList',
......
......@@ -2761,6 +2761,13 @@ window.W = window.W || {};
});
W.CreditsView = Marionette.View.extend({
template: '#credits-template',
className: 'body-text body-text--about content',
});
W.HomeView = Marionette.View.extend({
template: '#home-template',
......
......@@ -24,6 +24,10 @@
{% include "playground/underscore/about.mtpl" %}
</script>
<script id="credits-template" type="text/template">
{% include "playground/underscore/credits.mtpl" %}
</script>
<script id="applied-filters-template" type="text/template">
{% include "playground/underscore/applied-filters.mtpl" %}
</script>
......
{% load flatpages %}
{% get_flatpages '/credits/' as credits_pages %}
{% for page in credits_pages %}
{{ page.content|safe }}
{% endfor %}
......@@ -36,7 +36,7 @@
<% } else { %>
<li class="menu__item"><a href="#" class="js-lang" data-lang="fr">Français</a></li>
<% } %>
<li class="menu__item"><a href="#"><%- t('Crédits') %></a></li>
<li class="menu__item"><a href="/credits/"><%- t('Crédits') %></a></li>
<li class="menu__item"><a href="http://1110111.org"><%- t('Site W') %></a></li>
</ul>
</nav>
......
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