Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX Enhancement: Empty State of Plugins View #13599

Merged
merged 1 commit into from
Jan 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 19 additions & 27 deletions airflow/www/templates/airflow/plugin.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,30 @@

{% extends base_template %}


{% block title %}

{{ title }}

{% endblock %}


{% block content %}

<div>

<h2>{{ title }}</h2>

{% for plugin in plugins %}
<h4>{{ plugin["plugin_no"] }}. {{ plugin["plugin_name"] }}</h4>

<table class="table table-striped table-bordered">
<h2>{{ title }}</h2>
{% if plugins|length == 0 %}
<p>No plugins loaded. Learn more in the
<a href="https://airflow.apache.org/docs/apache-airflow/stable/plugins.html" target="_blank">plugins documentation</a>.
</p>
{% endif %}
{% for plugin in plugins %}
<h4>{{ plugin["plugin_no"] }}. {{ plugin["plugin_name"] }}</h4>
<table class="table table-striped table-bordered">
<tr>
<th>Attribute</th>
<th>Value</th>
</tr>
{% for attr, value in plugin["attrs"].items() %}
<tr>
<th>Attribute</th>
<th>Value</th>
<td>{{ attr }}</td>
<td class='code'>{{ value }}</td>
</tr>
{% for attr, value in plugin["attrs"].items() %}
<tr>
<td>{{ attr }}</td>
<td class='code'>{{ value }}</td>
</tr>
{% endfor %}
</table>

{% endfor %}

</div>

{% endfor %}
</table>
{% endfor %}
{% endblock %}