Browse Source

fix logo ui, add following ui in user-profile page

for-closed-social
FuXiaoHei 10 years ago
parent
commit
b057cffd85
2 changed files with 29 additions and 0 deletions
  1. +17
    -0
      public/css/gogs.css
  2. +12
    -0
      templates/user/profile.tmpl

+ 17
- 0
public/css/gogs.css View File

@ -74,6 +74,7 @@ html, body {
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
margin-right: 10px; margin-right: 10px;
margin-top: 0;
} }
.nav-item:hover, .nav-item:hover,
@ -310,6 +311,22 @@ html, body {
padding-right: 18px; padding-right: 18px;
} }
#user-profile .profile-rel .col-md-6 {
text-align: center;
padding-bottom: 12px;
}
#user-profile .profile-rel strong {
font-size: 24px;
color: #444;
display: block;
}
#user-profile .profile-rel p {
margin-right: 0;
color: #888;
}
#user-activity .tab-pane { #user-activity .tab-pane {
padding: 20px; padding: 20px;
} }

+ 12
- 0
templates/user/profile.tmpl View File

@ -10,6 +10,18 @@
</div> </div>
<div class="profile-info"> <div class="profile-info">
<ul class="list-group"> <ul class="list-group">
<li class="list-group-item">
<div class="profile-rel">
<div class="col-md-6 followers">
<strong>123</strong>
<p>followers</p>
</div>
<div class="col-md-6 following">
<strong>123</strong>
<p>following</p>
</div>
</div>
</li>
{{if .Owner.Location}} {{if .Owner.Location}}
<li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li> <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
{{end}} {{end}}

Loading…
Cancel
Save