]> git.openstreetmap.org Git - rails.git/commitdiff
Don't display a stale "|" pipe if we're at the beginning or end of the
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 20 Jun 2009 01:12:09 +0000 (01:12 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 20 Jun 2009 01:12:09 +0000 (01:12 +0000)
list of this user's changesets

app/views/browse/_navigation.html.erb

index a7a9ff70c0dee93944c90aa82e72c7057ee478a5..b125ac75fceb92a6e2414ed832cb155c66147a83 100644 (file)
@@ -4,16 +4,16 @@
        <%= link_to t('browse.changeset_navigation.user.prev', :id => @prev_by_user.id.to_s),
            { :id => @prev_by_user.id },
            { :title => t('browse.changeset_navigation.user.prev_tooltip', :user => @prev_by_user.user.display_name) } %>
-    <% end %>
     |
+    <% end %>
     <%=
     user = (@prev_by_user || @next_by_user).user.display_name
     link_to(t('browse.changeset_navigation.user.name', :user => h(user)),
             { :controller => "changeset", :action => "list", :display_name => user },
             { :title => t('browse.changeset_navigation.user.name_tooltip', :user => h(user)) })
     %>
-    |
     <% if @next_by_user %>
+    |
       <%= link_to t('browse.changeset_navigation.user.next', :id => @next_by_user.id.to_s),
          { :id => @next_by_user.id },
          { :title => t('browse.changeset_navigation.user.next_tooltip', :user => @next_by_user.user.display_name) } %>