Move extra links import into new file
This commit is contained in:
@@ -4,7 +4,6 @@ from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
%>
|
||||
<%namespace file="sock_links.html" import="get_sock_links" />
|
||||
<%namespace file="sock_links_extra.html" import="get_sock_links_extra" />
|
||||
|
||||
<div class="wrapper-sock wrapper">
|
||||
<ul class="list-actions list-cta">
|
||||
@@ -20,7 +19,7 @@ from django.utils.translation import ugettext as _
|
||||
<section class="sock" id="sock" aria-labelledby="sock-heading">
|
||||
<h2 id="sock-heading" class="title sr-only">${_("{studio_name} Documentation").format(studio_name=settings.STUDIO_NAME)}</h2>
|
||||
<%
|
||||
links = get_sock_links() + get_sock_links_extra()
|
||||
links = get_sock_links()
|
||||
%>
|
||||
<div class="support">
|
||||
<ul class="list-actions">
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
from django.conf import settings
|
||||
from django.utils.translation import ugettext as _
|
||||
%>
|
||||
<%namespace file="sock_links_extra.html" import="get_sock_links_extra" />
|
||||
|
||||
<%def name="get_sock_links()">
|
||||
<%
|
||||
@@ -35,6 +36,8 @@ from django.utils.translation import ugettext as _
|
||||
'condition': bool(partner_email)
|
||||
}
|
||||
]
|
||||
links_extra = get_sock_links_extra()
|
||||
links += links_extra
|
||||
return links
|
||||
%>
|
||||
</%def>
|
||||
|
||||
Reference in New Issue
Block a user