File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
templates/logical/database/details Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 2828from util import get_credentials_for
2929from util import get_or_none_credentials_for
3030from dbaas_credentials .models import CredentialType
31-
31+ from system . models import Configuration
3232
3333
3434LOG = logging .getLogger (__name__ )
@@ -524,6 +524,15 @@ def get_log_url(self):
524524 else :
525525 return self .__kibana_url ()
526526
527+ def get_chg_register_url (self ):
528+ endpoint = Configuration .get_by_name ('chg_register_url' )
529+ url = "{endpoint}/chg_register/{database_name}" .format (
530+ endpoint = endpoint ,
531+ database_name = self .name
532+ )
533+ print ('URL:' , url )
534+ return url
535+
527536 def get_dex_url (self ):
528537 if Configuration .get_by_name_as_int ('dex_analyze' ) != 1 :
529538 return ""
Original file line number Diff line number Diff line change 2525 </ a >
2626 </ div >
2727 </ div >
28+ < div class ="control-group ">
29+ < div class ="control-label "> < label > Changes in Service Now:</ label > </ div >
30+ < div class ="controls ">
31+ < a href ="{{ database.get_chg_register_url }} " class ="btn btn-primary " title ="Logs " data-content ="Logs " target ="_blank ">
32+ < i class ="icon-file icon-white "> </ i >
33+ </ a >
34+ </ div >
35+ </ div >
2836 < div class ="control-group ">
2937 < div class ="control-label "> < label > Project:</ label > </ div >
3038 < div class ="controls ">
You can’t perform that action at this time.
0 commit comments