You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2020/06/29 13:21:23 UTC

[airflow] 17/37: Filter dags by clicking on tag (#8897)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 7bb1e70cc978b14c943c6ae27ff1374a1ce99978
Author: sangarshanan <sa...@gmail.com>
AuthorDate: Wed May 27 16:42:33 2020 +0530

    Filter dags by clicking on tag (#8897)
    
    Co-authored-by: Zacharya <za...@gmail.com>
    
    (cherry-picked from 30b12a9)
---
 airflow/www_rbac/templates/airflow/dags.html | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/airflow/www_rbac/templates/airflow/dags.html b/airflow/www_rbac/templates/airflow/dags.html
index f93b65b..f2f131c 100644
--- a/airflow/www_rbac/templates/airflow/dags.html
+++ b/airflow/www_rbac/templates/airflow/dags.html
@@ -110,7 +110,11 @@
 
               <div style="float: right; max-width: 70%; text-align: right; line-height: 160%;">
                 {% for tag in dag.tags | sort(attribute='name') %}
-                  <span class="label label-success" style="margin: 3px;">{{ tag.name }}</span>
+                  <a class="label label-success"
+                     href="?tags={{ tag.name }}"
+                     style="margin: 3px;">
+                     {{ tag.name }}
+                  </a>
                 {% endfor %}
               </div>
             </td>