创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
@@ -0,0 +1,32 @@
<table id="widget-article-index">
<thead>
<tr>
<th data-field="title" data-formatter="titleFormatter" data-align="left">标题</th>
<th data-field="created_at" data-width="200" data-formatter="datetimeFormatter" data-sortable="true" data-align="center">发布时间</th>
</tr>
</thead>
</table>
<script>
function datetimeFormatter(value, row) {
return format_datetime(value);
}
function titleFormatter(value, row) {
return '<a href="'+app.url('article/article/view', {id: row.id})+'">' + value + '</a>';
}
(function($) {
var $table = $('#widget-article-index');
$table.bootstrapTable({
sidePagination: 'server',
showColumns: false,
showHeader: false,
height: 200,
pagination: false,
url: '{{url("article/widget/index")}}',
});
})(jQuery);
</script>