{#- 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. -#} {% extends 'allura:templates/repo/repo_master.html' %} {% import 'allura:templates/jinja_master/lib.html' as lib with context %} {% do g.register_forge_css('css/forge/hilite.css') %} {% block title %} {{c.project.name}} / {{c.app.config.options.mount_label}} / {{blob.commit.shorthand_id()}} {{h.really_unicode(blob.path())}} {% endblock %} {% block header %} {{blob.commit.shorthand_id()}}: {{lib.path_links(blob.path().split('/')[1:-1])}} {{h.really_unicode(blob.name)}} {% endblock %} {% block actions %} {{ lib.maximize_content_button() }} {{ g.icons['history'].render(href='%slog/?path=%s' % (blob.commit.url(), blob.path()), show_title=True, rel='nofollow') }} {% endblock %} {% block extra_js %} {{ super() }} {% endblock %} {% block content %} {% if large_size %}

File is {{ large_size|filesizeformat}}. Too large to display.

Download this file

{% elif blob.has_image_view %}

Download this file

{% elif blob.has_html_view or blob.has_pypeline_view or force_display %}

Download this file

{{ stats.line_count }} lines ({{ stats.data_line_count }} with data), {{ stats.code_size|filesizeformat }}

{% if blob.has_pypeline_view %} {{h.render_any_markup(blob.name, blob.text, code_mode=True)}} {% else %} {{g.highlight(blob.text, filename=blob.name)}} {% endif %}
{% else %}

{{h.really_unicode(blob.name)}} is not known to be viewable in your browser. Try to display it anyway or download it instead.

{% endif %} {% endblock %}