rhymix/modules/widget/tpl/downloaded_widget_list.html

47 lines
2 KiB
HTML

<include target="header.html" />
<table class="x_table x_table-striped x_table-hover dsTg">
<caption>
<strong>{lang('all')} ({$tCount})</strong>
<div class="x_pull-right x_btn-group">
<button class="x_btn x_active __simple">{$lang->simple_view}</button>
<button class="x_btn __detail">{$lang->detail_view}</button>
</div>
</caption>
<thead>
<tr>
<th scope="col">{$lang->widget_name}</th>
<th>{$lang->version}</th>
<th scope="col" class="rx_detail_marks">{$lang->author}</th>
<th scope="col" class="rx_detail_marks">{$lang->path}</th>
<th scope="col">{$lang->cmd_generate_code}</th>
<th scope="col">{$lang->cmd_delete}</th>
</tr>
</thead>
<tbody>
<tr loop="$widget_list => $widget">
<td class="title">
<p><strong>{$widget->title}</strong></p>
<p>{$widget->description}</p>
<p cond="$widget->need_update == 'Y'" class="update">
{$lang->msg_avail_easy_update} <a href="{$widget->update_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->msg_do_you_like_update}</a>
</p>
</td>
<td>
<!--@if($widget->version === 'RX_VERSION')-->
<img src="{\RX_BASEURL}common/img/icon.png" class="core_symbol" alt="Rhymix Core" title="Rhymix Core" />
<!--@else-->
<span style="color:#aaa"|cond="$widget->isBlacklisted">{$widget->version}</span>
<!--@endif-->
</td>
<td class="rx_detail_marks">
<block loop="$widget->author => $author">
<a cond="$author->homepage" href="{$author->homepage}" target="_blank">{$author->name}</a>
<block cond="!$author->homepage">{$author->name}</block>
</block>
</td>
<td class="rx_detail_marks">{$widget->path}</td>
<td><a class="x_btn x_btn-link" href="{getUrl('act', 'dispWidgetAdminGenerateCode', 'selected_widget', $widget->widget)}">{$lang->cmd_generate_code}</a></td>
<td><a class="x_btn x_btn-link" cond="$widget->remove_url" href="{$widget->remove_url}&amp;return_url={urlencode(getRequestUriByServerEnviroment())}">{$lang->cmd_delete}</a></td>
</tr>
</tbody>
</table>