mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-22 16:47:30 +00:00
Insert ui divider directly in templates instead of from inside heatmap vue component (#11508)
* ui: remove the divider between heatmap and feeds in the dashboard view * this commit reverses6ccd19ef86
Signed-off-by: surtur <a_mirre@utb.cz> * add a divider to the default user dashboard view * another one-line change, this time as a direct complement of2bfc71614c
to implement a divider of sorts (as per6ccd19ef86
originally) Signed-off-by: surtur <a_mirre@utb.cz> * removed the divider in heatmap.tmpl * the separator is added by partial templates as needed Signed-off-by: surtur <a_mirre@utb.cz> * load proper dashboard template code in profile.tmpl * as discussed in Discord * includes a divider of its own Signed-off-by: surtur <a_mirre@utb.cz>
This commit is contained in:
parent
50a97272b9
commit
a2d7999e93
|
@ -7,6 +7,7 @@
|
||||||
<div class="ui container ten wide column">
|
<div class="ui container ten wide column">
|
||||||
{{if .EnableHeatmap}}
|
{{if .EnableHeatmap}}
|
||||||
{{template "user/dashboard/heatmap" .}}
|
{{template "user/dashboard/heatmap" .}}
|
||||||
|
<div class="ui divider"></div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{template "user/dashboard/feeds" .}}
|
{{template "user/dashboard/feeds" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -4,5 +4,4 @@
|
||||||
<div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div>
|
<div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div>
|
||||||
</div>
|
</div>
|
||||||
</activity-heatmap>
|
</activity-heatmap>
|
||||||
<div class="ui divider"></div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -104,16 +104,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{if eq .TabName "activity"}}
|
{{if eq .TabName "activity"}}
|
||||||
{{if .EnableHeatmap}}
|
{{if .EnableHeatmap}}
|
||||||
<div id="user-heatmap" style="padding-right: 40px">
|
{{template "user/dashboard/heatmap" .}}
|
||||||
<activity-heatmap :locale="locale" :suburl="suburl" :user="heatmapUser">
|
<div class="ui divider"></div>
|
||||||
<div slot="loading">
|
{{end}}
|
||||||
<div class="ui active centered inline indeterminate text loader" id="loading-heatmap">{{.i18n.Tr "user.heatmap.loading"}}</div>
|
|
||||||
</div>
|
|
||||||
</activity-heatmap>
|
|
||||||
</div>
|
|
||||||
<div class="ui divider"></div>
|
|
||||||
{{end}}
|
|
||||||
<div class="feeds">
|
<div class="feeds">
|
||||||
{{template "user/dashboard/feeds" .}}
|
{{template "user/dashboard/feeds" .}}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
{{ totalContributions }} total contributions in the last 12 months
|
{{ totalContributions }} total contributions in the last 12 months
|
||||||
</h4>
|
</h4>
|
||||||
<calendar-heatmap v-show="!isLoading" :locale="locale" :no-data-text="locale.no_contributions" :tooltip-unit="locale.contributions" :end-date="endDate" :values="values" :range-color="colorRange"/>
|
<calendar-heatmap v-show="!isLoading" :locale="locale" :no-data-text="locale.no_contributions" :tooltip-unit="locale.contributions" :end-date="endDate" :values="values" :range-color="colorRange"/>
|
||||||
<div class="ui divider"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue