@@ -437,7 +437,7 @@ templ AgentsTableBody(p partials.PaginationAndSort, agents []*ent.Agent, tags []
437437 <uk-icon hx-history =" false" icon =" monitor-pause" custom-class =" h-7 w-7 text-orange-600" uk-cloack ></uk-icon >
438438 </div >
439439 case " Enabled" :
440- if (time.Now (). Sub (agent. LastContact ).Hours ()) > 24 {
440+ if (time.Since (time. Now () ).Hours ()) > 24 {
441441 <div class =" h-7 w-7" uk-tooltip ={ i18n.T (ctx, " No Contact" ) }>
442442 <uk-icon hx-history =" false" icon =" monitor-x" custom-class =" h-7 w-7 text-red-600" uk-cloack ></uk-icon >
443443 </div >
@@ -618,7 +618,7 @@ type LogEntry struct {
618618}
619619
620620templ AgentsLog (c echo.Context , agent *ent.Agent , agentLog, updaterLog []LogEntry , category, successMessage, errMessage string , refresh int , commonInfo *partials.CommonInfo ) {
621- @ partials.Header (c, []partials.Breadcrumb {{Title: " Agents" , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, " /agents" )))}, {Title: agent.Nickname , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, fmt. Sprintf ( " /agents" ) )))}, {Title: " logs" }}, commonInfo)
621+ @ partials.Header (c, []partials.Breadcrumb {{Title: " Agents" , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, " /agents" )))}, {Title: agent.Nickname , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, " /agents" )))}, {Title: " logs" }}, commonInfo)
622622 <main class =" grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8" >
623623 <div id =" error" class =" hidden" ></div >
624624 <div class =" uk-width-1-2@m uk-card uk-card-default" >
@@ -688,7 +688,7 @@ templ AgentsLog(c echo.Context, agent *ent.Agent, agentLog, updaterLog []LogEntr
688688}
689689
690690templ AgentSettings (c echo.Context , agent *ent.Agent , successMessage, errMessage string , refresh int , commonInfo *partials.CommonInfo ) {
691- @ partials.Header (c, []partials.Breadcrumb {{Title: " Agents" , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, " /agents" )))}, {Title: agent.Nickname , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, fmt. Sprintf ( " /agents" ) )))}, {Title: i18n.T (ctx, " Settings" )}}, commonInfo)
691+ @ partials.Header (c, []partials.Breadcrumb {{Title: " Agents" , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, " /agents" )))}, {Title: agent.Nickname , Url: string (templ.URL (partials.GetNavigationUrl (commonInfo, " /agents" )))}, {Title: i18n.T (ctx, " Settings" )}}, commonInfo)
692692 <main class =" grid flex-1 items-start gap-4 p-4 sm:px-6 sm:py-0 md:gap-8" >
693693 if successMessage != " " {
694694 @ partials.SuccessMessage (successMessage)
0 commit comments