You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2023/11/16 21:08:48 UTC

(allura) branch gc/8527 created (now b572657a8)

This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a change to branch gc/8527
in repository https://gitbox.apache.org/repos/asf/allura.git


      at b572657a8 [#8527] display thread subject instead of app name and tool label in header

This branch includes the following new commits:

     new b572657a8 [#8527] display thread subject instead of app name and tool label in header

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(allura) 01/01: [#8527] display thread subject instead of app name and tool label in header

Posted by gc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gcruz pushed a commit to branch gc/8527
in repository https://gitbox.apache.org/repos/asf/allura.git

commit b572657a8b34a63ef17286326d94f0610f1eef5e
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Thu Nov 16 14:08:40 2023 -0700

    [#8527] display thread subject instead of app name and tool label in header
---
 Allura/allura/controllers/discuss.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Allura/allura/controllers/discuss.py b/Allura/allura/controllers/discuss.py
index 5756ec9c6..18d0aaaa0 100644
--- a/Allura/allura/controllers/discuss.py
+++ b/Allura/allura/controllers/discuss.py
@@ -204,6 +204,7 @@ class ThreadController(BaseController, FeedController, metaclass=h.ProxiedAttrMe
         c.thread_header = self.W.thread_header
         limit, page, start = g.handle_paging(limit, page)
         self.thread.num_views += 1
+        h1_text = f'{(self.thread.subject or c.app.config.options.mount_label)[:100]}'
         # the update to num_views shouldn't affect it
         M.session.artifact_orm_session._get().skip_mod_date = True
         M.session.artifact_orm_session._get().skip_last_updated = True
@@ -216,7 +217,7 @@ class ThreadController(BaseController, FeedController, metaclass=h.ProxiedAttrMe
                     thread=self.thread,
                     page=int(page),
                     count=int(count),
-                    limit=int(limit),
+                    limit=int(limit), h1_text=h1_text,
                     show_moderate=kw.get('show_moderate'))
 
     def error_handler(self, *args, **kwargs):