目次に戻る

スマートフォン版/ページテンプレート/レッスン詳細画面の情報

4.16.0アップデートでの変更箇所は下記となります。(行数は無編集の場合の目安となります)
+ で始まる行がアップデートで追加された行となります
- で始まる行がアップデートで削除された行となります

テンプレート編集画面の「オリジナルとの差分を確認する」機能でも差分をご確認いただけます。

差分の表示形式を選択してください
Smartphone/Pages/sp_study##lessons.show.twig CHANGED
@@ -13,6 +13,26 @@
13
13
  {% if displayCertificate %}
14
14
  <a class="btn btn-block btn-theme icon" href="#" onclick="window.open('{{route('study.mypage.certificate', {lesson: lesson}) }}')">修了証表示</a>
15
15
  {% endif %}
16
+ <ul class="tag-list">
17
+ {% if lesson.take_class_start_at %}
18
+ <li><span>{{lesson.take_class_start_at|date('Y年m月d日 H時i分')}}から受講可能</span></li>
19
+ {% endif %}
20
+ {% if lesson.take_class_end_at %}
21
+ <li><span>{{lesson.take_class_end_at|date('Y年m月d日 H時i分')}}まで受講可能</span></li>
22
+ {% endif %}
23
+ {% if lesson.in_progress %}
24
+ <li><span>学習中</span></li>
25
+ {% elseif lesson.finished %}
26
+ <li><span>学習済</span></li>
27
+ {% endif %}
28
+ {% if lesson.use_certificate == 1 and displayCertificate == false %}
29
+ <li><span>修了証発行あり</span></li>
30
+ {% endif %}
31
+ {% if lesson.for_premium %}
32
+ <span class="tag premium">見放題</span>
33
+ {% endif %}
34
+ </ul>
35
+ <div class="box-contentsInfo-section purchase-info-area">
16
36
  {% if not checker.check() %}
17
37
  <div class="mb-3">
18
38
  <h4 class="ttl-xs">このレッスンを受講するには</h4>
@@ -69,29 +89,15 @@
69
89
  {% endif %}
70
90
  </div>
71
91
  {% endif %}
72
- <ul class="tag-list">
73
- {% if lesson.take_class_start_at %}
74
- <li><span>{{lesson.take_class_start_at|date('Y年m月d日 H時i分')}}から受講可能</span></li>
75
- {% endif %}
76
- {% if lesson.take_class_end_at %}
77
- <li><span>{{lesson.take_class_end_at|date('Y年m月d日 H時i分')}}まで受講可能</span></li>
78
- {% endif %}
79
- {% if lesson.in_progress %}
80
- <li><span>学習中</span></li>
81
- {% elseif lesson.finished %}
82
- <li><span>学習済</span></li>
83
- {% endif %}
84
- {% if lesson.use_certificate == 1 and displayCertificate == false %}
85
- <li><span>修了証発行あり</span></li>
86
- {% endif %}
87
- </ul>
88
92
  {% if checker.check() and not (lesson.in_progress or lesson.finished ) %}
89
93
  <p class="lead mt-0">{{lesson.overview|striptags|nl2br}}</p>
90
94
  {% else %}
91
95
  <p class="lead">{{lesson.overview|striptags|nl2br}}</p>
92
96
  {% endif %}
97
+ {% include 'study::lessons.partial.courseBox' with {lesson: lesson} only %}
93
98
  </div>
94
99
  </div>
100
+ </div>
95
101
  </section>
96
102
 
97
103
  <section class="box-section">