Revision 6366e9e2
Added by Bryan Kearney about 11 years ago
- ID 6366e9e2476d4991d9fcdae07126b16b19847d13
app/views/home/_location_dropdown.rhtml | ||
---|---|---|
<div class="no-taxonomies">
|
||
<div class="alert">
|
||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||
There aren't any locations yet.
|
||
<%= ("There aren't any locations yet.") %>
|
||
</div>
|
||
<%= link_to "New Location", new_location_path, :class => "btn btn-primary" %>
|
||
<%= link_to _("New Location"), new_location_path, :class => "btn btn-primary" %>
|
||
</div>
|
||
<% else %>
|
||
<% if location_count > 1 || User.current.admin? %>
|
||
<li><%= link_to('Any Location', clear_locations_path) %></li>
|
||
<li><%= link_to(_('Any Location'), clear_locations_path) %></li>
|
||
<%= content_tag(:li, "", :class=>"divider") %>
|
||
<% end %>
|
||
<% Location.my_locations.each do |location| %>
|
Also available in: Unified diff
Add gettext calls to the common views, application controller, and application helper objects.
Note, this patch does not include an update to the strings file. This will allow patches to be submitted without colliding with each other.
To regenerate the strings file, run rake gettext:find