|
|
@@ -80,9 +80,19 @@
|
|
|
{{if and .IsLogged (ne .LoggedUserName .Owner.Name)}}
|
|
|
<div class="follow">
|
|
|
{{if .LoggedUser.IsFollowing .Owner.ID}}
|
|
|
- <a class="ui basic red button mobile-card follow" href="{{.Link}}/action/unfollow?redirect_to={{$.Link}}"><i class="menu-icon octicon">👦🏽</i>{{.i18n.Tr "user.unfollow"}}</a>
|
|
|
+ <form action="{{.Link}}/action/unfollow?redirect_to={{$.Link}}" method="POST">
|
|
|
+ {{.CSRFTokenHTML}}
|
|
|
+ <button class="uui basic red button mobile-card follow">
|
|
|
+ <i class="menu-icon octicon">👦🏽</i> {{.i18n.Tr "user.unfollow"}}
|
|
|
+ </button>
|
|
|
+ </form>
|
|
|
{{else}}
|
|
|
- <a class="ui basic green button mobile-card follow" href="{{.Link}}/action/follow?redirect_to={{$.Link}}"><i class="menu-icon octicon">👦</i>{{.i18n.Tr "user.follow"}}</a>
|
|
|
+ <form action="{{.Link}}/action/follow?redirect_to={{$.Link}}" method="POST">
|
|
|
+ {{.CSRFTokenHTML}}
|
|
|
+ <button class="ui basic green button mobile-card follow">
|
|
|
+ <i class="menu-icon octicon">👦</i> {{.i18n.Tr "user.follow"}}
|
|
|
+ </button>
|
|
|
+ </form>
|
|
|
{{end}}
|
|
|
</div>
|
|
|
{{end}}
|
|
|
@@ -94,12 +104,12 @@
|
|
|
<div class="ui five wide column">
|
|
|
<div class="ui card" style="border: 2px solid {{.Owner.ThemeColor}};box-shadow: 5px 6px 0px {{.Owner.ThemeColor}}">
|
|
|
{{if eq .LoggedUserName .Owner.Name}}
|
|
|
- <a class="profile-avatar image poping up" href="{{AppSubURL}}/user/settings/avatar" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
|
|
|
- <img src="{{AppendAvatarSize .Owner.RelAvatarLink 287}}" title="{{.Owner.Name}}"/>
|
|
|
+ <a class="image poping up" href="{{AppSubURL}}/user/settings/avatar" id="profile-avatar" data-content="{{.i18n.Tr "user.change_avatar"}}" data-variation="inverted tiny" data-position="bottom center">
|
|
|
+ <img src="{{AppendAvatarSize .Owner.RelAvatarLink 290}}" title="{{.Owner.Name}}"/>
|
|
|
</a>
|
|
|
{{else}}
|
|
|
- <span class="profile-avatar image">
|
|
|
- <img src="{{AppendAvatarSize .Owner.RelAvatarLink 287}}" title="{{.Owner.Name}}"/>
|
|
|
+ <span class="image">
|
|
|
+ <img src="{{AppendAvatarSize .Owner.RelAvatarLink 290}}" title="{{.Owner.Name}}"/>
|
|
|
</span>
|
|
|
{{end}}
|
|
|
<div class="content">
|