Skip to content

Commit

Permalink
Update templateadmintools.php
Browse files Browse the repository at this point in the history
add column for templatekey in template list as in justinhunt#51
  • Loading branch information
a-kempka authored Nov 15, 2024
1 parent 413134f commit 8ee5785
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion classes/templateadmintools.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public static function fetch_template_table() {
$titlelink = $editlink = \html_writer::link($item->url, $item->title);
$titlecell = new \html_table_cell($titlelink);

// templatekey cell
$templatekeycell = new \html_table_cell($item->templatekey);

//version cell
$updateversion = presets_control::template_has_update($item->index);
if ($updateversion) {
Expand All @@ -75,7 +78,7 @@ public static function fetch_template_table() {
$instructionscell = new \html_table_cell($item->instructions);

$row->cells = array(
$titlecell, $versioncell, $instructionscell
$titlecell, $templatekeycell, $versioncell, $instructionscell
);
$table->data[] = $row;
}
Expand Down

0 comments on commit 8ee5785

Please sign in to comment.