Commit 9001b3bb802619553cd22e9166baba1fd877a3dd
1 parent
fd1d1b35
Exists in
colab
and in
4 other branches
Menu items for forcing locales by user preference
Signed off by: Daniel Miranda <danielkza2@gmail.com>
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
app/views/layouts/application.html.erb
| @@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
| 78 | </a> | 78 | </a> |
| 79 | <ul class="dropdown-menu" role="menu"> | 79 | <ul class="dropdown-menu" role="menu"> |
| 80 | <% I18n.available_locales.each do |locale| %> | 80 | <% I18n.available_locales.each do |locale| %> |
| 81 | - <li><a href="#"><%= locale.to_s %></a></li> | 81 | + <li><%= link_to(locale.to_s, url_for(locale: locale)) %></li> |
| 82 | <% end %> | 82 | <% end %> |
| 83 | </ul> | 83 | </ul> |
| 84 | </li> | 84 | </li> |
features/homepage.feature
| @@ -20,7 +20,6 @@ Feature: Homepage | @@ -20,7 +20,6 @@ Feature: Homepage | ||
| 20 | And I should see "Project" | 20 | And I should see "Project" |
| 21 | And I should see "Your projects" | 21 | And I should see "Your projects" |
| 22 | 22 | ||
| 23 | - @wip | ||
| 24 | Scenario: Language selection | 23 | Scenario: Language selection |
| 25 | Given I am at the homepage | 24 | Given I am at the homepage |
| 26 | When I click the Languages link | 25 | When I click the Languages link |