mirror of
https://projects.blender.org/infrastructure/gitea-custom.git
synced 2024-12-22 07:13:09 -05:00
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
39
templates/blender_components/card_modules.tmpl
Normal file
39
templates/blender_components/card_modules.tmpl
Normal file
|
@ -0,0 +1,39 @@
|
|||
<div class="ui card">
|
||||
<div class="content">
|
||||
<span class="header">Modules</span>
|
||||
<div class="meta">
|
||||
<span class="date">Point of contact for projects</span>
|
||||
</div>
|
||||
<div class="description">
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: Animation & Rigging">Animation & Rigging</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Core">Core</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Development Management">Development Management</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Grease Pencil">Grease Pencil</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Modeling">Modeling</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Nodes & Physics">Nodes & Physics</a></li>
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: Geometry Nodes">Geometry Nodes</a></li>
|
||||
</ul>
|
||||
<li><a href="blender/blender/wiki/Module: Pipeline, Assets & I/O">Pipeline, Assets & I/O</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Asset Browser">Asset Browser</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Platforms, Builds, Tests & Devices">Platforms, Builds, Tests & Devices</a></li>
|
||||
<li>Python & Add-ons</li>
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: Python API & Text Editor">Python API & Text Editor</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Officially Maintained Add-ons">Officially Maintained Add-ons</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Community Maintained Add-ons">Community Maintained Add-ons</a></li>
|
||||
</ul>
|
||||
<li>Rendering</li>
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: EEVEE & Viewport">EEVEE & Viewport</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Render & Cycles">Render & Cycles</a></li>
|
||||
</ul>
|
||||
<li><a href="blender/blender/wiki/Module: Sculpt, Paint & Texture">Sculpt, Paint & Texture</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Triaging">Triaging</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: User Interface">User Interface</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: VFX & Video">VFX & Video</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
20
templates/blender_components/card_projects.tmpl
Normal file
20
templates/blender_components/card_projects.tmpl
Normal file
|
@ -0,0 +1,20 @@
|
|||
<div class="ui card">
|
||||
<div class="content">
|
||||
<span class="header">Ongoing Projects</span>
|
||||
<div class="meta">
|
||||
<span class="date">Focused activities to advance Blender</span>
|
||||
</div>
|
||||
<div class="description">
|
||||
<ul>
|
||||
<li>Animation 25 — Next generation animation system</li>
|
||||
<li>Simulation Nodes — Everything with nodes</li>
|
||||
<li>Brush Assets — The asset system and browser</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra content">
|
||||
<span class="right floated">
|
||||
<a>View all projects...</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
21
templates/blender_components/card_releases.tmpl
Normal file
21
templates/blender_components/card_releases.tmpl
Normal file
|
@ -0,0 +1,21 @@
|
|||
<div class="ui card">
|
||||
<div class="content">
|
||||
<span class="header">Release Status</span>
|
||||
<div class="meta">
|
||||
<span class="date">Current and upcoming versions</span>
|
||||
</div>
|
||||
<div class="description">
|
||||
<ul>
|
||||
<li><a href="blender/blender/milestone/1">Blender 3.5</a> — Bcon2: Improve and stabilize</li>
|
||||
<li><a href="blender/blender/milestone/2">Blender 3.4</a> — Released on December 7, 2022</li>
|
||||
<li><a href="blender/blender/milestone/3">Blender 3.3 LTS</a> — Released on September 7, 2022</li>
|
||||
<li><a href="blender/blender/milestone/4">Blender 2.93 LTS</a> — Released on June 2, 2021</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra content">
|
||||
<span class="right floated">
|
||||
<a href="https://wiki.blender.org/wiki/Process/Release_Cycle">More info on the release cycle...</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
20
templates/custom/header.tmpl
Normal file
20
templates/custom/header.tmpl
Normal file
|
@ -0,0 +1,20 @@
|
|||
<style>
|
||||
.page-content.home ul,
|
||||
.page-content.dashboard ul{
|
||||
padding-inline-start: 15px;
|
||||
}
|
||||
|
||||
ul.two-col {
|
||||
columns: 2;
|
||||
}
|
||||
|
||||
.page-content.home .ui.cards>.card, .ui.card,
|
||||
.page-content.dashboard .ui.cards>.card, .ui.card {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.page-content.home .hero p {
|
||||
width: 70%;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
</style>
|
|
@ -1,19 +1,5 @@
|
|||
{{template "base/head" .}}
|
||||
|
||||
<style>
|
||||
ul {
|
||||
padding-inline-start: 15px;
|
||||
}
|
||||
.ui.cards>.card, .ui.card {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.hero p {
|
||||
width: 70%;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="page-content home">
|
||||
<div class="ui stackable middle very relaxed page grid">
|
||||
<div class="sixteen wide aligned column">
|
||||
|
@ -30,91 +16,14 @@
|
|||
</div>
|
||||
|
||||
<div class="ui stackable two column grid">
|
||||
<div class="column">
|
||||
<div class="ui card">
|
||||
<div class="content">
|
||||
<span class="header">Release Status</span>
|
||||
<div class="meta">
|
||||
<span class="date">Current and upcoming versions</span>
|
||||
</div>
|
||||
<div class="description">
|
||||
<ul>
|
||||
<li><a href="blender/blender/milestone/1">Blender 3.5</a> — Bcon2: Improve and stabilize</li>
|
||||
<li><a href="blender/blender/milestone/2">Blender 3.4</a> — Released on December 7, 2022</li>
|
||||
<li><a href="blender/blender/milestone/3">Blender 3.3 LTS</a> — Released on September 7, 2022</li>
|
||||
<li><a href="blender/blender/milestone/4">Blender 2.93 LTS</a> — Released on June 2, 2021</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra content">
|
||||
<span class="right floated">
|
||||
<a href="https://wiki.blender.org/wiki/Process/Release_Cycle">More info on the release cycle...</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui card">
|
||||
<div class="content">
|
||||
<span class="header">Ongoing Projects</span>
|
||||
<div class="meta">
|
||||
<span class="date">Focused activities to advance Blender</span>
|
||||
</div>
|
||||
<div class="description">
|
||||
<ul>
|
||||
<li>Animation 25 — Next generation animation system</li>
|
||||
<li>Simulation Nodes — Everything with nodes</li>
|
||||
<li>Brush Assets — The asset system and browser</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="extra content">
|
||||
<span class="right floated">
|
||||
<a>View all projects...</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="ui card">
|
||||
<div class="content">
|
||||
<span class="header">Modules</span>
|
||||
<div class="meta">
|
||||
<span class="date">Point of contact for projects</span>
|
||||
</div>
|
||||
<div class="description">
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: Animation & Rigging">Animation & Rigging</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Core">Core</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Development Management">Development Management</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Grease Pencil">Grease Pencil</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Modeling">Modeling</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Nodes & Physics">Nodes & Physics</a></li>
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: Geometry Nodes">Geometry Nodes</a></li>
|
||||
</ul>
|
||||
<li><a href="blender/blender/wiki/Module: Pipeline, Assets & I/O">Pipeline, Assets & I/O</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Asset Browser">Asset Browser</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Platforms, Builds, Tests & Devices">Platforms, Builds, Tests & Devices</a></li>
|
||||
<li>Python & Add-ons</li>
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: Python API & Text Editor">Python API & Text Editor</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Officially Maintained Add-ons">Officially Maintained Add-ons</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Community Maintained Add-ons">Community Maintained Add-ons</a></li>
|
||||
</ul>
|
||||
<li>Rendering</li>
|
||||
<ul>
|
||||
<li><a href="blender/blender/wiki/Module: EEVEE & Viewport">EEVEE & Viewport</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Render & Cycles">Render & Cycles</a></li>
|
||||
</ul>
|
||||
<li><a href="blender/blender/wiki/Module: Sculpt, Paint & Texture">Sculpt, Paint & Texture</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: Triaging">Triaging</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: User Interface">User Interface</a></li>
|
||||
<li><a href="blender/blender/wiki/Module: VFX & Video">VFX & Video</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
{{template "blender_components/card_releases" .}}
|
||||
{{template "blender_components/card_projects" .}}
|
||||
</div>
|
||||
<div class="column">
|
||||
{{template "blender_components/card_modules" .}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2 class="ui header title">Featured Repositories</h2>
|
||||
<p>The portal hosts more that just the Blender sources, bug and patch tracker. Explore the other repositories and get involved!</p>
|
||||
|
|
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…
Reference in a new issue