|
@@ -22,24 +22,26 @@ |
|
|
{{template "user/dashboard/heatmap" .}} |
|
|
{{template "user/dashboard/heatmap" .}} |
|
|
{{end}} |
|
|
{{end}} |
|
|
{{template "user/dashboard/feeds" .}} |
|
|
{{template "user/dashboard/feeds" .}} |
|
|
<diV id = "activity_cont" style="display: none;"> |
|
|
|
|
|
<div class="ui placeholder segment bgtask-none padding_none line" > |
|
|
|
|
|
<div class="act_title" style="padding-left: 0px ;"> |
|
|
|
|
|
{{.i18n.Tr "home.activity"}} : |
|
|
|
|
|
|
|
|
{{ if eq (len .Feeds) 0 }} |
|
|
|
|
|
<diV ss="{{(len .Feeds)}}" id = "activity_cont" style="display: block;"> |
|
|
|
|
|
<div class="ui placeholder segment bgtask-none padding_none line" > |
|
|
|
|
|
<div class="act_title" style="padding-left: 0px ;"> |
|
|
|
|
|
{{.i18n.Tr "home.activity"}} : |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="ui icon header bgtask-header-pic"></div> |
|
|
|
|
|
<p class="p_hint"> |
|
|
|
|
|
{{.i18n.Tr "home.no_events"}} |
|
|
|
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="ui icon header bgtask-header-pic"></div> |
|
|
|
|
|
<p class="p_hint"> |
|
|
|
|
|
{{.i18n.Tr "home.no_events"}} |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
</diV> |
|
|
|
|
|
|
|
|
</diV> |
|
|
|
|
|
{{ end }} |
|
|
</div> |
|
|
</div> |
|
|
{{template "user/dashboard/repolist" .}} |
|
|
{{template "user/dashboard/repolist" .}} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
{{template "base/footer" .}} |
|
|
{{template "base/footer" .}} |
|
|
<script> |
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
|
const {AppSubUrl, StaticUrlPrefix, csrf} = window.config; |
|
|
const {AppSubUrl, StaticUrlPrefix, csrf} = window.config; |
|
|
uid_ = Number((document.querySelector('meta[name=_context_uid]') || {}).content) |
|
|
uid_ = Number((document.querySelector('meta[name=_context_uid]') || {}).content) |
|
@@ -49,11 +51,10 @@ |
|
|
$.getJSON(URL, (result, _textStatus, request) => { |
|
|
$.getJSON(URL, (result, _textStatus, request) => { |
|
|
const counts_pro = request.getResponseHeader('X-Total-Count'); |
|
|
const counts_pro = request.getResponseHeader('X-Total-Count'); |
|
|
console.log("count:",counts_pro) |
|
|
console.log("count:",counts_pro) |
|
|
if (counts_pro == 0){ |
|
|
|
|
|
|
|
|
if (counts_pro == 0 && {{ (len .Feeds) }} == 0) { |
|
|
document.getElementById("default_page").style.display = "block"; |
|
|
document.getElementById("default_page").style.display = "block"; |
|
|
document.getElementById("activity_cont").style.display = "block" |
|
|
|
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
|
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|