summaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-11-22 01:32:09 -0500
committerUnknwon <u@gogs.io>2015-11-22 01:32:09 -0500
commit52c8f691630548fe091d30bcfe8164545a05d3d5 (patch)
tree12ad797f4c2f8ae6ea81e59e4a0e73ec76abaef3 /templates/user/dashboard
parentb80e848d02b4e27e067910c03aadeddcbdd5f3f5 (diff)
downloadgitea-52c8f691630548fe091d30bcfe8164545a05d3d5.tar.gz
gitea-52c8f691630548fe091d30bcfe8164545a05d3d5.zip
fix #650
Diffstat (limited to 'templates/user/dashboard')
-rw-r--r--templates/user/dashboard/dashboard.tmpl2
-rw-r--r--templates/user/dashboard/navbar.tmpl6
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl
index eed5b40736..b5be8f8fa5 100644
--- a/templates/user/dashboard/dashboard.tmpl
+++ b/templates/user/dashboard/dashboard.tmpl
@@ -73,7 +73,7 @@
<li>
<a href="{{AppSubUrl}}/{{.Name}}">
<i class="icon octicon octicon-organization"></i>
- <strong>{{.Name}}</strong>
+ <strong>{{.ShortName 20}}</strong>
<span class="ui right text light grey">
<i class="octicon octicon-repo"></i>{{.NumRepos}}
</span>
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl
index 8469e23bc3..7d9c999507 100644
--- a/templates/user/dashboard/navbar.tmpl
+++ b/templates/user/dashboard/navbar.tmpl
@@ -2,7 +2,7 @@
<div class="ui floating dropdown link jump">
<span class="text">
<img class="ui avatar image" src="{{.ContextUser.AvatarLink}}">
- {{.ContextUser.Name}}
+ {{.ContextUser.ShortName 20}}
<i class="dropdown icon"></i>
</span>
<div class="context user overflow menu" tabindex="-1">
@@ -17,7 +17,7 @@
{{range .Orgs}}
<a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else if $.PageIsPulls}}pulls{{else}}dashboard{{end}}">
<img class="ui avatar image" src="{{.AvatarLink}}">
- {{.Name}}
+ {{.ShortName 20}}
</a>
{{end}}
</div>
@@ -42,7 +42,7 @@
<div class="right menu">
<div class="item">
<a class="ui blue basic button" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}">
- {{.i18n.Tr "home.view_home" .ContextUser.Name}}
+ {{.i18n.Tr "home.view_home" (.ContextUser.ShortName 10)}}
</a>
</div>
</div>