ydu_admins_rwd/modules/announcement/_annc_widget8.html.erb

29 lines
1.1 KiB
Plaintext
Executable File

<!--
Announcement widget-8
Fields: widget-title, postdate, title, status, category
-->
<div class="w-announcement annc-widget-8 w-announcement--table">
<h3 class="w-announcement__widget-title">{{widget-title}}</h3>
<table class="w-announcement__table">
<thead>
<tr>
<th class="w-announcement__th">{{date-head}}</th>
<th class="w-announcement__th">{{title-head}}</th>
<th class="w-announcement__th">{{status-head}}</th>
<th class="w-announcement__th">{{category-head}}</th>
</tr>
</thead>
<tbody class="w-announcement__list" data-level="0" data-list="announcements">
<tr>
<td date-format="%Y-%m-%d">{{postdate}}</td>
<td><a class="w-announcement__link" href="{{link_to_show}}">{{title}}</a></td>
<td>
<div class="w-announcement__status-wrap" data-list="statuses" data-level="1">
<span class="w-announcement__status label status {{status-class}}">{{status}}</span>
</div>
</td>
<td>{{category}}</td>
</tr>
</tbody>
</table>
</div>