File tree Expand file tree Collapse file tree 4 files changed +46
-11
lines changed Expand file tree Collapse file tree 4 files changed +46
-11
lines changed Original file line number Diff line number Diff line change 8888
8989 <form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
9090 {{.CsrfTokenHtml}}
91- <div class="inline field">
92- <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
93- <input name="avatar" type="file" >
91+ <div class="df fw ac">
92+ <div class="inline field mb-4">
93+ <label>{{.i18n.Tr "settings.avatar"}}</label>
94+ {{avatar .Org 28 "mr-5"}}
95+ </div>
96+ <div class="inline field mb-4">
97+ <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
98+ <input name="avatar" type="file" >
99+ </div>
94100 </div>
95101
96102 <div class="field">
Original file line number Diff line number Diff line change 5757
5858 <form class="ui form" action="{{.Link}}/avatar" method="post" enctype="multipart/form-data">
5959 {{.CsrfTokenHtml}}
60- <div class="inline field">
61- <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
62- <input name="avatar" type="file" >
60+ {{$avatar := (repoAvatar .Repository 28 "mr-5")}}
61+ <div class="df fw ac">
62+ <div class="inline field mb-4">
63+ <label>{{.i18n.Tr "settings.avatar"}}</label>
64+ {{if $avatar}}
65+ {{$avatar}}
66+ {{else}}
67+ <div class="ui basic label repo-icon none mr-5">{{svg "octicon-circle-slash" 16}}</div>
68+ {{end}}
69+ </div>
70+ <div class="inline field mb-4">
71+ <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
72+ <input name="avatar" type="file" >
73+ </div>
6374 </div>
6475
6576 <div class="field">
Original file line number Diff line number Diff line change 100100 </div>
101101 </div>
102102
103- <div class="inline field">
104- <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
105- <input name="avatar" type="file" >
103+ <div class="df fw ac">
104+ <div class="inline field mb-4">
105+ <label>{{.i18n.Tr "settings.avatar"}}</label>
106+ {{avatar .SignedUser 28 "mr-5"}}
107+ </div>
108+ <div class="inline field mb-4">
109+ <label for="avatar">{{.i18n.Tr "settings.choose_new_avatar"}}</label>
110+ <input name="avatar" type="file" >
111+ </div>
106112 </div>
107113
108114 <div class="field">
Original file line number Diff line number Diff line change @@ -2895,8 +2895,20 @@ tbody.commit-list {
28952895 }
28962896}
28972897
2898- .repo-icon .svg {
2899- vertical-align : middle ;
2898+ .repo-icon {
2899+ & .none {
2900+ height : 28px ;
2901+ width : 28px ;
2902+ padding : 5px !important ;
2903+
2904+ .svg {
2905+ color : var (--color-light-border );
2906+ }
2907+ }
2908+
2909+ .svg {
2910+ vertical-align : middle ;
2911+ }
29002912}
29012913
29022914.repo-buttons ,
You can’t perform that action at this time.
0 commit comments