2017-05-21 00:38:28 +02:00
{{define "title"}}{{ call $.T "profile_page" .UserProfile.Username }}{{end}}
2017-05-09 03:36:48 +02:00
{{define "contclass"}}cont-view{{end}}
{{define "content"}}
2017-05-10 03:15:29 +02:00
{{ range (index $.FormInfos "infos")}}
< div class = "alert alert-info" > < a class = "panel-close close" data-dismiss = "alert" > × < / a > < i class = "glyphicon glyphicon-info-sign" > < / i > {{ . }}< / div >
{{end}}
2017-05-09 03:36:48 +02:00
< div class = "row profile" >
{{with .UserProfile}}
< div class = "col-md-3" >
< div class = "profile-sidebar" >
<!-- SIDEBAR USERPIC -->
< div class = "profile-userpic" >
Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* 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.
2017-05-10 04:34:40 +02:00
< img src = "{{ getAvatar .MD5 130 }}" class = "img-responsive" alt = "{{.Username}}" >
2017-05-09 03:36:48 +02:00
< / 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" >
Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* 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.
2017-05-10 04:34:40 +02:00
{{if gt $.User.ID 0 }}
2017-05-10 12:22:12 +02:00
{{if not (CurrentUserIdentical $.User .ID) }}
{{if not (IsFollower . $.User)}}
2017-05-21 00:38:28 +02:00
< a href = "{{ genRoute " user_follow " " id " ( print . ID ) " username " . Username } } " class = "btn btn-success btn-sm" > {{ call $.T "follow"}}< / a >
2017-05-10 12:22:12 +02:00
{{else}}
2017-05-21 00:38:28 +02:00
< a href = "{{ genRoute " user_follow " " id " ( print . ID ) " username " . Username } } " class = "btn btn-danger btn-sm" > {{ call $.T "unfollow"}}< / a >
2017-05-10 12:22:12 +02:00
{{end}}
{{end}}
2017-05-22 00:13:25 +02:00
< a href = "{{ genRoute " feed_user " " id " ( print . ID ) " username " . Username } } " class = "btn btn-warning btn-sm" > RSS< / a >
2017-05-09 03:36:48 +02:00
{{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 class = "active" >
2017-05-21 00:38:28 +02:00
< a href = "{{ genRoute " user_profile " " id " ( print . ID ) " username " . Username } } " > < i class = "glyphicon glyphicon-home" > < / i > {{call $.T "torrents"}}< / a >
2017-05-09 03:36:48 +02:00
< / li >
Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* 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.
2017-05-10 04:34:40 +02:00
{{if gt $.User.ID 0 }}
2017-05-21 00:02:57 +02:00
{{ if CurrentUserIdentical $.User .ID }}
< li >
2017-05-21 01:21:56 +02:00
< a href = "{{ genRoute " user_notifications " " id " ( print . ID ) " username " . Username } } " > < i class = "glyphicon glyphicon-bell" > < / i > {{ call $.T "my_notifications"}}< / a >
2017-05-21 00:02:57 +02:00
< / li >
{{end}}
2017-05-10 14:05:29 +02:00
{{if CurrentOrAdmin $.User .ID }}
< li >
2017-05-21 00:38:28 +02:00
< a href = "{{ genRoute " user_profile_details " " id " ( print . ID ) " username " . Username } } " > < i class = "glyphicon glyphicon-user" > < / i > {{call $.T "settings"}}< / a >
2017-05-10 14:05:29 +02:00
< / li >
{{end}}
2017-05-09 03:36:48 +02:00
{{end}}
< / ul >
< / div >
<!-- END MENU -->
< / div >
< / div >
{{end}}
< div class = "col-md-9" >
< div class = "profile-content" >
{{ block "profile_content" . }}{{end}}
< / div >
< / div >
< / div >
Consistency, formatting, error checking, cleanup, and a couple bug fixes (#245)
* 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.
2017-05-10 04:34:40 +02:00
{{end}}