From be7a1616c41106d26ec72a58063d9e7df3ded1ec Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Tue, 7 Feb 2023 15:52:22 +0100 Subject: [PATCH] Refactor repos into template --- templates/blender_components/card_repos.tmpl | 55 +++++++++++++++++++ templates/home.tmpl | 56 +------------------- templates/user/dashboard/dashboard.tmpl | 1 + 3 files changed, 57 insertions(+), 55 deletions(-) create mode 100644 templates/blender_components/card_repos.tmpl diff --git a/templates/blender_components/card_repos.tmpl b/templates/blender_components/card_repos.tmpl new file mode 100644 index 0000000..248fc05 --- /dev/null +++ b/templates/blender_components/card_repos.tmpl @@ -0,0 +1,55 @@ +
+
+
+ + + +
+
+ +

Blender

+
+
+

The main repository for Blender's code and all its branches.

+
+
+
+
+
+ +
+
+ + + +
+
+ +

User Manual

+
+
+

The official Blender manual, with references and examples.

+
+
+
+
+
+ +
+
+ + + +
+
+ +

Flamenco

+
+
+

Free and open source render management software.

+
+
+
+
+
+
diff --git a/templates/home.tmpl b/templates/home.tmpl index 26c563a..195815f 100644 --- a/templates/home.tmpl +++ b/templates/home.tmpl @@ -19,61 +19,7 @@

This portal hosts more than just the Blender sources, bug and patch tracker. Explore the other repositories and get involved!

-
-
-
- - - -
-
- -

Blender

-
-
-

The main repository for Blender's code and all its branches.

-
-
-
-
-
- -
-
- - - -
-
- -

User Manual

-
-
-

The official Blender manual, with references and examples.

-
-
-
-
-
- -
-
- - - -
-
- -

Flamenco

-
-
-

Free and open source render management software.

-
-
-
-
-
-
+ {{template "blender_components/card_repos" .}}
diff --git a/templates/user/dashboard/dashboard.tmpl b/templates/user/dashboard/dashboard.tmpl index 8f5fad9..9207989 100644 --- a/templates/user/dashboard/dashboard.tmpl +++ b/templates/user/dashboard/dashboard.tmpl @@ -3,6 +3,7 @@ {{template "user/dashboard/navbar" .}}
{{if not .Feeds}} + {{template "blender_components/card_repos" .}}
{{template "blender_components/card_projects" .}}