Revert "LMS: Fixed views for article and video"
This reverts commit 9b7585405f7e25dcdcba4e131066d6b57a1d8899.
diff --git a/erpnext/www/lms/course.html b/erpnext/www/lms/course.html
index bd2d6b8..9896b01 100644
--- a/erpnext/www/lms/course.html
+++ b/erpnext/www/lms/course.html
@@ -1,7 +1,6 @@
{% extends "frappe_theme/templates/base.html" %}
{% block title %}ERPNext Academy{% endblock %}
{% from "templates/includes/media.html" import media %}
-<<<<<<< HEAD
{% block head_include %}
<meta name="description" content="ERPNext Academy is a learnig platform to gain expertise in the world's top 100% open source ERP software." />
<meta name="keywords" content="ERP Software, Cloud ERP, Open Source ERP, Accounting Software, Online ERP, Online Accounting, ERP for small business, Learn ERP, ERPNext Academy, Learn ERPNext, Learn Accounting" />
@@ -11,11 +10,6 @@
{% with content = current_content, next_content = next_content, course_name = course_name, program_name = program_name %}
{% include "www/lms/templates/includes/" + content_type.lower() + ".html" %}
{% endwith %}
-=======
-{% block content %}
-<div id="content-holder" data-type="{{ content_type }}" data-content="{{ current_content.name }}" data-course="{{ course_name }}" data-program="{{ program_name }}">
-{% include "www/lms/templates/includes/" + content_type.lower() + ".html" %}
->>>>>>> LMS: Fixed views for article and video
</div>
<style>
.footer-message {
diff --git a/erpnext/www/lms/program.html b/erpnext/www/lms/program.html
index ba21e4c..00e13cb 100644
--- a/erpnext/www/lms/program.html
+++ b/erpnext/www/lms/program.html
@@ -1,6 +1,11 @@
{% extends "frappe_theme/templates/base.html" %}
{% block title %}ERPNext Academy{% endblock %}
+{% block head_include %}
+<meta name="description" content="ERPNext Academy is a learnig platform to gain expertise in the world's top 100% open source ERP software." />
+<meta name="keywords" content="ERP Software, Cloud ERP, Open Source ERP, Accounting Software, Online ERP, Online Accounting, ERP for small business, Learn ERP, ERPNext Academy, Learn ERPNext, Learn Accounting" />
+{% endblock %}
+
{% macro course_card(course) %}
<div class="card mt-3" data-list="getting-started">
<div class='card-body'>
diff --git a/erpnext/www/lms/templates/includes/article.html b/erpnext/www/lms/templates/includes/article.html
index 487a4c5..15835b8 100644
--- a/erpnext/www/lms/templates/includes/article.html
+++ b/erpnext/www/lms/templates/includes/article.html
@@ -2,7 +2,6 @@
<div class='container'>
<div class="row">
<div class="col-md-8">
-<<<<<<< HEAD
<h2>{{ content.title }}</h2>
<span class="text-muted">
Published on {{ content.publish_date }}, by {{ content.author }}
@@ -12,15 +11,6 @@
{% with next_content = next_content, course_name = course_name, program_name = program_name %}
{% include "www/lms/templates/includes/lms-nav.html" %}
{% endwith %}
-=======
- <h2>{{ current_content.title }}</h2>
- <span class="text-muted">
- Published on {{ current_content.publish_date }}, by {{ current_content.author }}
- </span>
- </div>
- <div class="col-md-4 text-right">
- {% include "www/lms/templates/includes/lms-nav.html" %}
->>>>>>> LMS: Fixed views for article and video
</div>
</div>
<hr>
@@ -29,19 +19,12 @@
<section class="article-content-section">
<div class='container'>
<div class="content">
-<<<<<<< HEAD
{{ content.content }}
</div>
<div class="text-right">
{% with next_content = next_content, course_name = course_name, program_name = program_name %}
{% include "www/lms/templates/includes/lms-nav.html" %}
{% endwith %}
-=======
- {{ current_content.content }}
- </div>
- <div class="text-right">
- {% include "www/lms/templates/includes/lms-nav.html" %}
->>>>>>> LMS: Fixed views for article and video
</div>
<div class="mt-3 text-right">
<a class="text-muted" href="/report"><i class="octicon octicon-issue-opened" title="Report"></i> Report a
diff --git a/erpnext/www/lms/templates/includes/quiz.html b/erpnext/www/lms/templates/includes/quiz.html
index a93bb16..8d20a26 100644
--- a/erpnext/www/lms/templates/includes/quiz.html
+++ b/erpnext/www/lms/templates/includes/quiz.html
@@ -41,9 +41,12 @@
<h3>Your Score: <span id="result"></span></h3>
</div>
<div class="col-md-4 text-right">
- {% with next_content = next_content, course_name = course_name, program_name = program_name %}
- {% include "www/lms/templates/includes/lms-nav.html" %}
- {% endwith %}
+ <a class='btn btn-outline-secondary' href="#">Previous</a>
+ {% if next_content != None %}
+ <a class='btn btn-primary' href="/lms/course?program={{ program }}&course={{ course_name }}&content={{ next_content }}">Next</a>
+ {% else %}
+ <a class='btn btn-primary' href="/lms/program?program={{ program }}">Finish Course</a>
+ {% endif %}
</div>
</div>
</div>
diff --git a/erpnext/www/lms/templates/includes/video.html b/erpnext/www/lms/templates/includes/video.html
index 4ab5659..e3ddacb 100644
--- a/erpnext/www/lms/templates/includes/video.html
+++ b/erpnext/www/lms/templates/includes/video.html
@@ -1,31 +1,18 @@
<section class='video-top-section video-section-bg'>
<div class='container'>
<div class="embed-responsive embed-responsive-16by9">
-<<<<<<< HEAD
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/{{ content.url.split('v=')[1].split('&')[0] }}" allowfullscreen></iframe>
-=======
- <iframe class="embed-responsive-item" src="https://www.youtube.com/embed/{{ current_content.url.split('v=')[1].split('&')[0] }}" allowfullscreen></iframe>
->>>>>>> LMS: Fixed views for article and video
</div>
<div class="mt-3 row">
<div class="col-md-8">
<h2>{{ content.name }}</h2>
<span class="text-muted">
-<<<<<<< HEAD
<i class="octicon octicon-clock" title="Duration"></i> {{ content.duration }} Mins
— Published on {{ content.publish_date }}.
</span>
</div>
<div class="col-md-4 text-right">
{% with next_content = next_content, course_name = course_name, program_name = program_name %}
-=======
- <i class="octicon octicon-clock" title="Duration"></i> {{ current_content.duration }} Mins
- — Published on {{ current_content.publish_date }}.
- </span>
- </div>
- <div class="col-md-4 text-right">
- {% with %}
->>>>>>> LMS: Fixed views for article and video
{% include "www/lms/templates/includes/lms-nav.html" %}
{% endwith %}
</div>
@@ -36,11 +23,7 @@
<section class="video-description-section">
<div class='container'>
<div class="content">
-<<<<<<< HEAD
{{ content.description }}
-=======
- {{ current_content.description }}
->>>>>>> LMS: Fixed views for article and video
</div>
<div class="text-right hidden">
<a class='btn btn-outline-secondary' href="/classrooms/module">Previous</a>