main

square/leakcanary

Last updated at: 29/12/2023 09:38

main.html

TLDR

This file is an HTML template file that extends another HTML file called "base.html". It contains blocks that provide additional content to the base template. The main purpose of this file is to display content on a web page.

Classes

There are no classes defined in this file.

Methods

There are no methods defined in this file.

{% extends "base.html" %}

{% block announce %} 
   Upgrade to <a href="{{ base_url }}/changelog/">LeakCanary <strong>{{config.extra.leak_canary.release}}</strong></a> 🐤 Want to help?  <a href="{{ base_url }}/how_to_help/">Here's how you can contribute<a> 🙏
{% endblock %}

{% block content %}
  {% if page.edit_url %}
    {% if "/api/" in page.edit_url %}
  <span style="float: right">🤔 Documentation issue? <a href="https://github.com/square/leakcanary/issues/new?assignees=&labels=type%3A+documentation&template=4-doc.md&title=Doc%20issue%20with%20{{ page.url }}%20page">Report it</a></span>
    {% else %}
  <span style="float: right">🤔 Documentation issue? <a href="https://github.com/square/leakcanary/issues/new?assignees=&labels=type%3A+documentation&template=4-doc.md&title=Doc%20issue%20with%20{{ page.url }}%20page">Report</a> or <a href="{{ page.edit_url }}">edit</a></span>
    {% endif %}
  {% endif %}
  {% block source %}
    {% if page and page.meta and page.meta.source %}
      {% include "partials/source-link.html" %}
    {% endif %}
  {% endblock %}
  {% if not "\x3ch1" in page.content %}
    <h1>{{ page.title | default(config.site_name, true)}}</h1>
  {% endif %}
  {{ page.content }}
  {% if page and page.meta %}
    {% if page.meta.git_revision_date_localized or
          page.meta.revision_date
    %}
      {% include "partials/source-date.html" %}
    {% endif %}
  {% endif %}
{% endblock %}