mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-05 22:53:02 +00:00
removed old edit user page
This commit is contained in:
parent
14898fea07
commit
8dcd6cfdd7
@ -109,11 +109,6 @@ type UserData struct {
|
|||||||
NextLink string
|
NextLink string
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserEditData struct {
|
|
||||||
*CommonData
|
|
||||||
User *mastodon.Account
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserSearchData struct {
|
type UserSearchData struct {
|
||||||
*CommonData
|
*CommonData
|
||||||
User *mastodon.Account
|
User *mastodon.Account
|
||||||
|
@ -34,7 +34,6 @@ const (
|
|||||||
RetweetedByPage = "retweetedby.tmpl"
|
RetweetedByPage = "retweetedby.tmpl"
|
||||||
SearchPage = "search.tmpl"
|
SearchPage = "search.tmpl"
|
||||||
SettingsPage = "settings.tmpl"
|
SettingsPage = "settings.tmpl"
|
||||||
UserEditPage = "useredit.tmpl"
|
|
||||||
FiltersPage = "filters.tmpl"
|
FiltersPage = "filters.tmpl"
|
||||||
ProfilePage = "profile.tmpl"
|
ProfilePage = "profile.tmpl"
|
||||||
MutePage = "mute.tmpl"
|
MutePage = "mute.tmpl"
|
||||||
|
@ -839,19 +839,6 @@ func (s *service) SearchPage(c *client,
|
|||||||
return s.renderer.Render(c.rctx, c.w, renderer.SearchPage, data)
|
return s.renderer.Render(c.rctx, c.w, renderer.SearchPage, data)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *service) UserEditPage(c *client) (err error) {
|
|
||||||
cdata := s.cdata(c, "useredit", 0, 0, "")
|
|
||||||
u, err := c.GetAccountCurrentUser(c.ctx)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
data := &renderer.UserEditData{
|
|
||||||
CommonData: cdata,
|
|
||||||
User: u,
|
|
||||||
}
|
|
||||||
return s.renderer.Render(c.rctx, c.w, renderer.UserEditPage, data)
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *service) SettingsPage(c *client) (err error) {
|
func (s *service) SettingsPage(c *client) (err error) {
|
||||||
cdata := s.cdata(c, "settings", 0, 0, "")
|
cdata := s.cdata(c, "settings", 0, 0, "")
|
||||||
data := &renderer.SettingsData{
|
data := &renderer.SettingsData{
|
||||||
|
@ -114,7 +114,6 @@
|
|||||||
- <a href="/user/{{.User.ID}}/mutes"> mutes </a>
|
- <a href="/user/{{.User.ID}}/mutes"> mutes </a>
|
||||||
- <a href="/user/{{.User.ID}}/blocks"> blocks </a>
|
- <a href="/user/{{.User.ID}}/blocks"> blocks </a>
|
||||||
{{if .User.Locked}}- <a href="/user/{{.User.ID}}/requests"> requests </a>{{end}}
|
{{if .User.Locked}}- <a href="/user/{{.User.ID}}/requests"> requests </a>{{end}}
|
||||||
- <a href="/useredit"> edit </a>
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<div>
|
<div>
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
{{with .Data}}
|
|
||||||
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
|
||||||
<div class="page-title"> User settings </div>
|
|
||||||
|
|
||||||
<form id="user-settings-form" action="/useredit" method="POST">
|
|
||||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
|
||||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
|
||||||
<input type="hidden" name="id" value="{{.User.ID}}">
|
|
||||||
<div class="settings-form-field">
|
|
||||||
<input id="display-name" name="display-name" value="{{HTML .User.DisplayName}}">
|
|
||||||
<label for="display-name"> Your display name </label>
|
|
||||||
</div>
|
|
||||||
<div class="settings-form-field">
|
|
||||||
<label for="note"> Your bio: </label>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<textarea id="note" name="note" cols="80" rows="8"></textarea>
|
|
||||||
<div>
|
|
||||||
<details><summary>Current bio for copypaste</summary>{{.User.Note | Raw}}</details>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="settings-form-field" title="Whether manual approval of follow requests is required.">
|
|
||||||
<input id="locked" name="locked" type="checkbox" value="true" {{if .User.Locked}}checked{{end}}>
|
|
||||||
<label for="locked"> Locked user? </label>
|
|
||||||
</div>
|
|
||||||
<div class="settings-form-field" title="Whether manual approval of follow requests is required.">
|
|
||||||
<input id="bot" name="bot" type="checkbox" value="true" {{if .User.Bot}}checked{{end}}>
|
|
||||||
<label for="bot"> User is bot? </label>
|
|
||||||
</div>
|
|
||||||
{{if .User.MastodonAccount}}
|
|
||||||
{{else}}
|
|
||||||
<div class="page-title"> Pleroma settings </div>
|
|
||||||
|
|
||||||
<div class="settings-form-field">
|
|
||||||
<input id="accepts-chat-messages" name="hide-attachments" type="checkbox" value="true" {{if .User.Pleroma.AcceptsChatMessages}}checked{{end}}>
|
|
||||||
<label for="accepts-chat-messages"> Allow receive chat messages (bloat not support chats feature) </label>
|
|
||||||
</div>
|
|
||||||
<div class="settings-form-field">
|
|
||||||
<input id="hide-favourites" name="hide-favourites" type="checkbox" value="true" {{if .User.Pleroma.HideFavourites}}checked{{end}}>
|
|
||||||
<label for="hide-favourites"> User's favorites timeline will be hidden </label>
|
|
||||||
</div>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
<button type="submit"> Save </button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{{template "footer.tmpl"}}
|
|
||||||
{{end}}
|
|
Loading…
Reference in New Issue
Block a user