c9b72206a5
* Checkpoint: it builds The config, db, model, network, os, and public packages have had some fixes to glaringly obvious flaws, dead code removed, and stylistic changes. * Style changes and old code removal in router Router needs a lot of work done to its (lack of) error handling. * Dead code removal and style changes Now up to util/email/email.go. After I'm finished with the initial sweep I'll go back and fix error handling and security issues. Then I'll fix the broken API. Then I'll go through to add documentation and fix code visibility. * Finish dead code removal and style changes Vendored libraries not touched. Everything still needs security fixes and documentation. There's also one case of broken functionality. * Fix accidental find-and-replace * Style, error checking, saftey, bug fix changes * Redo error checking erased during merge * Re-add merge-erased fix. Make Safe safe.
66 lignes
1,9 Kio
HTML
66 lignes
1,9 Kio
HTML
{{define "title"}}{{ T "profile_edit_page" .UserProfile.Username }}{{end}}
|
||
{{define "contclass"}}cont-view{{end}}
|
||
{{define "content"}}
|
||
<div class="row profile">
|
||
{{with .UserProfile}}
|
||
<div class="col-md-3">
|
||
<div class="profile-sidebar">
|
||
<!-- SIDEBAR USERPIC -->
|
||
<div class="profile-userpic">
|
||
<img src="{{ getAvatar .Md5 130 }}" class="img-responsive" alt="{{.Username}}">
|
||
</div>
|
||
<!-- END SIDEBAR USERPIC -->
|
||
<!-- SIDEBAR USER TITLE -->
|
||
<div class="profile-usertitle">
|
||
<div class="profile-usertitle-name">
|
||
{{.Username}}
|
||
</div>
|
||
<div class="profile-usertitle-job">
|
||
{{GetRole . }}
|
||
</div>
|
||
</div>
|
||
<!-- END SIDEBAR USER TITLE -->
|
||
<!-- SIDEBAR BUTTONS -->
|
||
<div class="profile-userbuttons">
|
||
{{if gt $.User.ID 0 }}
|
||
{{if not (CurrentUserIdentical $.User .ID) }}
|
||
{{if not (IsFollower . $.User)}}
|
||
<a href="{{ genRoute "user_follow" "id" .ID }}" class="btn btn-success btn-sm">{{ T "follow"}}</a>
|
||
{{else}}
|
||
<a href="{{ genRoute "user_follow" "id" .ID }}" class="btn btn-danger btn-sm">{{ T "unfollow"}}</a>
|
||
{{end}}
|
||
{{end}}
|
||
{{end}}
|
||
<!-- <button type="button" class="btn btn-danger btn-sm">Message</button> -->
|
||
</div>
|
||
<!-- END SIDEBAR BUTTONS -->
|
||
<!-- SIDEBAR MENU -->
|
||
<div class="profile-usermenu">
|
||
<ul class="nav">
|
||
<li>
|
||
<a href="#">
|
||
<i class="glyphicon glyphicon-home"></i>
|
||
{{T "torrents"}} </a>
|
||
</li>
|
||
{{if gt $.User.ID 0 }}
|
||
{{if CurrentOrAdmin $.User .ID }}
|
||
<li class="active">
|
||
<a href="?edit">
|
||
<i class="glyphicon glyphicon-user"></i>
|
||
{{T "settings"}} </a>
|
||
</li>
|
||
{{end}}
|
||
{{end}}
|
||
</ul>
|
||
</div>
|
||
<!-- END MENU -->
|
||
</div>
|
||
</div>
|
||
{{end}}
|
||
<div class="col-md-9">
|
||
<div class="profile-content">
|
||
{{ block "profile_edit_content" . }}{{end}}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{{end}}
|