目次に戻る

スマートフォン版/パーツテンプレート/最新のレッスン受講履歴の情報

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

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

差分の表示形式を選択してください
Smartphone/Parts/sp_study##mypage.partial.latestLesson.twig CHANGED
@@ -1,39 +1,56 @@
1
1
  <section class="box-section">
2
2
  <a name="my_list"></a>
3
- <h2 class="ttl-md">レッスン受講履歴</h2>
4
- <!-- レッスン受講履歴の処理 -->
5
- {% set paginator = get_lesson_history_pager(1,1) %}
6
- {% for lesson in paginator.getCollection() %}
7
- <div class="container">
8
- <div class="row">
9
- <div class="col-md-12">
10
- <h2 class="ttl-md-cmn">{{lesson.name}}</h2>
11
- </div>
12
- <div class="col-md-12">
13
- {% set checkLessonStatus = get_lesson_status_checker(lesson, auth_user()) %}
14
- {% if checkLessonStatus %}
15
- <a href="#" onclick="window.open('{{route('study.mypage.certificate', {lesson: lesson})}}')" class="btn btn-theme btn-xsm icon">修了証表示</a>
16
- {% endif %}
17
- </div>
18
- <div class="col-md-12">
19
- <div class="mypage-content-list-wrap">
20
- <div class="content-lesson-list js-lesson-list-slide part-list">
21
- {% set maxAccessiblePosition = lesson.getMaxAccessiblePosition() %}
22
- {% for part in lesson.lesson_part %}
23
- {% include 'study::lessons.partial.box' with {lesson: lesson, row:part, maxAccessiblePosition:maxAccessiblePosition} only %}
24
- {% endfor %}
25
- </div>
26
- </div>
27
- </div>
3
+ <h2 class="ttl-md">{{config('site.title_design.lesson_title')}}受講履歴</h2>
4
+ <!-- 受講履歴の処理 -->
5
+ {% set paginator = get_lesson_history_pager(1,1) %}
6
+ {% for history in paginator.getCollection() %}
7
+ <div class="card mb-3">
8
+ <div class="card-body py-2">
9
+ <table class="table table-sm small mb-0">
10
+ <tbody>
11
+ {% if history.curriculum %}
12
+ <tr>
13
+ <th style="border:none;" width="25%">{{config('site.title_design.curriculum_title')}}</th>
14
+ <td style="border:none;" ><a href="{{route('study.curriculum.show', {curriculum: history.curriculum})}}">{{config('site.title_design.curriculum_icon')}}{{history.curriculum.name}}</a></td>
15
+ </tr>
16
+ <tr>
17
+ <th>{{config('site.title_design.lesson_title')}}</th>
18
+ <td><a href="{{route('study.lesson.show', {lesson: history.lesson})}}">{{config('site.title_design.lesson_icon')}}{{history.lesson.name}}</a></td>
19
+ </tr>
20
+ {% else %}
21
+ <tr>
22
+ <th style="border:none;" width="25%">{{config('site.title_design.lesson_title')}}</th>
23
+ <td style="border:none;" ><a href="{{route('study.lesson.show', {lesson: history.lesson})}}">{{config('site.title_design.lesson_icon')}}{{history.lesson.name}}</a></td>
24
+ </tr>
25
+ {% endif %}
26
+ <tr>
27
+ <th>開始時間</th>
28
+ <td>{{history.lesson_started_at.format('Y年m月d日 H:i')}}</td>
29
+ </tr>
30
+ <tr>
31
+ <th>終了時間</th>
32
+ {% if history.lesson_ended_at %}
33
+ <td>{{history.lesson_ended_at.format('Y年m月d日 H:i')}}</td>
34
+ {% else %}
35
+ <td>--</td>
36
+ {% endif %}
37
+ </tr>
38
+ </tbody>
39
+ </table>
28
40
  </div>
41
+ {% if history.display_certificate %}
42
+ <div class="card-footer py-0 bg-white">
43
+ <a class="btn btn-sm btn-theme btn-block" href="#" onclick="window.open('{{route('study.mypage.certificate', {lesson: history.lesson})}}')">修了証の表示</a>
44
+ </div>
45
+ {% endif %}
29
46
  </div>
30
47
  {% endfor %}
31
48
  <h3 class="btn btn-theme btn-toggle icon">マイコンテンツ<i class="fa fa-sm fa-plus-circle"></i></h3>
32
49
  <div class="accordion-box">
33
50
  <ul>
34
51
  {% if study_enable() %}
35
- <li><a href="{{route('study.mypage.historyLesson')}}">レッスン受講履歴一覧</a></li>
36
- <li><a href="{{route('study.mypage.ownLesson')}}">保有レッスン一覧</a></li>
52
+ <li><a href="{{route('study.mypage.historyLesson')}}">受講履歴一覧</a></li>
53
+ <li><a href="{{route('study.mypage.ownLesson')}}">保有教材一覧</a></li>
37
54
  <li><a href="{{route('study.mypage.testResult')}}">テスト実施状況</a></li>
38
55
  {% endif %}
39
56
  {% if not study_starter_enable() %}