Skip to content

Commit fb20508

Browse files
TheoChevalierflodolo
authored andcommitted
Make entity name selection easier - fixes #830 (#836)
1 parent 7b548c1 commit fb20508

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

app/classes/Transvision/ShowResults.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,9 @@ public static function resultsTable($search_object, $search_results, $page)
465465
<span class='celltitle'>Entity</span>
466466
<a class='resultpermalink tag' id='{$anchor_name}' href='#{$anchor_name}' title='Permalink to this result'>link</a>
467467
<a class='l10n tag' href='/string/?entity={$key}&amp;repo={$current_repo}' title='List all translations for this entity'>l10n</a>
468-
<a class='link_to_entity' href=\"/{$entity_link}\">{$result_entity}</a>
468+
<span class='link_to_entity'>
469+
<a href=\"/{$entity_link}\">{$result_entity}</a>
470+
</span>
469471
</td>
470472
<td dir='{$direction1}' lang='{$locale1}'>
471473
<span class='celltitle'>{$locale1}</span>

app/views/check_variables.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
$content .= "<tr class='{$component} {$search_id}'>
4949
<td>
5050
<span class='celltitle'>Entity</span>
51-
<a class='link_to_entity' href=\"/{$string_id_link}\">" . ShowResults::formatEntity($string_id) . "</a>
51+
<span class='link_to_entity'>
52+
<a href=\"/{$string_id_link}\">" . ShowResults::formatEntity($string_id) . "</a>
53+
</span>
5254
</td>
5355
<td dir='{$direction1}'>
5456
<span class='celltitle'>{$source_locale}</span>

app/views/empty_strings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@
9797
<span class='celltitle'>Entity</span>
9898
<a class='resultpermalink tag' id='{$anchor_name}' href='#{$anchor_name}' title='Permalink to this string'>link</a>
9999
<a class='l10n tag' href='/string/?entity={$key}&amp;repo={$repo}' title='List all translations for this entity'>l10n</a>
100-
<a class='link_to_entity' href=\"/{$entity_link}\">{$entity}</a>
100+
<span class='link_to_entity'>
101+
<a href=\"/{$entity_link}\">{$entity}</a>
102+
</span>
101103
</td>
102104
<td dir='ltr' lang='{$reference_locale}'>
103105
<span class='celltitle'>{$reference_locale}</span>

app/views/results_entities.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@
167167
<span class='celltitle'>Entity</span>
168168
<a class='resultpermalink tag' id='{$anchor_name}' href='#{$anchor_name}' title='Permalink to this result'>link</a>
169169
<a class='l10n tag' href='/string/?entity={$entity}&amp;repo={$current_repo}' title='List all translations for this entity'>l10n</a>
170-
<a class='link_to_entity' href='/{$entity_link}'>" . ShowResults::formatEntity($entity, $search->getSearchTerms()) . "</a>
170+
<span class='link_to_entity'>
171+
<a href='/{$entity_link}'>" . ShowResults::formatEntity($entity, $search->getSearchTerms()) . "</a>
172+
</span>
171173
</td>
172174
<td dir='{$direction1}'>
173175
<span class='celltitle'>{$source_locale}</span>

0 commit comments

Comments
 (0)