Create card components and add them to dashboard
Refactor the Releases, Modules and Projects cards into reusable templates. Now they are used in the non-logged-in landing homepage and in the logged-in dashboard.
This commit is contained in:
parent
bc327d7973
commit
564a8df61c
6 changed files with 133 additions and 98 deletions
26
templates/user/dashboard/dashboard.tmpl
Normal file
26
templates/user/dashboard/dashboard.tmpl
Normal file
|
@ -0,0 +1,26 @@
|
|||
{{template "base/head" .}}
|
||||
<div class="page-content dashboard feeds">
|
||||
{{template "user/dashboard/navbar" .}}
|
||||
<div class="ui container">
|
||||
{{if not .Feeds}}
|
||||
<div class="ui stackable two column grid">
|
||||
<div class="column">
|
||||
{{template "blender_components/card_projects" .}}
|
||||
{{template "blender_components/card_releases" .}}
|
||||
</div>
|
||||
<div class="column">
|
||||
{{template "blender_components/card_modules" .}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{template "base/alert" .}}
|
||||
<div class="ui mobile reversed stackable grid">
|
||||
<div class="ui container ten wide column">
|
||||
{{template "user/heatmap" .}}
|
||||
{{template "user/dashboard/feeds" .}}
|
||||
</div>
|
||||
{{template "user/dashboard/repolist" .}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{template "base/footer" .}}
|
Loading…
Add table
Add a link
Reference in a new issue