Set mailtrain URL.
This commit is contained in:
parent
f023cb21c7
commit
09c16ab2ae
|
@ -5,6 +5,8 @@ from django.utils.dateparse import parse_datetime
|
||||||
from django.utils.html import format_html
|
from django.utils.html import format_html
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
|
from . import settings as musician_settings
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -249,9 +251,8 @@ class MailinglistService(OrchestraModel):
|
||||||
return "{}@{}".format(self.data['address_name'], self.data['address_domain']['name'])
|
return "{}@{}".format(self.data['address_name'], self.data['address_domain']['name'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def configure(self):
|
def manager_url(self):
|
||||||
# TODO(@slamora): build mailtran absolute URL
|
return musician_settings.URL_MAILTRAIN
|
||||||
return format_html('<a href="#TODO">Mailtrain</a>')
|
|
||||||
|
|
||||||
|
|
||||||
class SaasService(OrchestraModel):
|
class SaasService(OrchestraModel):
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<td>{{ resource.address_name}}</td>
|
<td>{{ resource.address_name}}</td>
|
||||||
<td>{{ resource.admin_email }}</td>
|
<td>{{ resource.admin_email }}</td>
|
||||||
<td><a href="#TODO-{{ resource.manager_url }}" target="_blank" rel="noopener noreferrer">Mailtrain</a></td>
|
<td><a href="{{ resource.manager_url }}" target="_blank" rel="noopener noreferrer">Mailtrain</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in a new issue