a370efc13f
Introduce `AvatarUtils`, no need to pass `$.Context` to every sub-template, and simplify the template helper functions.
23 lines
854 B
Go HTML Template
23 lines
854 B
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content organization invite">
|
|
<div class="ui container">
|
|
{{template "base/alert" .}}
|
|
<div class="ui centered card">
|
|
<div class="image">
|
|
{{ctx.AvatarUtils.Avatar .Organization 140}}
|
|
</div>
|
|
<div class="content">
|
|
<div class="header">{{.locale.Tr "org.teams.invite.title" .Team.Name .Organization.Name | Str2html}}</div>
|
|
<div class="meta">{{.locale.Tr "org.teams.invite.by" .Inviter.Name}}</div>
|
|
<div class="description">{{.locale.Tr "org.teams.invite.description"}}</div>
|
|
</div>
|
|
<div class="extra content">
|
|
<form class="ui form" action="" method="post">
|
|
{{.CsrfTokenHtml}}
|
|
<button class="fluid ui green button">{{.locale.Tr "org.teams.join"}}</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|