Fix database manager link.

This commit is contained in:
Santiago Lamora 2020-02-17 13:45:47 +01:00
parent c2a262ff17
commit 9fd2d6eb17
2 changed files with 5 additions and 1 deletions

View File

@ -184,6 +184,10 @@ class DatabaseService(OrchestraModel):
return details
@property
def manager_url(self):
return musician_settings.URL_DB_PHPMYADMIN
class Domain(OrchestraModel):
api_name = 'domain'

View File

@ -42,7 +42,7 @@
</div>
<div class="col-md-5 text-right">
<div class="service-manager-link">
<a class="btn btn-primary" href="#open-phpmyadmin">{% trans "Open database manager" %} <i class="fas fa-external-link-alt"></i></a>
<a class="btn btn-primary" href="{{ database.manager_url }}" target="_blank" rel="noopener noreferrer">{% trans "Open database manager" %} <i class="fas fa-external-link-alt"></i></a>
</div>
</div>
</div>