Update templates index13 and index15.

This commit is contained in:
BoHung Chiu 2023-01-17 21:56:08 +08:00
parent 5acee48df8
commit a1c21e3961
3 changed files with 60 additions and 3 deletions

View File

@ -20,7 +20,7 @@
</a> </a>
<span class="i-archive-files-list" data-list="files" data-level="2"> <span class="i-archive-files-list" data-list="files" data-level="2">
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}" data-toggle="tooltip" data-placement="bottom"> <a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}" data-toggle="tooltip" data-placement="bottom">
{{file-name}}<span class="label label-primary {{file-type}}">{{file-type}}</span> <span class="label label-primary {{file-type}}">{{file-type}}</span>
</a> </a>
</span> </span>
</p> </p>
@ -32,6 +32,9 @@
</div> </div>
</div> </div>
<style> <style>
.i-archive.index-archive-13 .i-archive-files-item{
white-space: inherit;
}
.index-archive-13 .archives-ul .archive-li{ .index-archive-13 .archives-ul .archive-li{
list-style-type: disc; list-style-type: disc;
} }

View File

@ -0,0 +1,41 @@
<div class="i-archive index-archive-13 index-archive-15">
<h3 class="i-archive-title">
<span>{{page-title}}</span>
</h3>
<ul class="archive-categories nav nav-tabs" role="tablist" data-list="categories" data-level="0" data-no-edit="true">
<li class="nav-item {{active_class}}" role="presentation">
<a href="#{{category-id}}" role="tab" data-toggle="tab" title="{{category-title}}" >{{category-title}}</a>
</li>
</ul>
<div class="tab-content" data-list="categories" data-level="0">
<div class="tab-pane {{active_class}}" id="{{category-id}}" role="tabpanel" aria-labelledby="{{category-id}}-tab">
<ul class="archives-ul" data-list="archives" data-level="1">
<li class="archive-li">
<p>
<span data-list="statuses" data-level="2">
<span class="label status {{status-class}}">{{status}}</span>
</span>
<a href="{{archive-file-url}}" target="{{target}}" title="{{archive-title}}">
{{archive-title}}
</a>
<span class="i-archive-files-list" data-list="files" data-level="2">
<a href="{{file-url}}" class="i-archive-files-item" target="{{target}}" title="{{file-name}}" data-toggle="tooltip" data-placement="bottom">
{{file-name}}<span class="label label-primary {{file-type}}">{{file-type}}</span>
</a>
</span>
</p>
<div class="archive-description">{{description}}</div>
</li>
</ul>
{{link_to_edit}}
</div>
</div>
</div>
<style>
.index-archive-13 .archives-ul .archive-li{
list-style-type: disc;
}
.index-archive-13 .archive-description{
color: #9b9b9b;
}
</style>

View File

@ -113,6 +113,10 @@
{ {
"filename": "archive_index13", "filename": "archive_index13",
"name": { "name": {
"zh_tw": "13. 頁籤式 ( 模組標題, 類別標題, 標題, 下載連結, 描述 )",
"en": "13. Tab list (widget-title, category, title, download link, description)"
},
"old_name": {
"zh_tw": "13. 頁籤式 ( 模組標題, 類別標題, 標題, 檔案名稱, 下載連結, 描述 )", "zh_tw": "13. 頁籤式 ( 模組標題, 類別標題, 標題, 檔案名稱, 下載連結, 描述 )",
"en": "13. Tab list (widget-title, category, title, filename, download link, description)" "en": "13. Tab list (widget-title, category, title, filename, download link, description)"
}, },
@ -127,6 +131,15 @@
}, },
"force_cover": "true", "force_cover": "true",
"thumbnail" : "ar2.png" "thumbnail" : "ar2.png"
},
{
"filename": "archive_index15",
"name": {
"zh_tw": "15. 頁籤式 ( 模組標題, 類別標題, 標題, 完整檔案名稱, 下載連結, 描述 )",
"en": "15. Tab list (widget-title, category, title, full filename, download link, description)"
},
"force_cover": "true",
"thumbnail": "ar-tab1.png"
} }
], ],
"widgets" : [ "widgets" : [