Skip to content

Commit

Permalink
Add icon to templates list per issue #1496
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancramerdesign committed Nov 9, 2015
1 parent dea0757 commit 33d8a78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wire/modules/Process/ProcessTemplate/ProcessTemplate.module
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,11 @@ class ProcessTemplate extends Process {

$row = array();
$row["{$template->name} "] = "edit?id={$template->id}";
if($useLabel) $row[] = $this->sanitizer->entities($template->getLabel());
if($useLabel) {
$icon = $template->getIcon();
$icon = $icon ? wireIconMarkup($icon, 'fw') : '';
$row[] = $icon . $this->sanitizer->entities($template->getLabel());
}
$row[] = "$numFields ";
$row["{$numPages} "] = "$numPagesLink"; // space is required to make it work
$row[] = $template->modified > 0 ? "<span style='display: none;'>$template->modified</span>" . wireRelativeTimeStr($template->modified) : '';
Expand Down

0 comments on commit 33d8a78

Please sign in to comment.