@@ -25,12 +25,12 @@ def render_saved_workflow_preview(
2525 page_cls : typing .Union ["BasePage" , typing .Type ["BasePage" ]],
2626 published_run : PublishedRun ,
2727 * ,
28- show_workspace_author : bool = False ,
2928 workflow_pill : str | None = None ,
29+ show_workspace_author : bool = False ,
30+ show_run_count : bool = False ,
3031 hide_visibility_pill : bool = False ,
3132 hide_version_notes : bool = False ,
3233 hide_last_editor : bool = False ,
33- is_member : bool = False ,
3434):
3535 tb = get_title_breadcrumbs (page_cls , published_run .saved_run , published_run )
3636
@@ -81,10 +81,10 @@ def render_saved_workflow_preview(
8181 render_footer_breadcrumbs (
8282 published_run = published_run ,
8383 show_workspace_author = show_workspace_author ,
84+ show_run_count = show_run_count ,
8485 hide_version_notes = hide_version_notes ,
8586 hide_visibility_pill = hide_visibility_pill ,
8687 hide_last_editor = hide_last_editor ,
87- is_member = is_member ,
8888 )
8989
9090 if output_url :
@@ -166,10 +166,10 @@ def render_footer_breadcrumbs(
166166 * ,
167167 published_run : PublishedRun ,
168168 show_workspace_author : bool ,
169+ show_run_count : bool ,
169170 hide_visibility_pill : bool ,
170171 hide_version_notes : bool ,
171172 hide_last_editor : bool ,
172- is_member : bool ,
173173):
174174 latest_version = published_run .versions .latest ()
175175
@@ -218,7 +218,9 @@ def render_footer_breadcrumbs(
218218 className = "text-muted" ,
219219 )
220220
221- if published_run .run_count and (published_run .run_count >= 50 or is_member ):
221+ if show_run_count or (
222+ published_run .run_count and published_run .run_count >= 50
223+ ):
222224 run_count = format_number_with_suffix (published_run .run_count )
223225 with gui .div ():
224226 gui .write (
0 commit comments