First commit
This commit is contained in:
commit
440f5a7df4
1563 changed files with 217996 additions and 0 deletions
21
templates/courses/list.html
Normal file
21
templates/courses/list.html
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
{% extends 'layout.html' %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<h1>Liste des cours</h1>
|
||||
<div class="container-inline">
|
||||
{% for course in courses %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
{% load static %}
|
||||
<img class="thumbnails" src="{{ course.thumbnail.url }}" alt="Image des cours sur {{ course.name }}" class="src">
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h2><a href="{% url 'courses:show' course.id course.name|slugify %}">{{ course.name }}</a></h2>
|
||||
{{ course.content|truncatechars_html:250 }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
17
templates/courses/partials/list.html
Normal file
17
templates/courses/partials/list.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<section>
|
||||
<h1>Liste des derniers cours</h1>
|
||||
<div class="container-inline">
|
||||
{% for course in courses %}
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
{% load static %}
|
||||
<img class="thumbnails" src="{{ course.thumbnail.url }}" alt="Image des cours sur {{ course.name }}" class="src">
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<h2><a href="{% url 'courses:show' course.id course.name|slugify %}">{{ course.name }}</a></h2>
|
||||
{{ course.content|truncatechars_html:250 }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
40
templates/courses/show.html
Normal file
40
templates/courses/show.html
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{% extends 'layout.html' %}
|
||||
|
||||
{% block content %}
|
||||
<section>
|
||||
<h1>{{ course.name }}</h1>
|
||||
<p class="def-author"><img src="/{{ course.author.profile.avatar }}" alt="Profile Picture" class="profile-picture-mini">Un cours proposé par <a href="{% url 'another_profile' course.author.id %}">{{ course.author }}</a></p>
|
||||
<p>{{ course.content }}</p>
|
||||
<aside class="courseNav">
|
||||
<ol>
|
||||
{% for lesson in lessons %}
|
||||
<li><a href="#{{ lesson.name|slugify }}">{{ lesson.name }}</a></li>
|
||||
{% endfor %}
|
||||
<li><a href="#comments">Commentaires</a></li>
|
||||
</ol>
|
||||
</aside>
|
||||
{% for lesson in lessons %}
|
||||
<h2 id="{{ lesson.name|slugify }}">{{ lesson.name }}</h2>
|
||||
{{ lesson.content|safe }}
|
||||
{% endfor %}
|
||||
<h1 id="comments">Commentaires</h1>
|
||||
<div id="disqus_thread"></div>
|
||||
<script>
|
||||
/**
|
||||
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
|
||||
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
|
||||
/**/
|
||||
var disqus_config = function () {
|
||||
this.page.url = "{{ request.build_absolute_uri|safe }}"; // Replace PAGE_URL with your page's canonical URL variable
|
||||
this.page.identifier = "{{ course.id }}"; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
|
||||
};
|
||||
(function() { // DON'T EDIT BELOW THIS LINE
|
||||
var d = document, s = d.createElement('script');
|
||||
s.src = 'https://partirdezero.disqus.com/embed.js';
|
||||
s.setAttribute('data-timestamp', +new Date());
|
||||
(d.head || d.body).appendChild(s);
|
||||
})();
|
||||
</script>
|
||||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue