summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base/head.tmpl4
-rw-r--r--templates/user/profile.tmpl25
2 files changed, 19 insertions, 10 deletions
diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl
index a114b8dac5..fe14742510 100644
--- a/templates/base/head.tmpl
+++ b/templates/base/head.tmpl
@@ -116,6 +116,10 @@
<i class="octicon octicon-person"></i>
{{.i18n.Tr "your_profile"}}<!-- Your profile -->
</a>
+ <a class="item" href="{{AppSubUrl}}/{{.SignedUser.Name}}?tab=stars">
+ <i class="octicon octicon-star"></i>
+ {{.i18n.Tr "your_starred"}}
+ </a>
<a class="{{if .PageIsUserSettings}}active{{end}} item" href="{{AppSubUrl}}/user/settings">
<i class="octicon octicon-settings"></i>
{{.i18n.Tr "your_settings"}}<!-- Your settings -->
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index 7734d94c99..cfb646ace1 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -75,23 +75,28 @@
</div>
<div class="ui eleven wide column">
<div class="ui secondary pointing menu">
- <a class="{{if ne .TabName "activity"}}active{{end}} item" href="{{.Owner.HomeLink}}">
+ <a class='{{if and (ne .TabName "activity") (ne .TabName "stars")}}active{{end}} item' href="{{.Owner.HomeLink}}">
<i class="octicon octicon-repo"></i> {{.i18n.Tr "user.repositories"}}
</a>
- <a class="item">
- <a class="{{if eq .TabName "activity"}}active{{end}} item" href="{{.Owner.HomeLink}}?tab=activity">
- <i class="octicon octicon-rss"></i> {{.i18n.Tr "user.activity"}}
- </a>
+ <a class='{{if eq .TabName "activity"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=activity">
+ <i class="octicon octicon-rss"></i> {{.i18n.Tr "user.activity"}}
+ </a>
+ <a class='{{if eq .TabName "stars"}}active{{end}} item' href="{{.Owner.HomeLink}}?tab=stars">
+ <i class="octicon octicon-star"></i> {{.i18n.Tr "user.starred"}}
</a>
</div>
- {{if ne .TabName "activity"}}
- {{template "explore/repo_list" .}}
- {{template "base/paginate" .}}
- {{else}}
- <br>
+
+ {{if eq .TabName "activity"}}
<div class="feeds">
{{template "user/dashboard/feeds" .}}
</div>
+ {{else if eq .TabName "stars"}}
+ <div class="stars">
+ {{template "explore/repo_list" .}}
+ </div>
+ {{else}}
+ {{template "explore/repo_list" .}}
+ {{template "base/paginate" .}}
{{end}}
</div>
</div>