Skip to content

Commit 003b0b3

Browse files
committed
#415 Clone ID for abbreviative names
1 parent f9451c0 commit 003b0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/plants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<div class="plant-list-item plant-filter-text-root">
101101
<div class="plant-list-id">#{{ sprintf('%04d', $plant->get('id')) }}</div>
102102
<div class="plant-list-name-full plant-filter-text-target">{{ $plant->get('name') . ((!is_null($plant->get('clone_num'))) ? ' (' . strval($plant->get('clone_num') + 1) . ')' : '') }}</div>
103-
<div class="plant-list-name-short">{{ substr($plant->get('name'), 0, PlantsModel::PLANT_LIST_MAX_STRLEN) . '...' }}</div>
103+
<div class="plant-list-name-short">{{ ((!is_null($plant->get('clone_num'))) ? '(' . strval($plant->get('clone_num') + 1) . ') ' : '') . substr($plant->get('name'), 0, PlantsModel::PLANT_LIST_MAX_STRLEN) . '...' }}</div>
104104
<div class="plant-list-scientific-name plant-list-item-hide-small-devices">{{ ($plant->get('scientific_name') ?? 'N/A') }}</div>
105105
@if ((isset($_GET['sorting'])) && ($_GET['sorting'] !== 'name'))
106106
<div class="plant-list-sorting">{{ UtilsModule::readablePlantAttribute($plant->get($_GET['sorting']), $_GET['sorting']) }}</div>

0 commit comments

Comments
 (0)