mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: siteNavigationElement was reversed (#6934)
This commit is contained in:
parent
afd449089f
commit
096a81158a
@ -65,9 +65,9 @@
|
||||
<% if @list.topics.length > 0 && @list.more_topics_url %>
|
||||
<div role='navigation' itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
||||
<% if params[:page].to_i > 0 %>
|
||||
<span itemprop='url'><a href='<%= @list.prev_topics_url %>' rel='prev' itemprop='name'><%= t 'prev_page' %></a> </span>
|
||||
<span itemprop='name'><a href='<%= @list.prev_topics_url %>' rel='prev' itemprop='url'><%= t 'prev_page' %></a> </span>
|
||||
<% end %>
|
||||
<span itemprop='url'><b><a href='<%= @list.more_topics_url %>' rel='next' itemprop='name'><%= t 'next_page' %></a></b></span>
|
||||
<span itemprop='name'><b><a href='<%= @list.more_topics_url %>' rel='next' itemprop='url'><%= t 'next_page' %></a></b></span>
|
||||
</div>
|
||||
|
||||
<% content_for :head do %>
|
||||
|
@ -76,10 +76,10 @@
|
||||
<% if @topic_view.prev_page || @topic_view.next_page %>
|
||||
<div role='navigation' itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
||||
<% if @topic_view.prev_page %>
|
||||
<span itemprop='url'><%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev', itemprop: 'name' %></span>
|
||||
<span itemprop='name'><%= link_to t(:prev_page), @topic_view.prev_page_path, rel: 'prev', itemprop: 'url' %></span>
|
||||
<% end %>
|
||||
<% if @topic_view.next_page %>
|
||||
<span itemprop='url'><b><%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next', itemprop: 'name' %></b></span>
|
||||
<span itemprop='name'><b><%= link_to t(:next_page), @topic_view.next_page_path, rel: 'next', itemprop: 'url' %></b></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user