BVB Source Codes

mongo-express Show database.html Source code

Return Download mongo-express: download database.html Source code - Download mongo-express Source code - Type:.html
  1. {% extends 'layout.html' %}
  2.  
  3. {% block title %}{{ dbName }}{% endblock %}
  4.  
  5. {% block breadcrumb %}
  6.   <li>
  7.     <a href="{{ baseHref }}db/{{ dbName}}">Database:</a>
  8.   </li>
  9.   <li class="dropdown">
  10.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ dbName }}<span class="caret"></span></a>
  11.     <ul class="dropdown-menu">
  12.       {% for db in databases %}
  13.       <li><a href="{{ baseHref }}db/{{ db }}/">{{ db }}</a></li>
  14.       {% endfor %}
  15.     </ul>
  16.   </li>
  17. {% endblock %}
  18.  
  19. {% block content %}
  20. <div class="panel panel-default">
  21.   <div class="panel-heading">
  22.     <div style="display: inline-block;">
  23.     <h4 style="font-weight: bold;">Collections</h4>
  24.       </div>
  25.     {% if !settings.read_only %}
  26.         <form class="form-inline" method="POST" style="float: right;">
  27.           <div class="input-group">
  28.             <input class="form-control" type="text" id="collection" name="collection" placeholder="Collection Name" title="Collection Name">
  29.             <span class="input-group-btn">
  30.               <button type="submit" class="btn btn-primary pull-right">
  31.                 <span class="glyphicon glyphicon-plus"></span>
  32.                 Create collection
  33.               </button>
  34.             </span>
  35.           </div><!-- /input-group -->
  36.         </form>
  37.     {% endif %}
  38.  
  39.   </div>
  40.   <div class="panel-body no-padding">
  41.     <table class="table table-bordered table-striped table-condensed no-margin">
  42.       {% for c in colls %}
  43.       <tr>
  44.         <td class="col-md-2">
  45.           <a href="{{ baseHref }}db/{{ dbName }}/{{ c | url_encode }}" class="btn btn-success btn-block">
  46.             <span class="glyphicon glyphicon-eye-open"></span><br>View
  47.           </a>
  48.         </td>
  49.         <td class="col-md-1">
  50.           <a href="{{ baseHref }}db/{{ dbName }}/export/{{ c | url_encode }}" class="btn btn-warning btn-block">
  51.             <span class="glyphicon glyphicon-floppy-save"></span><br>Export
  52.           </a>
  53.         </td>
  54.         <td class="col-md-1">
  55.           <a href="{{ baseHref }}db/{{ dbName }}/expArr/{{ c | url_encode }}" class="btn btn-warning btn-block">
  56.             <span class="glyphicon glyphicon-floppy-save"></span><br>[JSON]
  57.           </a>
  58.         </td>
  59.         <td><h3><a href="{{ baseHref }}db/{{ dbName }}/{{ c | url_encode }}">{{ c }}</a></h3></td>
  60.         {% if !settings.read_only %}
  61.         <td class="col-md-1">
  62.           <form method="POST"
  63.            id="db-{{ dbName }}-{{ c }}"
  64.            action="{{ baseHref }}db/{{ dbName }}/{{ c | url_encode }}"
  65.            style="margin: 0px;"
  66.          >
  67.             <input type="hidden" name="_method" value="delete">
  68.             <button type="submit" class="hidden"></button>
  69.           </form>
  70.           <button class="btn btn-danger btn-block deleteButton" collection-name="{{ c }}" childof="db-{{ dbName }}-{{ c }}">
  71.             <span class="glyphicon glyphicon-trash"></span><br>Del
  72.           </button>
  73.         </td>
  74.         {% endif %}
  75.       </tr>
  76.       {% endfor %}
  77.     </table>
  78.   </div>
  79. </div>
  80.  
  81. <div id="confirm-deletion" class="modal fade" role="dialog" aria-labelledby="confirmDeletionLabel">
  82.   <div class="modal-dialog" role="document">
  83.     <div class="modal-content">
  84.  
  85.       <div class="modal-header">
  86.         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
  87.         <h4 class="modal-title" id="myModalLabel">Delete collection</h4>
  88.       </div>
  89.  
  90.       <div class="modal-body">
  91.         <p>
  92.           Be careful! You are about to delete whole <strong><span id="modal-collection-name"></span></strong> collection.
  93.         </p>
  94.         <p>
  95.           <label for="confirmation-input">Type the collection name to proceed.</label>
  96.           <input type="text" id="confirmation-input" name="confirmation-input" shouldbe="" value="" />
  97.         </p>
  98.       </div>
  99.  
  100.       <div class="modal-footer">
  101.         <button type="button" data-dismiss="modal" class="btn btn-danger" id="delete">Delete</button>
  102.         <button type="button" data-dismiss="modal" class="btn">Cancel</button>
  103.       </div>
  104.  
  105.     </div>
  106.   </div>
  107. </div>
  108.  
  109. {% if grids.length && settings.gridFSEnabled %}
  110.  <h2>GridFS Buckets</h2>
  111.  
  112. <table class="table table-bordered table-striped table-condensed">
  113.  {% for b in grids %}
  114.  <tr>
  115.    <td class="col-md-2">
  116.      <a href="{{ baseHref }}db/{{ dbName }}/gridFS/{{ b }}" class="btn btn-success btn-block">
  117.        <span class="glyphicon glyphicon-eye-open"></span><br>View
  118.      </a>
  119.    </td>
  120.    <td><h3><a href="{{ baseHref }}db/{{ dbName }}/gridFS/{{ b }}">{{ b }}</a></h3></td>
  121.  </tr>
  122.  {% endfor %}
  123. </table>
  124. {% endif %}
  125.  
  126. {% if !settings.read_only %}
  127. <!--div class="row">
  128.  <div class="col-md-6">
  129.    <h2>Create Collection</h2>
  130.    <form class="well form-inline" method="POST">
  131.        <div class="form-group">
  132.          <span class="add-on">{{ dbName }} . </span>
  133.          <input class="input-medium" type="text" id="collection" name="collection" placeholder="Collection Name" title="Collection Name">
  134.        </div>
  135.        <button type="submit" class="btn btn-primary pull-right">
  136.          <span class="glyphicon glyphicon-plus"></span>
  137.          Create collection
  138.        </button>
  139.    </form>
  140.  </div>
  141. </div-->
  142. <!--
  143. <div class="row">
  144.  <div class="col-md-6">
  145.    <h2>Create GridFS Bucket</h2>
  146.    <form class="well form-inline" method="POST">
  147.        <div class="form-group">
  148.          <span class="add-on">{{ dbName }} . </span>
  149.          <input class="input-medium" type="text" id="bucket" name="bucket" placeholder="Bucket Name" title="Bucket Name">
  150.        </div>
  151.        <button type="submit" class="btn btn-primary pull-right">
  152.          <span class="glyphicon glyphicon-plus"></span>
  153.          Create bucket
  154.        </button>
  155.    </form>
  156.  </div>
  157. </div>
  158. -->
  159. {% endif %}
  160.  
  161. <div class="panel panel-default stats">
  162.  <div class="panel-heading">
  163.    <h4 style="font-weight: bold;">Database Stats</h4>
  164.   </div>
  165.   <table class="table table-bordered table-striped">
  166.     <tr>
  167.       <td><strong>Collections (incl. system.namespaces)</strong></td>
  168.       <td>{{ stats.collections }}</td>
  169.     </tr>
  170.     <tr>
  171.       <td><strong>Data Size</strong></td>
  172.       <td>{{ stats.dataSize }}</td>
  173.     </tr>
  174.     <tr>
  175.       <td><strong>Storage Size</strong></td>
  176.       <td>{{ stats.storageSize }}</td>
  177.     </tr>
  178.     {% if stats.fileSize %}
  179.       <tr>
  180.       <td><strong>File Size (on disk)</strong></td>
  181.       <td>{{ stats.fileSize }}</td>
  182.       </tr>
  183.     {% endif %}
  184.     {% if stats.avgObjSize %}
  185.       <tr>
  186.       <td><strong>Avg Obj Size #</strong></td>
  187.       <td>{{ stats.avgObjSize }}</td>
  188.       </tr>
  189.     {% endif %}
  190.     {% if stats.objects %}
  191.       <tr>
  192.       <td><strong>Objects #</strong></td>
  193.       <td>{{ stats.objects }}</td>
  194.       </tr>
  195.     {% endif %}
  196.     {% if stats.numExtents %}
  197.       <tr>
  198.       <td><strong>Extents #</strong></td>
  199.       <td>{{ stats.numExtents }}</td>
  200.       </tr>
  201.     {% endif %}
  202.     {% if stats.extentFreeListNum %}
  203.       <tr>
  204.       <td><strong>Extents Free List</strong></td>
  205.       <td>{{ stats.extentFreeListNum }}</td>
  206.       </tr>
  207.     {% endif %}
  208.     {% if stats.indexes %}
  209.       <tr>
  210.       <td><strong>Indexes #</strong></td>
  211.       <td>{{ stats.indexes }}</td>
  212.       </tr>
  213.     {% endif %}
  214.     {% if stats.indexSize %}
  215.       <tr>
  216.       <td><strong>Index Size</strong></td>
  217.       <td>{{ stats.indexSize }}</td>
  218.       </tr>
  219.     {% endif %}
  220.     {% if stats.dataFileVersion %}
  221.       <tr>
  222.       <td><strong>Data File Version</strong></td>
  223.       <td>{{ stats.dataFileVersion }}</td>
  224.       </tr>
  225.     {% endif %}
  226.   </table>
  227. </div>
  228.  
  229. {% endblock %}
  230.  
  231. {% block scripts %}
  232. {% if !settings.read_only %}
  233. <script src="{{ baseHref }}{{ assets.database.js }}"></script>
  234. {% endif %}
  235. {% endblock %}
  236.  
downloaddatabase.html Source code - Download mongo-express Source code
Related Source Codes/Software:
XCL-Charts - Android charting libraries (XCL-Charts is a free c... 2017-05-17
scrollMonitor - A simple and fast API to monitor elements as you s... 2017-05-16
XCDYouTubeKit - YouTube video player for iOS, tvOS and macOS 2017-05-16
rails-erd - Generate Entity-Relationship Diagrams for Rails ap... 2017-05-16
np - A better `npm publish` 2017-05-16
kaminari - A Scope & Engine based, clean, powerful, custo... 2017-06-04
python-fire - Python Fire is a library for automatically generat... 2017-06-04
Dapper - Dapper - a simple object mapper for .Net 2017-06-05
pkg - Package your Node.js project into an executable ... 2017-06-05
packer - Packer is a tool for creating identical machine im... 2017-06-05
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top