LT-162: Add server information modal in user account menu
This commit is contained in:
1 parent
72ecc5b40d
commit
161bbba5cf
12 files changed
+213
-80
No files matched your search
+49
@@ -0,0 +1,49 @@
|
||||
<template name="serverInformationModal">
|
||||
<div class="modal" id="serverInformationModal" tabindex="-1" role="dialog" aria-labelledby="serverInformationModalLabel">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title" id="serverInformationModalLabel">Server Information</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{{#each serverInformation}}
|
||||
<table id="tblServer" class="table table-bordered table-hovered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>
|
||||
Host
|
||||
</th>
|
||||
<td>
|
||||
{{host}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
Port
|
||||
</th>
|
||||
<td>
|
||||
{{port}}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>
|
||||
AE Title
|
||||
</th>
|
||||
<td>
|
||||
{{aeTitle}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
{{/each}}
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
Template.serverInformationModal.helpers({
|
||||
serverInformation: function() {
|
||||
var defaultServiceType = Meteor.settings && Meteor.settings.defaultServiceType || 'dicomWeb';
|
||||
var serviceInfo = Meteor.settings[defaultServiceType];
|
||||
if (defaultServiceType === 'dicomWeb') {
|
||||
serviceInfo = serviceInfo["endpoints"];
|
||||
}
|
||||
return serviceInfo;
|
||||
}
|
||||
});
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
#serverInformationModal
|
||||
width: 350px
|
||||
margin: 0 auto
|
||||
|
||||
.modal-dialog
|
||||
width: 100%
|
||||
#tblServer
|
||||
tbody
|
||||
tr
|
||||
th
|
||||
width: 30%
|
||||
td
|
||||
width: 70%
|
||||
Reference in new issue
Block a user