Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,11 @@ def _render_saved_generated_timestamp(self):
):
self._render_report_button()
gui.write(get_relative_time(dt))
with gui.tooltip(
tooltip_content,
with (
gui.tooltip(tooltip_content),
gui.tag("span", className="text-muted d-inline-block"),
):
with gui.tag("span", className="text-muted d-inline-block"):
gui.html("<i class='fa-regular fa-circle-info'></i>")
gui.html(icons.info)

def _render_options_button_with_dialog(self):
ref = gui.use_alert_dialog(key="options-modal")
Expand Down
1 change: 1 addition & 0 deletions daras_ai_v2/icons.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
phone = '<i class="fa-solid fa-phone"></i>'
stars = '<i class="fa-solid fa-stars"></i>'
filter = '<i class="fa-solid fa-bars-filter"></i>'
info = "<i class='fa-regular fa-circle-info'></i>"

# brands
github = '<i class="fa-brands fa-github"></i>'
Expand Down
7 changes: 3 additions & 4 deletions widgets/saved_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,14 @@ def render_footer_breadcrumbs(
):
gui.html(f"{icons.notes} {html.escape(latest_version.change_notes)}")

updated_at = published_run.saved_run.updated_at
if (
updated_at
and isinstance(updated_at, datetime.datetime)
published_run.updated_at
and isinstance(published_run.updated_at, datetime.datetime)
and not hide_last_editor
):
with gui.div():
gui.write(
f"{icons.time} {get_relative_time(updated_at)}",
f"{icons.time} {get_relative_time(published_run.updated_at)}",
unsafe_allow_html=True,
className="text-muted",
)
Expand Down