BVB Source Codes

mongo-express Show collection.html Source code

Return Download mongo-express: download collection.html Source code - Download mongo-express Source code - Type:.html
  1. {% extends 'layout.html' %}
  2.  
  3. {% block title %}{{ collectionName }}{% endblock %}
  4.  
  5.  
  6. {% block styles %}
  7. <link href="{{ baseHref }}public/css/codemirror.css" rel="stylesheet">
  8.  
  9. {% if editorTheme != "default" %}
  10. <link href="{{ baseHref }}public/css/theme/{{ editorTheme }}.css" rel="stylesheet">
  11. {% endif %}
  12.  
  13. <style type="text/css">
  14.   .CodeMirror-scroll {
  15.     height: 120px;
  16.     overflow: auto;
  17.   }
  18.  
  19.   .modal-body .CodeMirror .CodeMirror-scroll {
  20.     height: auto;
  21.     min-height: 200px;
  22.     overflow-y: hidden;
  23.     overflow-x: auto;
  24.     width: 100%;
  25.   }
  26.  
  27.   .tab-pane > form {
  28.     padding-bottom: 5px;
  29.   }
  30.  
  31.   .sorting-button {
  32.     white-space: nowrap;
  33.   }
  34.  
  35.   @media (min-width: 992px) { /* meduim and up */
  36.     #advanced .form-group .btn {
  37.       height: 150px;
  38.     }
  39.   }
  40.  
  41.   #indexes td {
  42.     vertical-align: middle;
  43.   }
  44. </style>
  45. {% endblock %}
  46.  
  47.  
  48. {% block breadcrumb %}
  49.   <li>
  50.     <a href="{{ baseHref }}db/{{ dbName}}">Database:</a>
  51.   </li>
  52.   <li class="dropdown">
  53.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ dbName }}<span class="caret"></span></a>
  54.     <ul class="dropdown-menu">
  55.       {% for db in databases %}
  56.       <li><a href="{{ baseHref }}db/{{ db }}/">{{ db }}</a></li>
  57.       {% endfor %}
  58.     </ul>
  59.   </li>
  60.   <li>
  61.     <a href="{{ baseHref }}db/{{ dbName}}"><span class="glyphicon glyphicon-chevron-right"></span></a>
  62.   </li>
  63.   <li>
  64.     <a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}">Collection:</a>
  65.   </li>
  66.   <li class="dropdown">
  67.     <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ collectionName }}<span class="caret"></span></a>
  68.     <ul class="dropdown-menu">
  69.       {% for collection in collections %}
  70.       <li><a href="{{ baseHref }}db/{{ dbName }}/{{ collection | url_encode }}">{{ collection }}</a></li>
  71.       {% endfor %}
  72.     </ul>
  73.   </li>
  74. {% endblock %}
  75.  
  76. {% block content %}
  77.   {% if !settings.read_only %}
  78.     <p>
  79.       <button type="button" data-toggle="modal" data-target="#addDocument" class="btn btn-success btn-large btn-block">
  80.         <span class="glyphicon glyphicon-pencil"></span>
  81.         New Document
  82.       </button>
  83.     </p>
  84.   {% endif %}
  85.  
  86.   <ul id="tabs" class="nav nav-pills nav-justified" data-tabs="tabs">
  87.     <li class="active"><a href="#simple" data-toggle="tab"><span class="glyphicon glyphicon-tag"></span>  Simple</a></li>
  88.     <li><a href="#advanced" data-toggle="tab"><span class="glyphicon glyphicon-tags"></span>  Advanced</a></li>
  89.   </ul>
  90.   <div id="my-tab-content" class="tab-content">
  91.     <div class="tab-pane active" id="simple">
  92.       <form class="well" method="get" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}">
  93.         {% for column in columns %}
  94.           <input type="checkbox" name="sort[{{column}}]" class="hide sort-{{column}}" {% if sort[column] %}value="{{sort[column]}}" checked="checked"{% endif %}/>
  95.         {% endfor %}
  96.       <div class="row">
  97.         <div class="form-group col-sm-6 col-md-4">
  98.           <input style="width:100%;" class="input-medium form-control" type="text" id="key" name="key" placeholder="Key" title="Key" value="{{ key }}">
  99.         </div>
  100.         <div class="form-group col-sm-6 col-md-4">
  101.           <input style="width:100%;" class="input-medium form-control" type="text" id="value" name="value" placeholder="Value" title="Value" value="{{ value }}">
  102.         </div>
  103.         <div class="form-group col-sm-6 col-md-2">
  104.           <select name="type" class="form-control">
  105.             <option value="S" {% if type == 'S' %}selected {% endif %}>String</option>
  106.             <option value="R" {% if type == 'R' %}selected {% endif %}>Regex</option>
  107.             <option value="J" {% if type == 'J' %}selected {% endif %}>JSON, bool</option>
  108.             <option value="N" {% if type == 'N' %}selected {% endif %}>Number</option>
  109.             <option value="O" {% if type == 'O' %}selected {% endif %}>ObjectID</option>
  110.           </select>
  111.         </div>
  112.         <div class="form-group col-sm-6 col-md-2">
  113.           <button type="submit" class="btn btn-primary btn-block">
  114.             <span class="glyphicon glyphicon-search"></span>
  115.             Find
  116.           </button>
  117.         </div>
  118.       </div>
  119.       </form>
  120.     </div>
  121.     <div class="tab-pane" id="advanced">
  122.       <form class="well" method="get" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}">
  123.         {% for column in columns %}
  124.           <input type="checkbox" name="sort[{{column}}]" class="hide sort-{{column}}" {% if sort[column] %}value="{{sort[column]}}" checked="checked"{% endif %}/>
  125.         {% endfor %}
  126.         <div class="row">
  127.           <div class="form-group col-sm-6 col-md-5">
  128.             <textarea class="input-medium form-control" style="width: 100%; height: 150px" id="query" name="query" placeholder="Query" title="Query">{{ query }}</textarea>
  129.           </div>
  130.           <div class="form-group col-sm-6 col-md-5">
  131.             <textarea class="input-medium form-control" style="width: 100%; height: 150px" id="projection" name="projection" placeholder="Projection" title="Projection">{{ projection }}</textarea>
  132.           </div>
  133.           <div class="form-group col-md-2">
  134.             <button style="height:150px;" type="submit" class="btn btn-primary btn-block">
  135.               <span class="glyphicon glyphicon-search"></span>
  136.             Find
  137.             </button>
  138.           </div>
  139.         </div>
  140.       </form>
  141.     </div>
  142.   </div>
  143.   {% if !settings.read_only && count > 0 %}
  144.  <p>
  145.    <form id="deleteListForm" method="POST" style="display:inline;" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}">
  146.      {# Router is smart enough to transform method=POST + _method=delete into actual HTTP DELETE, which is what we want #}
  147.      <input type="hidden" name="_method" value="delete">
  148.      <button type="button" data-toggle="modal" data-target="#deleteListModal" class="btn btn-danger btn-large btn-block">
  149.        <span class="glyphicon glyphicon-trash"></span>
  150.        Delete all {{count}} documents retrieved
  151.      </button>
  152.    </form>
  153.  </p>
  154.  {% endif %}
  155.  <br/>
  156.  
  157. <!-- Add Document Modal -->
  158.  <div class="modal fade" id="addDocument" role="dialog" tabindex="-1">
  159.  <div class="modal-dialog" role="document">
  160.    <div class="modal-content">
  161.    <form id="addDocumentForm" method="post" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}">
  162.  
  163.      <div class="modal-header">
  164.        <button class="close" data-dismiss="modal">脳</button>
  165.        <h2>Add Document</h2>
  166.      </div>
  167.  
  168.      <div class="modal-body">
  169.        <textarea id="document" name="document">{
  170.        "_id": ObjectID()
  171. }</textarea>
  172.      </div>
  173.  
  174.      <div class="modal-footer">
  175.        <button class="btn btn-error" data-dismiss="modal">Close</button>
  176.        <button type="submit" class="btn btn-success" onclick="return checkValidJSON()">
  177.          <span class="glyphicon glyphicon-pencil"></span>
  178.          Save
  179.        </button>
  180.      </div>
  181.  
  182.    </form>
  183.    </div>
  184.    </div>
  185.  </div>
  186. <!-- End Add Document Modal -->
  187.  
  188.  {% if documents.length == 0 %}
  189.    <p class="well">
  190.      No documents found.
  191.    </p>
  192.  {% else %}
  193.  
  194.  {% if pagination %}
  195.    <ul class="pager span7">
  196.      <li class="previous{% if prev.skip < 0 %} disabled{% endif %}">
  197.        <a{% if prev.skip >= 0 %} href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip=0&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}"{% endif %}>&larr; First</a>
  198.       </li>
  199.  
  200.       <li{% if prev.skip < 0 %} class="disabled"{% endif %}>
  201.         <a{% if prev.skip >= 0 %} href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ prev.skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}"{% endif %}>&larr; Prev</a>
  202.       </li>
  203.  
  204.       <li{% if next.skip >= stats.count %} class="disabled"{% endif %}>
  205.         <a{% if next.skip < stats.count %} href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ next.skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}"{% endif %}>Next &rarr;</a>
  206.       </li>
  207.  
  208.       <li class="next{% if next.skip >= stats.count %} disabled{% endif %}">
  209.         <a{% if next.skip < stats.count %} href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ last }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}"{% endif %}>Last &rarr;</a>
  210.       </li>
  211.     </ul>
  212.   {% endif %}
  213.  
  214.   <div class="fadeToWhite" id="fadeToWhiteID"></div>
  215.   <div class="table-responsive tableWrapper">
  216.     <table class="table table-striped tableHeaderFooterBars">
  217.       <thead>
  218.         {% for column in columns %}
  219.           <th class="sorting-button" data-column="{{column}}" data-direction="{{sort[column]}}" title="Sort by {{column}}">
  220.             {{column}}
  221.             {% if sort[column] == 1 %}
  222.               <span class="glyphicon glyphicon-triangle-top"></span>
  223.             {% elseif sort[column] == -1 %}
  224.               <span class="glyphicon glyphicon-triangle-bottom"></span>
  225.             {% endif %}
  226.           </th>
  227.         {% endfor %}
  228.       </thead>
  229.       {% for document in docs %}
  230.         <tr onclick="loadDocument('{{ document._id | json | safe | url_encode }}')">
  231.           {% for column in columns %}
  232.             <td><div class="tableContent">
  233.               {% if !settings.read_only && column === '_id' && collectionName !== 'system.indexes' %}
  234.                <form class="deleteButtonDocument" method="POST" style="display:inline;" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}/{{ document._id | json | safe | url_encode }}?skip={{ skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection= {{ projection }}">
  235.                <input type="hidden" name="_method" value="delete">
  236.                <button type="submit" class="btn btn-danger">
  237.                <span class="glyphicon glyphicon-trash"></span>
  238.                </button>
  239.                </form>
  240.              {% endif %}
  241.            {{ document[column] | stringDocIDs | to_display | safe }}
  242.            </div></td>
  243.          {% endfor %}
  244.        </tr>
  245.      {% endfor %}
  246.    </table>
  247.  </div>
  248.  
  249.  {% if pagination %}
  250.    <nav>
  251.      <div class="text-center">
  252.      <ul class="pagination">
  253.        {%- if prev2.skip >= 0 %}
  254.        <li><a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ prev2.skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}">{{ prev2.page }}</a></li>
  255.        {% else %}
  256.        <li><a>&nbsp;</a></li>
  257.         {%- endif %}
  258.  
  259.         {%- if prev.skip >= 0 %}
  260.         <li><a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ prev.skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}">{{ prev.page }}</a></li>
  261.         {% else %}
  262.         <li><a>&nbsp;</a></li>
  263.         {%- endif %}
  264.  
  265.         <li class="active"><a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}">{{ here }}</a></li>
  266.  
  267.         {%- if next.skip < stats.count %}
  268.        <li><a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ next.skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}">{{ next.page }}</a></li>
  269.         {% else %}
  270.         <li><a>&nbsp;</a></li>
  271.         {% endif %}
  272.  
  273.         {%- if next2.skip < stats.count %}
  274.        <li><a href="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}?skip={{ next2.skip }}&key={{ key }}&value={{ value }}&type={{ type }}&query={{ query }}&projection={{ projection }}{% for k, v in sort %}&sort[{{ k }}]={{ v }}{% endfor %}">{{ next2.page }}</a></li>
  275.         {% else %}
  276.         <li><a>&nbsp;</a></li>
  277.         {% endif %}
  278.       </ul>
  279.       </div>
  280.     </nav>
  281.   {% endif %}
  282.  
  283.   {% endif %}
  284.  
  285.   <div class="row">
  286.     {% if !settings.read_only %}
  287.       <div class="col-md-12">
  288.         <h2>Rename Collection</h2>
  289.         <form method="POST" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}" class="well form-inline">
  290.           <input type="hidden" name="_method" value="put">
  291.           <div class="form-group">
  292.             <span class="add-on">{{ dbName }} . </span>
  293.             <input class="form-control" type="text" id="collection" name="collection" placeholder="{{ collectionName }}">
  294.           </div>
  295.           <button type="submit" class="btn btn-primary">
  296.             <span class="glyphicon glyphicon-pencil"></span>
  297.             Rename
  298.           </button>
  299.         </form>
  300.       </div>
  301.     {% endif %}
  302.  
  303.   </div>
  304.   <h2>Tools</h2>
  305.   <div class="row">
  306.     <div class="col-sm-6 {% if !settings.read_only %}col-lg-3{% endif %}">
  307.       <div class="well">
  308.       <a href="{{ baseHref }}db/{{ dbName }}/export/{{ collectionName | url_encode }}" class="btn btn-warning btn-block">
  309.         <span class="glyphicon glyphicon-floppy-save"></span><br>Export Standard
  310.       </a>
  311.       </div>
  312.     </div>
  313.  
  314.     <div class="col-sm-6 {% if !settings.read_only %}col-lg-3{% endif %}">
  315.       <div class="well">
  316.       <a href="{{ baseHref }}db/{{ dbName }}/expArr/{{ collectionName | url_encode }}" class="btn btn-warning btn-block">
  317.         <span class="glyphicon glyphicon-floppy-save"></span><br>Export --jsonArray
  318.       </a>
  319.       </div>
  320.     </div>
  321.  
  322.     <div class="col-sm-6 {% if !settings.read_only %}col-lg-3{% endif %}">
  323.       <div class="well">
  324.       <a href="{{ baseHref }}db/{{ dbName }}/expCsv/{{ collectionName | url_encode }}" class="btn btn-warning btn-block">
  325.         <span class="glyphicon glyphicon-floppy-save"></span><br>Export --csv
  326.       </a>
  327.       </div>
  328.     </div>
  329.  
  330.     <div class="col-sm-6 {% if !settings.read_only %}col-lg-3{% endif %}">
  331.       <div class="well">
  332.       <a href="{{ baseHref }}db/{{ dbName }}/reIndex/{{ collectionName | url_encode }}" class="btn btn-warning btn-block">
  333.         <span class="glyphicon glyphicon-resize-small"></span><br>Reindex
  334.       </a>
  335.       </div>
  336.     </div>
  337.  
  338.     {% if !settings.read_only %}
  339.       <div class="col-sm-6 col-lg-3">
  340.         <div class="well">
  341.           <a href="{{ baseHref }}db/{{ dbName }}/compact/{{ collectionName | url_encode }}" class="btn btn-danger btn-block">
  342.             <span class="glyphicon glyphicon-resize-small"></span><br>Compact
  343.           </a>
  344.         </div>
  345.       </div>
  346.       <div class="col-sm-6 col-lg-3">
  347.         <form method="POST" action="{{ baseHref }}db/{{ dbName }}/{{ collectionName | url_encode }}" id="db-{{ dbName }}-{{ collectionName }}" class="well">
  348.           <input type="hidden" name="_method" value="delete">
  349.           <input type="submit" class="hidden" />
  350.           <button class="btn btn-danger deleteButtonCollection btn-block" collection-name="{{ collectionName }}" childof="db-{{ dbName }}-{{ collectionName }}">
  351.             <span class="glyphicon glyphicon-trash"></span><br>Delete
  352.           </button>
  353.         </form>
  354.  
  355.       </div>
  356.  
  357.       <div id="confirm-deletion-document" class="modal fade" role="dialog" aria-labelledby="confirmDeletionDocumentLabel">
  358.         <div class="modal-dialog" role="document">
  359.           <div class="modal-content">
  360.             <div class="modal-body">
  361.               Are you sure?
  362.             </div>
  363.             <div class="modal-footer">
  364.               <button type="button" data-dismiss="modal" class="btn btn-danger" id="delete">Delete</button>
  365.               <button type="button" data-dismiss="modal" class="btn">Cancel</button>
  366.             </div>
  367.           </div>
  368.         </div>
  369.       </div>
  370.  
  371.       <div id="deleteListModal" class="modal fade" role="dialog" aria-labelledby="confirmDeletionListLabel">
  372.         <div class="modal-dialog" role="document">
  373.           <div class="modal-content">
  374.             <div class="modal-body">
  375.               Are you sure you want to delete all {{count}} documents?
  376.             </div>
  377.             <div class="modal-footer">
  378.               <button type="button" data-dismiss="modal" class="btn btn-danger" id="deleteListConfirmButton">Delete</button>
  379.               <button type="button" data-dismiss="modal" class="btn">Cancel</button>
  380.             </div>
  381.           </div>
  382.         </div>
  383.       </div>
  384.  
  385.  
  386.       <div id="confirm-deletion-collection" class="modal fade" role="dialog" aria-labelledby="confirmDeletionCollectionLabel">
  387.         <div class="modal-dialog" role="document">
  388.           <div class="modal-content">
  389.             <div class="modal-header">
  390.               <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
  391.               <h4 class="modal-title" id="myModalLabel">Delete collection</h4>
  392.             </div>
  393.             <div class="modal-body">
  394.               <p>
  395.                 Be careful! You are about to delete whole <strong><span id="modal-collection-name"></span></strong> collection.
  396.               </p>
  397.               <p>
  398.                 <label for="confirmation-input">Type the collection name to proceed.</label>
  399.                 <input type="text" id="confirmation-input" name="confirmation-input" shouldbe="" value="" />
  400.               </p>
  401.             </div>
  402.  
  403.             <div class="modal-footer">
  404.               <button type="button" data-dismiss="modal" class="btn btn-danger" id="delete">Delete</button>
  405.               <button type="button" data-dismiss="modal" class="btn">Cancel</button>
  406.             </div>
  407.  
  408.           </div>
  409.         </div>
  410.       </div>
  411.     {% endif %}
  412.  
  413.   <div class="stats col-md-12">
  414.     <h2>Collection Stats</h2>
  415.     <table class="table table-bordered table-striped">
  416.       <tr>
  417.         <td>
  418.           <strong>Documents</strong>
  419.         </td>
  420.         <td>
  421.           {{ stats.count }}
  422.         </td>
  423.       </tr>
  424.       <tr>
  425.         <td>
  426.           <strong>Total doc size</strong>
  427.         </td>
  428.         <td>
  429.           {{ stats.size|convertBytes }}
  430.         </td>
  431.       </tr>
  432.       <tr>
  433.         <td>
  434.           <strong>Average doc size</strong>
  435.         </td>
  436.         <td>
  437.           {{ stats.avgObjSize|convertBytes }}
  438.         </td>
  439.       </tr>
  440.       <tr>
  441.         <td>
  442.           <strong>Pre-allocated size</strong>
  443.         </td>
  444.         <td>
  445.           {{ stats.storageSize|convertBytes }}
  446.         </td>
  447.       </tr>
  448.       <tr>
  449.         <td>
  450.           <strong>Indexes</strong>
  451.         </td>
  452.         <td>
  453.           {{ stats.nindexes }}
  454.         </td>
  455.       </tr>
  456.       <tr>
  457.         <td>
  458.           <strong>Total index size</strong>
  459.         </td>
  460.         <td>
  461.           {{ stats.totalIndexSize|convertBytes }}
  462.         </td>
  463.       </tr>
  464.       <tr>
  465.         <td>
  466.           <strong>Padding factor</strong>
  467.         </td>
  468.         <td>
  469.           {{ stats.paddingFactor }}
  470.         </td>
  471.       </tr>
  472.       <tr>
  473.         <td>
  474.           <strong>Extents</strong>
  475.         </td>
  476.         <td>
  477.           {{ stats.numExtents }}
  478.         </td>
  479.       </tr>
  480.     </table>
  481.   </div>
  482.  
  483.   <div class="col-md-12">
  484.     <h2>Indexes</h2>
  485.     <table id="indexes" class="table table-bordered table-striped">
  486.       <tr>
  487.         <th>Name</th>
  488.         <th>Columns</th>
  489.         <th>Size</th>
  490.         <th>Attributes</th>
  491.         <th>Actions</th>
  492.       </tr>
  493.     {% for index in indexes %}
  494.       <tr>
  495.         <td>
  496.           {{ index.name }}
  497.         </td>
  498.         <td>
  499.           {% for sort in index.key %}
  500.           <div>{{ loop.key }} &nbsp; {% if sort == 1 %} ASC {% else %} DSC {% endif %}</div>
  501.           {% endfor %}
  502.         </td>
  503.         <td>
  504.           {{ index.size|convertBytes }}
  505.         </td>
  506.         <td>
  507.           {% for k,v in index %}
  508.           <div>{% if k != 'key' && k != 'v' && k != 'name' && k != 'ns' && k != 'size'%} {{ k }}: &nbsp;{{ v }} {% endif %}</div>
  509.           {% endfor %}
  510.         </td>
  511.       {% if !settings.read_only %}
  512.         <td>
  513.           <a class="btn btn-danger" href="{{ baseHref }}db/{{ dbName }}/dropIndex/{{ collectionName | url_encode }}?name={{ index.name }}">
  514.             <span class="glyphicon glyphicon-trash"></span> &nbsp;DEL
  515.           </a>
  516.         </td>
  517.       {% else %}
  518.         <td>
  519.         </td>
  520.       {% endif %}
  521.       </tr>
  522.     {% endfor %}
  523.     </table>
  524.   </div>
  525. {% endblock %}
  526.  
  527.  
  528. {% block scripts %}
  529. <script src="{{ baseHref }}{{assets.codemirror.js}}"></script>
  530. <script src="{{ baseHref }}{{assets.collection.js}}"></script>
  531. {% endblock %}
  532.  
downloadcollection.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