Fix some broken links; bug 568088
This commit is contained in:
Родитель
3b46095e90
Коммит
13ca9dc45e
|
@ -101,7 +101,7 @@
|
|||
{{ persona_preview(other.persona, size='small') }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
<a href="TODO" class="more-link">{{ _('See all Personas by this Artist') }}</a>
|
||||
<a href="{{ author_gallery }}" class="more-link">{{ _('See all Personas by this Artist') }}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endcache %}
|
||||
|
@ -123,7 +123,7 @@
|
|||
{# TODO reverse URL #}
|
||||
{% for category in categories %}
|
||||
<li>
|
||||
<a href="TODO" class="category">{{ category }}</a>
|
||||
<a href="{{ category.get_url_path() }}" class="category">{{ category }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from django import http
|
||||
from django.conf import settings
|
||||
from django.db.models import Q
|
||||
from django.shortcuts import get_object_or_404
|
||||
from django.utils.translation import trans_real as translation
|
||||
|
@ -211,6 +212,8 @@ def persona_detail(request, addon):
|
|||
'category_personas': category_personas,
|
||||
'dev_tags': dev_tags,
|
||||
'user_tags': user_tags,
|
||||
# Remora users persona.author despite there being a display_username
|
||||
'author_gallery': settings.PERSONAS_USER_ROOT % persona.author,
|
||||
}
|
||||
|
||||
return jingo.render(request, 'addons/personas_detail.html', data)
|
||||
|
|
|
@ -398,6 +398,7 @@ PERSONAS_IMAGE_URL = ('http://getpersonas.com/static/'
|
|||
'%(tens)d/%(units)d/%(id)d/%(file)s')
|
||||
PERSONAS_IMAGE_URL_SSL = ('https://getpersonas.com/static/'
|
||||
'%(tens)d/%(units)d/%(id)d/%(file)s')
|
||||
PERSONAS_USER_ROOT = 'http://getpersonas.com/gallery/designer/%s'
|
||||
|
||||
# Outgoing URL bouncer
|
||||
REDIRECT_URL = 'http://outgoing.mozilla.org/v1/'
|
||||
|
|
Загрузка…
Ссылка в новой задаче