/
githubmirror
/
gogs
Обзор
Документация
Войти
/
githubmirror
/
gogs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
templates/user/meta/header.tmpl
24 строки
873 B
Joe Chen
refactor(db): move some methods off `user.go` (#7199)
22 окт 2022, 15:01
Не верифицирован
22 окт 2022, 15:01
ce25881
Код
Авторство
О чём код?
{{with .Owner}} <div class="ui container"> <img class="ui avatar image" src="{{.AvatarURLPath}}"> <span class="header name"> <a href="{{.HomeURLPath}}">{{.Name}}</a> {{with .FullName}}({{.}}){{end}} </span> <div class="ui right"> {{if or $.PageIsFollowers $.PageIsFollowing}} {{if and $.IsLogged (ne $.LoggedUserName .Name)}} <div class="follow"> {{if $.LoggedUser.IsFollowing .ID}} <a class="ui small basic red button" href="{{.HomeURLPath}}/action/unfollow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{$.i18n.Tr "user.unfollow"}}</a> {{else}} <a class="ui small basic green button" href="{{.HomeURLPath}}/action/follow?redirect_to={{$.Link}}"><i class="octicon octicon-person"></i> {{$.i18n.Tr "user.follow"}}</a> {{end}} </div> {{end}} {{end}} </div> </div> {{end}} <div class="ui divider"></div>