Browse Source

UI fix

pull/473/head
Unknwon 10 years ago
parent
commit
b9560374cd
  1. 1
      conf/locale/locale_en-US.ini
  2. 1
      conf/locale/locale_zh-CN.ini
  3. 2
      gogs.go
  4. 2
      modules/auth/repo_form.go
  5. 3
      public/ng/css/ui.css
  6. 17
      public/ng/less/ui/form.less
  7. 2
      templates/.VERSION
  8. 4
      templates/org/team/sidebar.tmpl
  9. 4
      templates/user/settings/profile.tmpl

1
conf/locale/locale_en-US.ini

@ -173,6 +173,7 @@ ssh_keys = SSH Keys
social = Social Accounts
orgs = Organizations
delete = Delete Account
uid = Uid
public_profile = Public Profile
profile_desc = Your Email address is public and will be used for any account related notifications, and any web based operations made via the site.

1
conf/locale/locale_zh-CN.ini

@ -173,6 +173,7 @@ ssh_keys = 管理 SSH 密钥
social = 社交帐号绑定
orgs = 管理组织
delete = 删除帐户
uid = 用户 ID
public_profile = 公开信息
profile_desc = 您的邮箱地址将会被公开,并被用于接收帐户的所有提醒和通知。

2
gogs.go

@ -17,7 +17,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
const APP_VER = "0.5.0.0912 Beta"
const APP_VER = "0.5.0.0913 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())

2
modules/auth/repo_form.go

@ -33,7 +33,7 @@ func (f *CreateRepoForm) Validate(ctx *macaron.Context, errs *binding.Errors, l
}
type MigrateRepoForm struct {
HttpsUrl string `form:"url" binding:"Url"`
HttpsUrl string `form:"url" binding:"Required;Url"`
AuthUserName string `form:"auth_username"`
AuthPasswd string `form:"auth_password"`
Uid int64 `form:"uid" binding:"Required"`

3
public/ng/css/ui.css

@ -525,6 +525,9 @@ input[readonly]:focus {
.form-align .field {
margin-bottom: 1em;
}
label.text-left {
text-align: left;
}
label.req:after {
content: "*";
color: #d9453d;

17
public/ng/less/ui/form.less

@ -176,7 +176,6 @@ input[readonly] {
margin-bottom: 1em;
}
}
.form-align {
label,
.form-label {
@ -189,10 +188,14 @@ input[readonly] {
margin-bottom: 1em;
}
}
label.req {
&:after {
content: "*";
color: @labelRedColor;
}
label {
&.text-left {
text-align: left;
}
&.req {
&:after {
content: "*";
color: @labelRedColor;
}
}
}

2
templates/.VERSION

@ -1 +1 @@
0.5.0.0912 Beta
0.5.0.0913 Beta

4
templates/org/team/sidebar.tmpl

@ -11,8 +11,8 @@
<p class="desc">{{if .Team.Description}}{{.Team.Description}}{{else}}{{.i18n.Tr "org.teams.no_desc"}}{{end}}</p>
<hr>
<div class="team-stats">
<a class="text-black" href="{{.OrgLink}}/teams/{{.Team.LowerName}}"><span class="octicon octicon-person"></span> <strong>{{.Team.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
<a class="text-black" href="{{.OrgLink}}/teams/{{.Team.LowerName}}/repositories"><span class="octicon octicon-repo"></span> <strong>{{.Team.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
<a href="{{.OrgLink}}/teams/{{.Team.LowerName}}"><span class="octicon octicon-person"></span> <strong>{{.Team.NumMembers}}</strong> {{$.i18n.Tr "org.lower_members"}}</a> ·
<a href="{{.OrgLink}}/teams/{{.Team.LowerName}}/repositories"><span class="octicon octicon-repo"></span> <strong>{{.Team.NumRepos}}</strong> {{$.i18n.Tr "org.lower_repositories"}}</a>
</div>
<p class="desc">
{{if eq .Team.LowerName "owners"}}

4
templates/user/settings/profile.tmpl

@ -14,6 +14,10 @@
<form class="form form-align panel-body" id="user-profile-form" action="/user/settings" method="post">
{{.CsrfTokenHtml}}
<div class="text-center panel-desc">{{.i18n.Tr "settings.profile_desc"}}</div>
<div class="field">
<label>{{.i18n.Tr "settings.uid"}}</label>
<label class="text-left">{{.SignedUser.Id}}</label>
</div>
<div class="field">
<label class="req" for="username">{{.i18n.Tr "username"}}</label>
<input class="ipt ipt-large ipt-radius {{if .Err_UserName}}ipt-error{{end}}" id="username" name="uname" type="text" value="{{.SignedUser.Name}}" data-uname="{{.SignedUser.Name}}" required />

Loading…
Cancel
Save