Skip to content

Commit

Permalink
Provide a link from the change log to the component on componentsRead.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-unwin committed Mar 18, 2024
1 parent bce6a59 commit 8676183
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Views/componentsRead.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
} else if ($data[0]->type === 'policy' and $key === 'options') {
$resource->{$key} = html_entity_decode($resource->{$key});
echo read_text_box($key, $resource->{$key});
} else if ($data[0]->type === 'change_log' and $key === 'db_row') {
$link = "<a role=\"button\" title=\"" . __('View') . "\" class=\"btn btn-outline-secondary link_button\" href=\"" . url_to('componentsRead', $value) . "?components.type=" . $data[0]->attributes->db_table . "\"><span title=\"" . __('View') . "\" class=\"fa fa-link\" aria-hidden=\"true\"></span></a>";
echo read_field($key, $resource->{$key}, '', false, $label, $link);
} else {
$label = '';
if ($key === 'id') {
Expand Down

0 comments on commit 8676183

Please sign in to comment.