From: Michael Tremer Date: Wed, 22 Jun 2022 10:42:31 +0000 (+0000) Subject: web: Drop comments pages X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=139cfca70edfcdd7979f6226dd175f04ee795472;p=pbs.git web: Drop comments pages Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 829512bf..1d30fcb3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -207,7 +207,6 @@ dist_templates_builders_DATA = \ templates_buildersdir = $(templatesdir)/builders dist_templates_builds_DATA = \ - src/templates/builds/comments.html \ src/templates/builds/index.html \ src/templates/builds/show.html @@ -260,7 +259,6 @@ dist_templates_modules_DATA = \ src/templates/modules/build-offset.html \ src/templates/modules/build-state-warnings.html \ src/templates/modules/build-table.html \ - src/templates/modules/comments-table.html \ src/templates/modules/commits-table.html \ src/templates/modules/commit-message.html \ src/templates/modules/files-table.html \ diff --git a/src/templates/builds/comments.html b/src/templates/builds/comments.html deleted file mode 100644 index fc9e72fc..00000000 --- a/src/templates/builds/comments.html +++ /dev/null @@ -1,84 +0,0 @@ -{% extends "../base.html" %} - -{% block title %}{{ _("Build comments") }}{% end block %} - -{% block body %} - - - {% if user %} - - {% end %} - - - - {% if comments %} -

- {% if user %} - {{ _("This page shows %s's latest comments.") % user.firstname }} - {% else %} - {{ _("This page shows the latest comments on builds.") }} - {% end %} - {{ _("The Pakfire Build Service is all about social development and so, communicating with eath others is important. Please join.") }} -

- - {% module Log(comments, show_build=True) %} - - - {% elif not comments and user %} -

- {{ _("%s did not comment on anything, yet.") % user.firstname }} -

- {% end %} -{% end block %} diff --git a/src/templates/modules/comments-table.html b/src/templates/modules/comments-table.html deleted file mode 100644 index 0f228074..00000000 --- a/src/templates/modules/comments-table.html +++ /dev/null @@ -1,25 +0,0 @@ -
- {% if comments %} - {% for comment in comments %} -
-

{{ comment.text }}

- - {% if show_package %} - {{ _("on %s") % comment.pkg.friendly_name }} - - {% end %} - {% if show_user %} - {{ _("by %s") % comment.user.realname }} - - {% end %} - {{ locale.format_date(comment.time_created) }} - - {% if comment.time_updated %} - _("Updated") {{ locale.format_date(comment.time_updated) }} - {% end %} - -
- {% end %} - {% else %} -

{{ _("No comments so far.") }}

- {% end %} -
-
 
diff --git a/src/templates/user-profile.html b/src/templates/user-profile.html index 0bfd7191..f0ded1e5 100644 --- a/src/templates/user-profile.html +++ b/src/templates/user-profile.html @@ -32,9 +32,6 @@ {{ _("Actions") }}