Basic functionality
This commit is contained in:
17
views/components/server_address.templ
Normal file
17
views/components/server_address.templ
Normal file
@ -0,0 +1,17 @@
|
||||
package components
|
||||
|
||||
import "fmt"
|
||||
|
||||
templ ServerAddress(host, port string) {
|
||||
<div class="my-2 flex gap-4 items-center">
|
||||
<span class="block">
|
||||
{ host }:{ port }
|
||||
</span>
|
||||
<a class="block" href="#">
|
||||
<i class="fa-regular fa-clipboard"></i>
|
||||
</a>
|
||||
<a class="block" href={ templ.SafeURL(fmt.Sprintf("cod4://%s:%s", host, port)) }>
|
||||
<i class="block fa-solid fa-play"></i>
|
||||
</a>
|
||||
</div>
|
||||
}
|
||||
Reference in New Issue
Block a user