mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 21:33:38 +08:00
683b172104
These were originally very similar, but have diverged over time. This makes it very difficult to manage styling. This commit moves the noscript header and footer into partials so they can be reused in both the crawler view and the `<noscript>` view. It also makes browser-update render the noscript content **instead of** the `<section id='main'>`, rather than adding adding the noscript inside the `<section>`. This provides better parity with the server-rendered crawler view.
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
<footer class="container wrap">
|
|
<nav class='crawler-nav'>
|
|
<ul>
|
|
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
|
<span itemprop='name'>
|
|
<a href='<%= path "/" %>' itemprop="url"><%= t 'home_title' %> </a>
|
|
</span>
|
|
</li>
|
|
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
|
<span itemprop='name'>
|
|
<a href='<%= path "/categories" %>' itemprop="url"><%= t 'js.filters.categories.title' %> </a>
|
|
</span>
|
|
</li>
|
|
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
|
<span itemprop='name'>
|
|
<a href='<%= path "/guidelines" %>' itemprop="url"><%= t 'guidelines_topic.title' %> </a>
|
|
</span>
|
|
</li>
|
|
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
|
<span itemprop='name'>
|
|
<a href='<%= path "/tos" %>' itemprop="url"><%= t 'tos_topic.title' %> </a>
|
|
</span>
|
|
</li>
|
|
<li itemscope itemtype='http://schema.org/SiteNavigationElement'>
|
|
<span itemprop='name'>
|
|
<a href='<%= path "/privacy" %>' itemprop="url"><%= t 'privacy_topic.title' %> </a>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<p class='powered-by-link'><%= t 'powered_by_html' %></p>
|
|
</footer>
|