File tree Expand file tree Collapse file tree 2 files changed +25
-12
lines changed Expand file tree Collapse file tree 2 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 217217 }
218218}
219219
220+ .agent-card-header {
221+ display : flex ;
222+ gap : 10px ;
223+ flex-wrap : wrap ;
224+ }
225+
220226.agent-label-container {
221227 display : flex ;
222228 gap : 5px ;
Original file line number Diff line number Diff line change 2626 </div >
2727
2828 <div class =" flex-grow-1 overflow-hidden" >
29- <h5 class =" text-truncate font-size-15" >
30- <Link href = " page/agent/{agent.id}" class =" text-dark" >
31- {agent .name }
32- </Link >
33- </h5 >
29+ <div class =" agent-card-header" >
30+ <h5 class =" text-truncate font-size-15 line-align-center mb-0" >
31+ <Link href = " page/agent/{agent.id}" class =" text-dark" >
32+ {agent .name }
33+ </Link >
34+ </h5 >
35+ {#if agent .is_router }
36+ <div
37+ class =" font-size-15 line-align-center"
38+ data-bs-toggle =" tooltip"
39+ data-bs-placement =" bottom"
40+ title =" Go to flowchart"
41+ >
42+ <Link href ={` page/agent/router?agent_id=${agent .id } ` } target =" _blank" >
43+ <i class =" mdi mdi-sitemap" />
44+ </Link >
45+ </div >
46+ {/if }
47+ </div >
3448 {#if agent .labels ?.length > 0 }
3549 <div class =" agent-label-container" >
3650 {#each agent .labels as label }
7589 <i class =" bx bx-calendar me-1" />
7690 {format (agent .updated_datetime , ' short-date' )}
7791 </li >
78- {#if agent .is_router }
79- <li class =" list-inline-item me-1 mt-1 mb-1" >
80- <Link href ={` page/agent/router?agent_id=${agent .id } ` } class =" btn btn-primary btn-sm" target =" _blank" >
81- <i class ="mdi mdi-magnify" /> {$_ (' View' )}
82- </Link >
83- </li >
84- {/if }
8592 <li class =" list-inline-item me-1 mt-1 mb-1" >
8693 <Link href ="page/agent/ {agent .id }/build" class =" btn btn-primary btn-sm" target =" _blank" disabled >
8794 <i class ="bx bx-wrench" /> {$_ (' Build' )}
You can’t perform that action at this time.
0 commit comments