Changed the group link on the personal doc list page to use the group acronym instead of whole name, and made the acronym a link to the wg documents page.
- Legacy-Id: 4531
This commit is contained in:
parent
fdb18755a7
commit
adeafe8df2
|
@ -1,8 +1,9 @@
|
|||
import datetime
|
||||
|
||||
from django.db.models import Q
|
||||
from ietf.ietfworkflows.utils import get_state_for_draft
|
||||
from django.core.urlresolvers import reverse as urlreverse
|
||||
|
||||
from ietf.ietfworkflows.utils import get_state_for_draft
|
||||
from ietf.doc.models import DocAlias, DocEvent
|
||||
|
||||
|
||||
|
@ -62,7 +63,7 @@ class WGField(DisplayField):
|
|||
description = 'Associated WG or RG'
|
||||
|
||||
def get_value(self, document, raw=False):
|
||||
return document.group or ''
|
||||
return '<a href="%s">%s</a>' % (urlreverse('wg_docs', kwargs={'acronym':document.group.acronym}), document.group.acronym) if document.group else ''
|
||||
|
||||
|
||||
class ADField(DisplayField):
|
||||
|
|
|
@ -17,7 +17,7 @@ urlpatterns = patterns('',
|
|||
(r'^chartering/create/$', edit.edit, {'action': "create"}, "wg_create"),
|
||||
(r'^chartering/$', views.chartering_wgs),
|
||||
(r'^(?P<acronym>[a-zA-Z0-9-]+)/documents/txt/$', views.wg_documents_txt),
|
||||
(r'^(?P<acronym>[a-zA-Z0-9-]+)/$', views.wg_documents_html),
|
||||
(r'^(?P<acronym>[a-zA-Z0-9-]+)/$', views.wg_documents_html, None, "wg_docs"),
|
||||
(r'^(?P<acronym>[a-zA-Z0-9-]+)/charter/$', views.wg_charter, None, 'wg_charter'),
|
||||
(r'^(?P<acronym>[a-zA-Z0-9-]+)/history/', views.history),
|
||||
(r'^(?P<acronym>[a-zA-Z0-9-]+)/edit/', edit.edit, {'action': "edit"}, "wg_edit"),
|
||||
|
|
Loading…
Reference in a new issue