Skip to content

Commit

Permalink
Fix #862 - Add the link to Pootle / Pontoon on the entity view (#863)
Browse files Browse the repository at this point in the history
* Fix #862 - Add the link to Pootle / Pontoon on the entity view

* Use the same order as the other view
  • Loading branch information
Vincent Lequertier authored and flodolo committed Mar 23, 2017
1 parent 7e2e506 commit da02e46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/results_entities.php
Expand Up @@ -163,6 +163,13 @@
$meta_target .= $error_message; $meta_target .= $error_message;
} }


// Get the tool used to edit strings for the target locale
$toolUsedByTargetLocale = Project::getLocaleTool($locale);

$edit_link = ($current_repo == 'aurora' && $toolUsedByTargetLocale != '')
? ShowResults::getEditLink($toolUsedByTargetLocale, $entity, $locale)
: '';

$table .= " $table .= "
<tr class='{$component}'> <tr class='{$component}'>
<td> <td>
Expand Down Expand Up @@ -190,6 +197,7 @@
$table .= " $table .= "
<div dir='ltr' class='result_meta_link'> <div dir='ltr' class='result_meta_link'>
<a class='source_link' href='{$path_locale2}'>&lt;source&gt;</a> <a class='source_link' href='{$path_locale2}'>&lt;source&gt;</a>
{$edit_link}
{$file_bug} {$file_bug}
{$meta_target} {$meta_target}
</div> </div>
Expand Down

0 comments on commit da02e46

Please sign in to comment.