Skip to content

Commit 0182e1f

Browse files
committed
Add badges to skills list + remove text from action buttons to increase space for description - refs CT#7883
1 parent ff3a9b4 commit 0182e1f

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

main/template/default/skill/list.tpl

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,54 @@
66
<table class="table table-hover table-striped">
77
<thead>
88
<tr>
9+
<th>{{ "Badges" | get_lang }}</th>
910
<th>{{ "Name" | get_lang }}</th>
10-
<th>{{ "ShortCode" | get_lang }}</th>
11-
<th>{{ "Description" | get_lang }}</th>
12-
<th>{{ "Options" | get_lang }}</th>
11+
<th class="text-center">{{ "ShortCode" | get_lang }}</th>
12+
<th class="text-center">{{ "Description" | get_lang }}</th>
13+
<th class="text-center">{{ "Options" | get_lang }}</th>
1314
</tr>
1415
</thead>
1516
<tfoot>
1617
<tr>
18+
<th>{{ "Badges" | get_lang }}</th>
1719
<th>{{ "Name" | get_lang }}</th>
18-
<th>{{ "ShortCode" | get_lang }}</th>
19-
<th>{{ "Description" | get_lang }}</th>
20-
<th>{{ "Options" | get_lang }}</th>
20+
<th class="text-center">{{ "ShortCode" | get_lang }}</th>
21+
<th class="text-center">{{ "Description" | get_lang }}</th>
22+
<th class="text-center">{{ "Options" | get_lang }}</th>
2123
</tr>
2224
</tfoot>
2325
<tbody>
2426
{% for skill in skills %}
2527
<tr>
28+
<td width="50">
29+
{% if skill.icon is empty %}
30+
<img src="{{ 'badges-default.png' | icon(32) }}" width="32" height="32" alt="{{ skill.name }}">
31+
{% else %}
32+
<img src="{{ skill.web_icon_path }}" width="32" height="32" alt="{{ skill.name }}">
33+
{% endif %}
34+
35+
</td>
2636
<td width="200">{{ skill.name }}</td>
2737
<td class="text-center">{{ skill.short_code }}</td>
28-
<td width="300">{{ skill.description }}</td>
38+
<td width="500">{{ skill.description }}</td>
2939
<td class="text-right">
30-
<a href="{{ _p.web_main }}admin/skill_edit.php?id={{ skill.id }}" class="btn btn-primary btn-sm">
31-
<i class="fa fa-edit fa-fw"></i> {{ "Edit" | get_lang }}
40+
<a href="{{ _p.web_main }}admin/skill_edit.php?id={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "Edit" | get_lang }}">
41+
<i class="fa fa-edit fa-fw"></i>
3242
</a>
33-
<a href="{{ _p.web_main }}admin/skill_create.php?parent={{ skill.id }}" class="btn btn-primary btn-sm">
34-
<i class="fa fa-plus fa-fw"></i> {{ "CreateChildSkill" | get_lang }}
43+
<a href="{{ _p.web_main }}admin/skill_create.php?parent={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "CreateChildSkill" | get_lang }}">
44+
<i class="fa fa-plus fa-fw"></i>
3545
</a>
36-
<a href="{{ _p.web_main }}admin/skill_badge_create.php?id={{ skill.id }}" class="btn btn-primary btn-sm">
37-
<i class="fa fa-shield fa-fw"></i> {{ "CreateBadge" | get_lang }}
46+
<a href="{{ _p.web_main }}admin/skill_badge_create.php?id={{ skill.id }}" class="btn btn-primary btn-sm" title="{{ "CreateBadge" | get_lang }}">
47+
<i class="fa fa-shield fa-fw"></i>
3848
</a>
3949

4050
{% if skill.status == 0 %}
41-
<a href="{{ _p.web_self ~ '?' ~ {"action": "enable", "id": skill.id}|url_encode() }}" class="btn btn-success btn-sm">
42-
<i class="fa fa-check-circle-o fa-fw"></i> {{ 'Enable' }}
51+
<a href="{{ _p.web_self ~ '?' ~ {"action": "enable", "id": skill.id}|url_encode() }}" class="btn btn-success btn-sm" title="{{ 'Enable' }}">
52+
<i class="fa fa-check-circle-o fa-fw"></i>
4353
</a>
4454
{% else %}
45-
<a href="{{ _p.web_self ~ '?' ~ {"action": "disable", "id": skill.id}|url_encode() }}" class="btn btn-danger btn-sm">
46-
<i class="fa fa-ban fa-fw"></i> {{ 'Disable' }}
55+
<a href="{{ _p.web_self ~ '?' ~ {"action": "disable", "id": skill.id}|url_encode() }}" class="btn btn-danger btn-sm" title="{{ 'Disable' }}">
56+
<i class="fa fa-ban fa-fw"></i>
4757
</a>
4858
{% endif %}
4959
</td>

0 commit comments

Comments
 (0)