You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/08 00:10:44 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #11121: Filter dags by owner

mik-laj commented on a change in pull request #11121:
URL: https://github.com/apache/airflow/pull/11121#discussion_r519237262



##########
File path: airflow/www/templates/airflow/dags.html
##########
@@ -137,7 +137,11 @@ <h2>DAGs</h2>
 
             <!-- Column 5: Dag Owners -->
             <td>
-              {{ dag.owners }}
+              <a class="label label-default"
+                 href="?search={{ dag.owners }}"
+                 style="margin: 3px;">
+                 {{ dag.owners }}

Review comment:
       ````html
                     {% for owner in dag.owners.split(",") %}
                     <a class="label label-default"
                        href="?search={{ owner | trim }}"
                        style="margin: 3px;">
                        {{ owner | trim }}
                     </a>
                     {% endfor %}
   ````
   <img width="428" alt="Screenshot 2020-11-08 at 01 08 57" src="https://user-images.githubusercontent.com/12058428/98453942-130a8b80-215f-11eb-8aee-ee1998343fb8.png">
   
   What do you think aboiut it?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org