aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-20 14:00:51 -0400
committerUnknwon <u@gogs.io>2017-03-20 14:00:51 -0400
commit0203eaab00c652e7e229439f3af212ac41228afd (patch)
tree3d07b5171cb771e64c02016c6ad622487e94218c
parent2807274e2dca1780443bcbbab946b1551c4c88f5 (diff)
user/dashboard: hide More button if reached end on first load
-rw-r--r--gogs.go2
-rw-r--r--templates/.VERSION2
-rw-r--r--templates/user/dashboard/dashboard.tmpl4
3 files changed, 5 insertions, 3 deletions
diff --git a/gogs.go b/gogs.go
index 9107af57..452a4c6b 100644
--- a/gogs.go
+++ b/gogs.go
@@ -16,7 +16,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.10.24.0319"
+const APP_VER = "0.10.24.0320"
func init() {
setting.AppVer = APP_VER
diff --git a/templates/.VERSION b/templates/.VERSION
index 5ec05893..bf9d4171 100644
--- a/templates/.VERSION
+++ b/templates/.VERSION
@@ -1 +1 @@
-0.10.24.0319 \ No newline at end of file
+0.10.24.0320 \ No newline at end of file
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl
index 0c2c744f..40c6b2dd 100644
--- a/templates/user/dashboard/dashboard.tmpl
+++ b/templates/user/dashboard/dashboard.tmpl
@@ -5,7 +5,9 @@
<div class="ui grid">
<div class="ten wide column">
{{template "user/dashboard/feeds" .}}
- <button class="ui fluid basic button center ajax-load-button" data-url="{{.Link}}?after_id={{.AfterID}}">More</button>
+ {{if .AfterID}}
+ <button class="ui fluid basic button center ajax-load-button" data-url="{{.Link}}?after_id={{.AfterID}}">More</button>
+ {{end}}
</div>
<div class="six wide column">
<div class="ui {{if not .ContextUser.IsOrganization}}three{{else}}two{{end}} item tabable menu">