Permalink
Browse files

Transvision visual refresh (#769)

  • Loading branch information...
TheoChevalier authored and flodolo committed Jul 28, 2016
1 parent 8d72279 commit 792eae97dcfca321065fde849f6ec6bc575d8e15
Showing with 482 additions and 320 deletions.
  1. +2 −2 app/classes/Transvision/ShowResults.php
  2. +3 −3 app/views/changelog.php
  3. +15 −9 app/views/channelcomparison.php
  4. +15 −9 app/views/consistency.php
  5. +15 −9 app/views/gaia.php
  6. +1 −1 app/views/onestring.php
  7. +11 −7 app/views/productization.php
  8. +74 −74 app/views/search_form.php
  9. +10 −6 app/views/simplesearchform.php
  10. +30 −28 app/views/templates/base.php
  11. +14 −10 app/views/tmx_downloads.php
  12. +1 −1 app/views/unlocalized_words_all.php
  13. +1 −1 tests/units/Transvision/ShowResults.php
  14. BIN web/fonts/FiraSans/FiraSans-Light.woff
  15. BIN web/fonts/FiraSans/FiraSans-Light.woff2
  16. BIN web/fonts/FiraSans/FiraSans-LightItalic.woff
  17. BIN web/fonts/FiraSans/FiraSans-LightItalic.woff2
  18. BIN web/fonts/FiraSans/FiraSans-Medium.woff
  19. BIN web/fonts/FiraSans/FiraSans-Medium.woff2
  20. BIN web/fonts/FiraSans/FiraSans-Regular.woff
  21. BIN web/fonts/FiraSans/FiraSans-Regular.woff2
  22. BIN web/fonts/FiraSans/FiraSans-UltraLight.woff
  23. BIN web/fonts/FiraSans/FiraSans-UltraLight.woff2
  24. BIN web/fonts/FiraSans/FiraSans-UltraLightItalic.woff
  25. BIN web/fonts/FiraSans/FiraSans-UltraLightItalic.woff2
  26. BIN web/fonts/OpenSans/OpenSans-Bold-webfont.woff
  27. BIN web/fonts/OpenSans/OpenSans-Bold.woff2
  28. BIN web/fonts/OpenSans/OpenSans-Italic-webfont.woff
  29. BIN web/fonts/OpenSans/OpenSans-Italic.woff2
  30. BIN web/fonts/OpenSans/OpenSans-Light-webfont.woff
  31. BIN web/fonts/OpenSans/OpenSans-Light.woff2
  32. BIN web/fonts/OpenSans/OpenSans-LightItalic-webfont.woff
  33. BIN web/fonts/OpenSans/OpenSans-LightItalic.woff2
  34. BIN web/fonts/OpenSans/OpenSans-Regular-webfont.woff
  35. BIN web/fonts/OpenSans/OpenSans-Regular.woff2
  36. BIN web/fonts/OpenSans/OpenSans-Semibold-webfont.woff
  37. BIN web/fonts/OpenSans/OpenSans-Semibold.woff2
  38. BIN web/img/beta_ribbon.png
  39. +25 −0 web/img/check.svg
  40. BIN web/img/clear_icon_18x18.png
  41. BIN web/img/favicon.ico
  42. BIN web/img/grain.png
  43. +2 −1 web/style/changelog.css
  44. +3 −17 web/style/tmx.css
  45. +260 −142 web/style/transvision.css
@@ -210,9 +210,9 @@ public static function formatEntity($entity, $highlight = false)
$chunk = explode('/', $chunk[0]);
$repo = '<span class="green">' . array_shift($chunk) . '</span>';
$path = implode('<span class="superset">&nbsp;&sup;&nbsp;</span>', $chunk);
$path = implode('<span class="superset">&nbsp;&bull;&nbsp;</span>', $chunk);
return $repo . '<span class="superset">&nbsp;&sup;&nbsp;</span>' . $path . '<br>' . $entity;
return $repo . '<span class="superset">&nbsp;&bull;&nbsp;</span>' . $path . '<br>' . $entity;
}
/**
@@ -19,9 +19,9 @@
}
$output .= " <li>";
$output .= isset($attributes['type']) ? $relnotes($attributes['type'][0]) . ' ' : '';
$output .= isset($attributes['issues']) ? $issue($attributes['issues']) : '';
$output .= isset($attributes['commit']) ? $commit($attributes['commit']) : '';
$output .= isset($attributes['type']) ? $relnotes($attributes['type'][0]) . ' ' : '';
$output .= isset($attributes['issues']) ? $issue($attributes['issues']) : '';
$output .= isset($attributes['commit']) ? $commit($attributes['commit']) : '';
$output .= $attributes['message'][0];
$output .= isset($attributes['authors']) ? $authors($attributes['authors']) : '';
$output .= "</li>\n";
@@ -12,21 +12,27 @@
<fieldset id="main_search">
<fieldset>
<label>Locale:</label>
<select name='locale'>
<?=$target_locales_list?>
</select>
<div class="select-style">
<select name='locale'>
<?=$target_locales_list?>
</select>
</div>
</fieldset>
<fieldset>
<label>Channel 1:</label>
<select name='chan1'>
<?=$chan_selector1?>
</select>
<div class="select-style">
<select name='chan1'>
<?=$chan_selector1?>
</select>
</div>
</fieldset>
<fieldset>
<label>Channel 2:</label>
<select name='chan2'>
<?=$chan_selector2?>
</select>
<div class="select-style">
<select name='chan2'>
<?=$chan_selector2?>
</select>
</div>
</fieldset>
<input type="submit" value="Go" alt="Go" />
</fieldset>
@@ -8,26 +8,32 @@
<?php if (isset($target_locales_list)) : ?>
<fieldset>
<label>Locale</label>
<select name="locale" title="Locale" id="simplesearch_locale">
<?=$target_locales_list?>
</select>
<div class="select-style">
<select name="locale" title="Locale" id="simplesearch_locale">
<?=$target_locales_list?>
</select>
</div>
</fieldset>
<?php endif; ?>

<?php if (isset($channel_selector)) : ?>
<fieldset>
<label>Repository</label>
<select name="repo" title="Repository" id="simplesearch_repository">
<?=$channel_selector?>
</select>
<div class="select-style">
<select name="repo" title="Repository" id="simplesearch_repository">
<?=$channel_selector?>
</select>
</div>
</fieldset>
<?php endif; ?>

<fieldset class="desktop_repo_only" <?=$filter_visibility?>>
<label>Filter consistency for</label>
<select name="filter" title="Filters" id="simplesearch_filter">
<?=$filter_selector?>
</select>
<div class="select-style">
<select name="filter" title="Filters" id="simplesearch_filter">
<?=$filter_selector?>
</select>
</div>
</fieldset>

<input type="submit" value="Go" alt="Go" />
@@ -76,21 +76,27 @@
<fieldset id="main_search">
<fieldset>
<label>Locale</label>
<select name="locale">
<?=$target_locales_list?>
</select>
<div class="select-style">
<select name="locale">
<?=$target_locales_list?>
</select>
</div>
</fieldset>
<fieldset>
<label>Repository 1</label>
<select name="repo1">
<?=$channel_selector1?>
</select>
<div class="select-style">
<select name="repo1">
<?=$channel_selector1?>
</select>
</div>
</fieldset>
<fieldset>
<label>Repository 2</label>
<select name="repo2">
<?=$channel_selector2?>
</select>
<div class="select-style">
<select name="repo2">
<?=$channel_selector2?>
</select>
</div>
</fieldset>
<input type="submit" value="Go" alt="Go" />
</fieldset>
@@ -20,7 +20,7 @@
?>

<table>
<tr>
<tr class="column_headers">
<th>Locale</th>
<th>Translation</th>
<th>&nbsp;</th>
@@ -43,16 +43,20 @@
<form name="searchform" id="simplesearchform" method="get" action="">
<fieldset id="main_search">
<fieldset>
<label>Locale</label>
<select name="locale" id="locale_select">
' . $target_locales_list . '
</select>
<label>Locale</label>
<div class="select-style">
<select name="locale" id="locale_select">
' . $target_locales_list . '
</select>
</div>
</fieldset>
<fieldset>
<label>Repository</label>
<select name="product" id="product_select">
' . $product_selector . '
</select>
<div class="select-style">
<select name="product" id="product_select">
' . $product_selector . '
</select>
</div>
</fieldset>
<input type="submit" value="Go" alt="Go" />
</fieldset>
@@ -14,7 +14,7 @@
<form name="searchform" id="searchform" method="get" action="./" >
<fieldset id="main_search">
<div id="search">
<p class="smallscreen_notices">Use the <a href="" class="menu-button">Menu tab</a> in the right top corner to select a different view.<p>
<p class="smallscreen_notices">Use the <a href="" class="menu-button">Menu tab</a> in the right top corner to select a different view.</p>
<div id="search_field_container">
<input type="text"
name="recherche"
@@ -32,97 +32,97 @@
<div id="searchoptions">
<fieldset>
<label>Repository</label>
<select
id='repository'
name='repo'
title="Repository">
<?=$repo_list?>
</select>
<label class="default_option" for="default_repository">
<input type="checkbox"
id="default_repository"
class="mainsearch_default_checkbox"
value="<?=$cookies['repository']?>"
<?=Utils::checkboxDefaultOption($search->getRepository(), $cookies['repository'])?>
/> <span>Default</span>
</label>
<div class="select-style">
<select
id='repository'
name='repo'
title="Repository">
<?=$repo_list?>
</select>
</div>
<input type="checkbox"
id="default_repository"
class="mainsearch_default_checkbox"
value="<?=$cookies['repository']?>"
<?=Utils::checkboxDefaultOption($search->getRepository(), $cookies['repository'])?>
/><label class="default_option" for="default_repository">Default</label>
</fieldset>
<fieldset>
<label>Source Locale</label>
<select
id='source_locale'
name='sourcelocale'
class='mainsearch_locale_selector'
title="Source Locale">
<?=$source_locales_list[$search->getRepository()]?>
</select>
<label class="default_option" for="default_source_locale">
<input type="checkbox"
id="default_source_locale"
class="mainsearch_default_checkbox"
value="<?=$cookies['source_locale']?>"
<?=$cookie_option($cookies['source_locale'], $source_locale)?>
/> <span>Default</span>
</label>
<div class="select-style">
<select
id='source_locale'
name='sourcelocale'
class='mainsearch_locale_selector'
title="Source Locale">
<?=$source_locales_list[$search->getRepository()]?>
</select>
</div>
<input type="checkbox"
id="default_source_locale"
class="mainsearch_default_checkbox"
value="<?=$cookies['source_locale']?>"
<?=$cookie_option($cookies['source_locale'], $source_locale)?>
/><label class="default_option" for="default_source_locale">Default</label>
</fieldset>
<fieldset id="locale_switch" alt="Switch source and target locales" title="Switch source and target locales">
</fieldset>
<fieldset>
<label>Target Locale</label>
<select
id='target_locale'
name='locale'
class='mainsearch_locale_selector'
title="Target Locale">
<?=$target_locales_list[$search->getRepository()]?>
</select>
<label class="default_option" for="default_target_locale">
<input type="checkbox"
id="default_target_locale"
class="mainsearch_default_checkbox"
value="<?=$cookies['target_locale']?>"
<?=$cookie_option($cookies['target_locale'], $locale)?>
/> <span>Default</span>
</label>
<div class="select-style">
<select
id='target_locale'
name='locale'
class='mainsearch_locale_selector'
title="Target Locale">
<?=$target_locales_list[$search->getRepository()]?>
</select>
</div>
<input type="checkbox"
id="default_target_locale"
class="mainsearch_default_checkbox"
value="<?=$cookies['target_locale']?>"
<?=$cookie_option($cookies['target_locale'], $locale)?>
/><label class="default_option" for="default_target_locale">Default</label>
</fieldset>

<?php if ($url['path'] == '3locales'): ?>
<fieldset>
<label>Extra Locale</label>
<select
id='target_locale2'
name='locale2'
class='mainsearch_locale_selector'
title="Extra Locale">
<?=$target_locales_list2[$search->getRepository()]?>
</select>
<label class="default_option" for="default_target_locale2">
<input type="checkbox"
id="default_target_locale2"
class="mainsearch_default_checkbox"
value="<?=$cookies['target_locale2']?>"
<?=$cookie_option($cookies['target_locale2'], $locale2)?>
/> <span>Default</span>
</label>
<div class="select-style">
<select
id='target_locale2'
name='locale2'
class='mainsearch_locale_selector'
title="Extra Locale">
<?=$target_locales_list2[$search->getRepository()]?>
</select>
</div>
<input type="checkbox"
id="default_target_locale2"
class="mainsearch_default_checkbox"
value="<?=$cookies['target_locale2']?>"
<?=$cookie_option($cookies['target_locale2'], $locale2)?>
/><label class="default_option" for="default_target_locale2">Default</label>
</fieldset>
<?php endif; ?>

<fieldset>
<label>Search in</label>
<select
name='search_type'
id='search_type'
title="Search in">
<?=$search_type_list?>
</select>
<label class="default_option" for="default_search_type">
<input type="checkbox"
id="default_search_type"
class="mainsearch_default_checkbox"
value="<?=$cookies['search_type']?>"
<?=Utils::checkboxDefaultOption($search->getSearchType(), $cookies['search_type'])?>
/> <span>Default</span>
</label>
<div class="select-style">
<select
name='search_type'
id='search_type'
title="Search in">
<?=$search_type_list?>
</select>
</div>
<input type="checkbox"
id="default_search_type"
class="mainsearch_default_checkbox"
value="<?=$cookies['search_type']?>"
<?=Utils::checkboxDefaultOption($search->getSearchType(), $cookies['search_type'])?>
/><label class="default_option" for="default_search_type">Default</label>
</fieldset>

<fieldset id="advanced_search">
@@ -5,18 +5,22 @@
<?php if (isset($target_locales_list)) : ?>
<fieldset>
<label>Locale</label>
<select name="locale" title="Locale" id="simplesearch_locale">
<?=$target_locales_list?>
</select>
<div class="select-style">
<select name="locale" title="Locale" id="simplesearch_locale">
<?=$target_locales_list?>
</select>
</div>
</fieldset>
<?php endif; ?>

<?php if (isset($channel_selector)) : ?>
<fieldset>
<label>Repository</label>
<select name="repo" title="Repository" id="simplesearch_repository">
<?=$channel_selector?>
</select>
<div class="select-style">
<select name="repo" title="Repository" id="simplesearch_repository">
<?=$channel_selector?>
</select>
</div>
</fieldset>
<?php endif; ?>

Oops, something went wrong.

0 comments on commit 792eae9

Please sign in to comment.