mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-06 03:48:45 +00:00
Add some information about instance
This commit is contained in:
parent
7dd90ac015
commit
7d54da6380
4 changed files with 88 additions and 1 deletions
|
@ -743,9 +743,15 @@ func (s *service) AboutInstance(c *client) (err error) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
peers, err := c.GetInstancePeers(c.ctx)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
data := &renderer.AboutInstanceData{
|
||||
CommonData: cdata,
|
||||
Instance: instance,
|
||||
Peers: peers,
|
||||
}
|
||||
return s.renderer.Render(c.rctx, c.w, renderer.AboutInstance, data)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue