| {#- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| -#} |
| {% set hide_left_bar = True %} |
| {% extends g.theme.master %} |
| {% block title %}{{c.project.name}} / {{c.app.config.options.mount_label}} / Link is not configured{% endblock %} |
| |
| {% block header %}{{c.app.config.options.mount_label}}{% endblock %} |
| {% block short_url_content %}{% endblock %} |
| |
| {% block extra_js %} |
| {{c.short_url_lightbox.display(url_len=url_len)}} |
| <script type="text/javascript"> |
| $(function() { |
| $('a.add-short-url').click(function() { |
| var modal = $('#lightbox_short-url-modal'); |
| modal.find('#short-url-form-title').show(); |
| modal.find('#short-url-form-action-label').text('Add'); |
| modal.find('input[name="update"]').val('False'); |
| modal.find('input[name="short_url"]').val('').prop('readonly', false).trigger('keyup'); |
| modal.find('input[name="full_url"]').val(''); |
| modal.find('textarea[name="description"]').val(''); |
| modal.find('input[name="private"]').prop('checked', false); |
| }); |
| }); |
| </script> |
| {% endblock %} |
| |
| {% block extra_css %} |
| <style> |
| .pad table { width: 915px; } |
| </style> |
| {% endblock %} |