Skip to content

Commit 4be64e6

Browse files
TheoChevalierflodolo
authored andcommitted
Fixes #732: Add a menu to /channelcomparison (#785)
1 parent cf69039 commit 4be64e6

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

app/views/channelcomparison.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,22 @@
3838
</fieldset>
3939
</form>
4040

41+
<div class="content_menu">
42+
<h3>Available views</h3>
43+
<div>
44+
<ul>
45+
<li><a href="#modified_strings">Modified strings</a></li>
46+
<li><a href="#new_strings">Added strings</a></li>
47+
</ul>
48+
</div>
49+
</div>
50+
4151
<?php if (empty($common_strings)) : ?>
4252
<h3>Comparison is empty</h3>
4353
<p class='subtitle'>There are no string differences for this locale between the <?=$repos_nice_names[$chan1]?> and <?=$repos_nice_names[$chan2]?> channels.</p>
4454

4555
<?php else: ?>
46-
<h3>Locale: <?=$locale?></h3>
56+
<h3 id="modified_strings">Modified strings in <em><?=$locale?></em> between <?=$repos_nice_names[$chan1]?> and <?=$repos_nice_names[$chan2]?></h3>
4757
<table class='collapsable sortable' id='modified_strings_table'>
4858
<thead>
4959
<tr class='column_headers'>

web/style/transvision.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ th.select_header {
336336
th.select_header a {
337337
position: absolute;
338338
color: #fff;
339-
background-color: #1c75bc;
339+
background-color: #0095dd;
340340
right: 5px;
341341
top: 8px;
342342
font-weight: normal;
@@ -890,6 +890,24 @@ input[type="checkbox"]:disabled + label {
890890
top: -2px;
891891
}
892892

893+
/* Menu to navigate through page content */
894+
.content_menu {
895+
margin: 0 auto 15px auto;
896+
text-align: center;
897+
}
898+
899+
.content_menu > div {
900+
display: inline-block;
901+
text-align: left;
902+
padding-left: 15px;
903+
margin-bottom: 15px;
904+
}
905+
906+
.content_menu ul {
907+
padding: 0;
908+
margin: 0;
909+
}
910+
893911
/* Translation Consistency view */
894912
.inconsistent_translation {
895913
margin: 0 0 10px 0;

0 commit comments

Comments
 (0)