Commit 42fa45ba authored by alexandre's avatar alexandre

Credits page

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