remove data-nav-url attribute from in post navigation
This commit is contained in:
parent
a30753a7a5
commit
207a6c32b2
2 changed files with 2 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
<% if next_or_previous?(@blog_post) -%>
|
||||
<nav id="next_prev_article">
|
||||
<% if @blog_post.next.present? -%>
|
||||
<%= link_to raw(truncate(@blog_post.next.title) + " »"), @blog_post.next, :class => 'next', :"data-nav-url" => update_blog_nav_path(@blog_post.next) %>
|
||||
<%= link_to raw(truncate(@blog_post.next.title) + " »"), @blog_post.next, :class => 'next' %>
|
||||
<% end -%>
|
||||
|
||||
<%= link_to 'Blog Home', blog_root_path, :class => 'home' %>
|
||||
|
||||
<% if @blog_post.prev.present? -%>
|
||||
<%= link_to "« ".html_safe + truncate(@blog_post.prev.title), @blog_post.prev, :class => 'prev', :"data-nav-url" => update_blog_nav_path(@blog_post.prev) %>
|
||||
<%= link_to "« ".html_safe + truncate(@blog_post.prev.title), @blog_post.prev, :class => 'prev' %>
|
||||
<% end -%>
|
||||
</nav><!-- /next_prev_article -->
|
||||
<% end -%>
|
||||
|
|
|
@ -7,7 +7,6 @@ if Rails.version < '3.0.0'
|
|||
blog.category 'categories/:id', :controller => "categories", :action => 'show'
|
||||
blog.post_blog_comments ':id/comments', :controller => 'posts', :action => 'comment'
|
||||
|
||||
|
||||
## what is the rails2 syntax for this? sorry ;__;
|
||||
# get 'archive/:year/:month', :to => 'posts#archive', :as => 'archive_blog_posts'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue