Browse Source

adjust activity filter style

pull/93/head
Gitea 4 years ago
parent
commit
dde04ca374
3 changed files with 8 additions and 14 deletions
  1. +2
    -1
      options/locale/locale_en-US.ini
  2. +2
    -1
      options/locale/locale_zh-CN.ini
  3. +4
    -12
      templates/user/profile.tmpl

+ 2
- 1
options/locale/locale_en-US.ini View File

@@ -391,7 +391,8 @@ follow = Follow
unfollow = Unfollow
heatmap.loading = Loading Heatmap…
user_bio = Biography

own = Own
all = All
form.name_reserved = The username '%s' is reserved.
form.name_pattern_not_allowed = The pattern '%s' is not allowed in a username.
form.name_chars_not_allowed = User name '%s' contains invalid characters.


+ 2
- 1
options/locale/locale_zh-CN.ini View File

@@ -391,7 +391,8 @@ follow=关注
unfollow=取消关注
heatmap.loading=正在加载热图...
user_bio=简历

own = 个人
all = 所有
form.name_reserved='%s' 用户名被保留。
form.name_pattern_not_allowed=用户名中不允许使用 "%s"。
form.name_chars_not_allowed=用户名 '%s' 包含无效字符。


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

@@ -118,18 +118,10 @@
<div class="ui divider"></div>
{{end}}
<div style="padding-bottom: 30px;display:flex;">
<a style="background-color: #40A9FF;color:white;display:block;width:50px;height:25px;text-indent:8px;margin-right:10px;" href="{{.Owner.HomeLink}}?tab=activity&type=own" class="button">个人</a>
<a style="background-color: #40A9FF;color:white;display:block;width:50px;height:25px;text-indent:8px" href="{{.Owner.HomeLink}}?tab=activity&type=all" class="button">所有</a>
</div>
<div class="ui attached secondary segment repos-search">
<div class="ui secondary pointing borderless menu center aligned grid repos-filter">
<a class="item" href="{{.Owner.HomeLink}}?tab=activity&type=all">
{{.i18n.Tr "all"}}
</a>
<a class="item" href="{{.Owner.HomeLink}}?tab=activity&type=own">
{{.i18n.Tr "sources"}}
</a>
</div>
<a style="display:block;width:50px;height:25px;text-indent:8px;margin-right:10px;" href="{{.Owner.HomeLink}}?tab=activity&type=own" class="button">
{{svg "octicon-person" 16}} {{.i18n.Tr "user.own"}}</a>
<a style="display:block;width:50px;height:25px;text-indent:8px" href="{{.Owner.HomeLink}}?tab=activity&type=all" class="button">
{{svg "octicon-people" 16}} {{.i18n.Tr "user.all"}}</a>
</div>
<div class="feeds">
{{template "user/dashboard/feeds" .}}


Loading…
Cancel
Save