-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div id="right_column_flip"> | ||
<h2>Ayuda</h2> | ||
<ul class="no_bullets"> | ||
<li><%= link_to_unless_current "Quienes somos", "/help/about" %></li> | ||
<li><%= link_to_unless_current "Guía para solicitantes", "/help/requesting" %></li> | ||
<li><%= link_to_unless_current "Tu Privacidad", "/help/privacy" %></li> | ||
<li><%= link_to_unless_current "Información para Instituciones", "/help/officers" %></li> | ||
<li><%= link_to_unless_current "Búsqueda avanzada", "/advancedsearch" %></li> | ||
<li><%= link_to_unless_current "Condiciones de Uso", "/help/terms_of_use" %></li> | ||
</ul> | ||
|
||
<h2 id="contact">Contáctanos</h2> | ||
<p>Si tu pregunta no está resuelta aquí, o quieres hacernos llegar algún comentario sobre la web, <a href="/help/contact">contáctanos</a>. | ||
</p> | ||
</div> | ||
|
||
|
This file was deleted.
Oops, something went wrong.
aa4059e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nav links link to the English version, and some to the Spanish:
Is this my
general.yml
setting, or can we pass the current locale to thelink_to_unless_current
helper?aa4059e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aa4059e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@stevenday actually, that is the correct way to make links, so that the router is responsible for controlling the actual path generated.
aa4059e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes the problem mentioned here where you get a
500
if you click on a nav item that is in the other locale.aa4059e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the sidebar to use path_helpers, which is fine for this theme, which is intended to be monolingual in Spanish in production. There does seem to be a bug in using multiple locales with routing-filter and link_to_unless_current though. I've ticketed that in alaveteli mysociety/alaveteli#1832