ashb commented on a change in pull request #21342:
URL: https://github.com/apache/airflow/pull/21342#discussion_r801423790



##########
File path: airflow/www/views.py
##########
@@ -3859,6 +3859,9 @@ class VariableModelView(AirflowModelView):
 
     list_template = 'airflow/variable_list.html'
     edit_template = 'airflow/variable_edit.html'
+    show_template = 'airflow/variable_show.html'

Review comment:
       Actually, there's another way to do this that doesn't involve changing 
the template.
   
   
   ```python
       formatters_columns = {
           'val': lamda v: Markup("<pre>%s</pre>") % v.val,
       }
   ```
   I think this should be all you need - no custom widget or templates.




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to