зеркало из https://github.com/mozilla/kitsune.git
[bug 964520] robots->noindex all the non-article kb pages.
This commit is contained in:
Родитель
5305b00131
Коммит
b5027306b5
|
@ -6,6 +6,7 @@
|
|||
(None, _('Compare Revisions'))] %}
|
||||
{% set classes = 'compare' %}
|
||||
{% set scripts = ('wiki', 'wiki.diff') %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
{% set title = _('Revision History | {document}')|fe(document=document.title) %}
|
||||
{% set crumbs = [(document.get_absolute_url(), document.title),
|
||||
(None, _('History'))] %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
{% set title = _('[{locale}] Localization Team')|f(locale=locale.locale) %}
|
||||
{% endif %}
|
||||
{% set crumbs = [(url('wiki.locales'), _('Locales')), (None, locale.locale)] %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{% from "includes/common_macros.html" import for_contributors_sidebar %}
|
||||
{% set title = _('Locales | Knowledge Base') %}
|
||||
{% set crumbs = [(None, _('Locales'))] %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
{% set scripts = ('libs/jqueryui', 'wiki', 'wiki.diff') %}
|
||||
{% set title = _('Recent Revisions') %}
|
||||
{% set crumbs = [(None, title)] %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
{% from "wiki/includes/document_macros.html" import show_for with context %}
|
||||
{# L10n: {n} is the revision number, {t} is the title of the document. {c} is the category. #}
|
||||
{% set title = _('Revision {n} | {t} | {c}')|f(n=revision.id, t=document.title, c=document.get_category_display()) %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
{% set crumbs = [(document.get_absolute_url(), document.title),
|
||||
(None, _('Revision {num}')|f(num=revision.id))] %}
|
||||
{% set classes = 'document' %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% set title = _('Select language | {document}')|f(document=document.title) %}
|
||||
{% set crumbs = [(document.get_absolute_url(), document.title),
|
||||
(None, _('Select language'))] %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
{% set title = _('Show translations | {document}')|f(document=document.title) %}
|
||||
{% set crumbs = [(document.get_absolute_url(), document.title),
|
||||
(None, _('Show translations'))] %}
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% block content %}
|
||||
<div class="grid_9">
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% set title = _('What Links Here | {document}')|fe(document=document.title) %}
|
||||
{% set crumbs = [(document.get_absolute_url(), document.title),
|
||||
(None, _('What Links Here'))] %}
|
||||
|
||||
{% set meta = [('robots', 'noindex, nofollow')] %}
|
||||
|
||||
{% macro relations_list(name, title) %}
|
||||
{% if relations[name] %}
|
||||
|
|
|
@ -1018,7 +1018,7 @@ class HistoryTests(TestCaseBase):
|
|||
args=[r.document.slug])
|
||||
eq_(200, response.status_code)
|
||||
doc = pq(response.content)
|
||||
eq_('noindex', doc('meta[name=robots]')[0].attrib['content'])
|
||||
eq_('noindex, nofollow', doc('meta[name=robots]')[0].attrib['content'])
|
||||
|
||||
def test_history_category_appears(self):
|
||||
"""Document history should have a category on page"""
|
||||
|
|
Загрузка…
Ссылка в новой задаче