From e44397dcbb9454f89b8263738d5ccf1e20a12074 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Tue, 11 Feb 2025 17:50:21 +0530 Subject: Substituted 'article' with 'project' in filenames --- cmd/web/templates/articles/htmx-article-page.tmpl | 3 -- cmd/web/templates/articles/htmx-post-comments.tmpl | 2 -- cmd/web/templates/articles/htmx-show.tmpl | 3 -- .../templates/articles/partials/comments-card.tmpl | 25 ------------- .../templates/articles/partials/comments-form.tmpl | 18 ---------- .../articles/partials/comments-wrapper.tmpl | 26 -------------- .../articles/partials/detail-post-meta.tmpl | 42 ---------------------- .../articles/partials/favorite-button.tmpl | 15 -------- .../templates/articles/partials/follow-button.tmpl | 17 --------- cmd/web/templates/articles/show.tmpl | 38 -------------------- .../home/partials/article-favorite-button.tmpl | 6 ---- .../home/partials/project-favorite-button.tmpl | 6 ++++ cmd/web/templates/projects/htmx-post-comments.tmpl | 2 ++ cmd/web/templates/projects/htmx-project-page.tmpl | 3 ++ cmd/web/templates/projects/htmx-show.tmpl | 3 ++ .../templates/projects/partials/comments-card.tmpl | 25 +++++++++++++ .../templates/projects/partials/comments-form.tmpl | 18 ++++++++++ .../projects/partials/comments-wrapper.tmpl | 26 ++++++++++++++ .../projects/partials/detail-post-meta.tmpl | 42 ++++++++++++++++++++++ .../projects/partials/favorite-button.tmpl | 15 ++++++++ .../templates/projects/partials/follow-button.tmpl | 17 +++++++++ cmd/web/templates/projects/show.tmpl | 38 ++++++++++++++++++++ cmd/web/templates/users/htmx-users-articles.tmpl | 2 -- cmd/web/templates/users/htmx-users-projects.tmpl | 2 ++ .../users/partials/article-favorite-button.tmpl | 12 ------- .../users/partials/project-favorite-button.tmpl | 12 +++++++ 26 files changed, 209 insertions(+), 209 deletions(-) delete mode 100644 cmd/web/templates/articles/htmx-article-page.tmpl delete mode 100644 cmd/web/templates/articles/htmx-post-comments.tmpl delete mode 100644 cmd/web/templates/articles/htmx-show.tmpl delete mode 100644 cmd/web/templates/articles/partials/comments-card.tmpl delete mode 100644 cmd/web/templates/articles/partials/comments-form.tmpl delete mode 100644 cmd/web/templates/articles/partials/comments-wrapper.tmpl delete mode 100644 cmd/web/templates/articles/partials/detail-post-meta.tmpl delete mode 100644 cmd/web/templates/articles/partials/favorite-button.tmpl delete mode 100644 cmd/web/templates/articles/partials/follow-button.tmpl delete mode 100644 cmd/web/templates/articles/show.tmpl delete mode 100644 cmd/web/templates/home/partials/article-favorite-button.tmpl create mode 100644 cmd/web/templates/home/partials/project-favorite-button.tmpl create mode 100644 cmd/web/templates/projects/htmx-post-comments.tmpl create mode 100644 cmd/web/templates/projects/htmx-project-page.tmpl create mode 100644 cmd/web/templates/projects/htmx-show.tmpl create mode 100644 cmd/web/templates/projects/partials/comments-card.tmpl create mode 100644 cmd/web/templates/projects/partials/comments-form.tmpl create mode 100644 cmd/web/templates/projects/partials/comments-wrapper.tmpl create mode 100644 cmd/web/templates/projects/partials/detail-post-meta.tmpl create mode 100644 cmd/web/templates/projects/partials/favorite-button.tmpl create mode 100644 cmd/web/templates/projects/partials/follow-button.tmpl create mode 100644 cmd/web/templates/projects/show.tmpl delete mode 100644 cmd/web/templates/users/htmx-users-articles.tmpl create mode 100644 cmd/web/templates/users/htmx-users-projects.tmpl delete mode 100644 cmd/web/templates/users/partials/article-favorite-button.tmpl create mode 100644 cmd/web/templates/users/partials/project-favorite-button.tmpl (limited to 'cmd/web/templates') diff --git a/cmd/web/templates/articles/htmx-article-page.tmpl b/cmd/web/templates/articles/htmx-article-page.tmpl deleted file mode 100644 index c7a567c..0000000 --- a/cmd/web/templates/articles/htmx-article-page.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -{{ template "projects/show" . }} -{{ template "components/navbar" . }} -{{ template "components/head" . }} \ No newline at end of file diff --git a/cmd/web/templates/articles/htmx-post-comments.tmpl b/cmd/web/templates/articles/htmx-post-comments.tmpl deleted file mode 100644 index 7a1aba4..0000000 --- a/cmd/web/templates/articles/htmx-post-comments.tmpl +++ /dev/null @@ -1,2 +0,0 @@ -{{ template "projects/partials/comments-card" . }} -{{ template "projects/partials/comments-form" . }} \ No newline at end of file diff --git a/cmd/web/templates/articles/htmx-show.tmpl b/cmd/web/templates/articles/htmx-show.tmpl deleted file mode 100644 index e5f6875..0000000 --- a/cmd/web/templates/articles/htmx-show.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -{{ template "projects/partials/detail-title" . }} -{{ template "projects/partials/detail-post-meta" . }} -{{ template "projects/partials/detail-post-content" . }} \ No newline at end of file diff --git a/cmd/web/templates/articles/partials/comments-card.tmpl b/cmd/web/templates/articles/partials/comments-card.tmpl deleted file mode 100644 index 1e6062a..0000000 --- a/cmd/web/templates/articles/partials/comments-card.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -
-
-

{{ .Comment.Body }}

-
- -
\ No newline at end of file diff --git a/cmd/web/templates/articles/partials/comments-form.tmpl b/cmd/web/templates/articles/partials/comments-form.tmpl deleted file mode 100644 index c88cac6..0000000 --- a/cmd/web/templates/articles/partials/comments-form.tmpl +++ /dev/null @@ -1,18 +0,0 @@ -
-
- -
- -
\ No newline at end of file diff --git a/cmd/web/templates/articles/partials/comments-wrapper.tmpl b/cmd/web/templates/articles/partials/comments-wrapper.tmpl deleted file mode 100644 index 2f401de..0000000 --- a/cmd/web/templates/articles/partials/comments-wrapper.tmpl +++ /dev/null @@ -1,26 +0,0 @@ -
- {{ range $comment := .Project.Comments }} - {{ template "projects/partials/comments-card" Dict "Comment" $comment }} - {{ end }} -
- -{{ if .IsAuthenticated }} -
- - {{ template "projects/partials/comments-form" . }} -{{ else }} -
- - Sign in - - or - - sign up - - to add comments on this project. -
-{{ end }} \ No newline at end of file diff --git a/cmd/web/templates/articles/partials/detail-post-meta.tmpl b/cmd/web/templates/articles/partials/detail-post-meta.tmpl deleted file mode 100644 index eb957b4..0000000 --- a/cmd/web/templates/articles/partials/detail-post-meta.tmpl +++ /dev/null @@ -1,42 +0,0 @@ -
- -
- - {{ .Project.User.Name }} - - {{ .Project.GetFormattedCreatedAt }} -
- - {{ if .IsSelf }} - - - - - - {{ else }} - - {{ template "projects/partials/follow-button" . }} - - {{ template "projects/partials/favorite-button" . }} - - {{ end }} -
\ No newline at end of file diff --git a/cmd/web/templates/articles/partials/favorite-button.tmpl b/cmd/web/templates/articles/partials/favorite-button.tmpl deleted file mode 100644 index f72a320..0000000 --- a/cmd/web/templates/articles/partials/favorite-button.tmpl +++ /dev/null @@ -1,15 +0,0 @@ - \ No newline at end of file diff --git a/cmd/web/templates/articles/partials/follow-button.tmpl b/cmd/web/templates/articles/partials/follow-button.tmpl deleted file mode 100644 index 73cd023..0000000 --- a/cmd/web/templates/articles/partials/follow-button.tmpl +++ /dev/null @@ -1,17 +0,0 @@ - \ No newline at end of file diff --git a/cmd/web/templates/articles/show.tmpl b/cmd/web/templates/articles/show.tmpl deleted file mode 100644 index 2078016..0000000 --- a/cmd/web/templates/articles/show.tmpl +++ /dev/null @@ -1,38 +0,0 @@ -
- - - -
-
-
- {{ .Project.Body }} -
-
-
    - {{ range $tag := .Project.Tags }} -
  • {{ $tag.Name }}
  • - {{ end }} -
-
-
- -
- -
- {{ template "projects/partials/detail-post-meta" . }} -
- -
-
-
- -
-
\ No newline at end of file diff --git a/cmd/web/templates/home/partials/article-favorite-button.tmpl b/cmd/web/templates/home/partials/article-favorite-button.tmpl deleted file mode 100644 index 341f458..0000000 --- a/cmd/web/templates/home/partials/article-favorite-button.tmpl +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/cmd/web/templates/home/partials/project-favorite-button.tmpl b/cmd/web/templates/home/partials/project-favorite-button.tmpl new file mode 100644 index 0000000..341f458 --- /dev/null +++ b/cmd/web/templates/home/partials/project-favorite-button.tmpl @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/cmd/web/templates/projects/htmx-post-comments.tmpl b/cmd/web/templates/projects/htmx-post-comments.tmpl new file mode 100644 index 0000000..7a1aba4 --- /dev/null +++ b/cmd/web/templates/projects/htmx-post-comments.tmpl @@ -0,0 +1,2 @@ +{{ template "projects/partials/comments-card" . }} +{{ template "projects/partials/comments-form" . }} \ No newline at end of file diff --git a/cmd/web/templates/projects/htmx-project-page.tmpl b/cmd/web/templates/projects/htmx-project-page.tmpl new file mode 100644 index 0000000..c7a567c --- /dev/null +++ b/cmd/web/templates/projects/htmx-project-page.tmpl @@ -0,0 +1,3 @@ +{{ template "projects/show" . }} +{{ template "components/navbar" . }} +{{ template "components/head" . }} \ No newline at end of file diff --git a/cmd/web/templates/projects/htmx-show.tmpl b/cmd/web/templates/projects/htmx-show.tmpl new file mode 100644 index 0000000..e5f6875 --- /dev/null +++ b/cmd/web/templates/projects/htmx-show.tmpl @@ -0,0 +1,3 @@ +{{ template "projects/partials/detail-title" . }} +{{ template "projects/partials/detail-post-meta" . }} +{{ template "projects/partials/detail-post-content" . }} \ No newline at end of file diff --git a/cmd/web/templates/projects/partials/comments-card.tmpl b/cmd/web/templates/projects/partials/comments-card.tmpl new file mode 100644 index 0000000..1e6062a --- /dev/null +++ b/cmd/web/templates/projects/partials/comments-card.tmpl @@ -0,0 +1,25 @@ +
+
+

{{ .Comment.Body }}

+
+ +
\ No newline at end of file diff --git a/cmd/web/templates/projects/partials/comments-form.tmpl b/cmd/web/templates/projects/partials/comments-form.tmpl new file mode 100644 index 0000000..c88cac6 --- /dev/null +++ b/cmd/web/templates/projects/partials/comments-form.tmpl @@ -0,0 +1,18 @@ +
+
+ +
+ +
\ No newline at end of file diff --git a/cmd/web/templates/projects/partials/comments-wrapper.tmpl b/cmd/web/templates/projects/partials/comments-wrapper.tmpl new file mode 100644 index 0000000..2f401de --- /dev/null +++ b/cmd/web/templates/projects/partials/comments-wrapper.tmpl @@ -0,0 +1,26 @@ +
+ {{ range $comment := .Project.Comments }} + {{ template "projects/partials/comments-card" Dict "Comment" $comment }} + {{ end }} +
+ +{{ if .IsAuthenticated }} +
+ + {{ template "projects/partials/comments-form" . }} +{{ else }} +
+ + Sign in + + or + + sign up + + to add comments on this project. +
+{{ end }} \ No newline at end of file diff --git a/cmd/web/templates/projects/partials/detail-post-meta.tmpl b/cmd/web/templates/projects/partials/detail-post-meta.tmpl new file mode 100644 index 0000000..eb957b4 --- /dev/null +++ b/cmd/web/templates/projects/partials/detail-post-meta.tmpl @@ -0,0 +1,42 @@ +
+ +
+ + {{ .Project.User.Name }} + + {{ .Project.GetFormattedCreatedAt }} +
+ + {{ if .IsSelf }} + + + + + + {{ else }} + + {{ template "projects/partials/follow-button" . }} + + {{ template "projects/partials/favorite-button" . }} + + {{ end }} +
\ No newline at end of file diff --git a/cmd/web/templates/projects/partials/favorite-button.tmpl b/cmd/web/templates/projects/partials/favorite-button.tmpl new file mode 100644 index 0000000..f72a320 --- /dev/null +++ b/cmd/web/templates/projects/partials/favorite-button.tmpl @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/cmd/web/templates/projects/partials/follow-button.tmpl b/cmd/web/templates/projects/partials/follow-button.tmpl new file mode 100644 index 0000000..73cd023 --- /dev/null +++ b/cmd/web/templates/projects/partials/follow-button.tmpl @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/cmd/web/templates/projects/show.tmpl b/cmd/web/templates/projects/show.tmpl new file mode 100644 index 0000000..2078016 --- /dev/null +++ b/cmd/web/templates/projects/show.tmpl @@ -0,0 +1,38 @@ +
+ + + +
+
+
+ {{ .Project.Body }} +
+
+
    + {{ range $tag := .Project.Tags }} +
  • {{ $tag.Name }}
  • + {{ end }} +
+
+
+ +
+ +
+ {{ template "projects/partials/detail-post-meta" . }} +
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/cmd/web/templates/users/htmx-users-articles.tmpl b/cmd/web/templates/users/htmx-users-articles.tmpl deleted file mode 100644 index d002097..0000000 --- a/cmd/web/templates/users/htmx-users-articles.tmpl +++ /dev/null @@ -1,2 +0,0 @@ -{{ template "users/partials/post-preview" . }} -{{ template "users/partials/feed-navigation" . }} \ No newline at end of file diff --git a/cmd/web/templates/users/htmx-users-projects.tmpl b/cmd/web/templates/users/htmx-users-projects.tmpl new file mode 100644 index 0000000..d002097 --- /dev/null +++ b/cmd/web/templates/users/htmx-users-projects.tmpl @@ -0,0 +1,2 @@ +{{ template "users/partials/post-preview" . }} +{{ template "users/partials/feed-navigation" . }} \ No newline at end of file diff --git a/cmd/web/templates/users/partials/article-favorite-button.tmpl b/cmd/web/templates/users/partials/article-favorite-button.tmpl deleted file mode 100644 index 5a70718..0000000 --- a/cmd/web/templates/users/partials/article-favorite-button.tmpl +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/cmd/web/templates/users/partials/project-favorite-button.tmpl b/cmd/web/templates/users/partials/project-favorite-button.tmpl new file mode 100644 index 0000000..5a70718 --- /dev/null +++ b/cmd/web/templates/users/partials/project-favorite-button.tmpl @@ -0,0 +1,12 @@ + \ No newline at end of file -- cgit v1.2.3