Project

General

Profile

Actions

Patch #12664

open

MyPage block for latest forum posts

Added by Jan Niggemann (redmine.org team member) about 12 years ago. Updated over 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
My page
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Currently there's no block displaying posts from forums belonging to projects the user is taking part in.
Attached my proposition for such a block (to be placed in app/views/my/blocks/).
Obviously, the my_controller.rb needs info about the new block as well.

What do you think?


Files

_forums.html.erb (1.06 KB) _forums.html.erb Jan Niggemann (redmine.org team member), 2012-12-21 17:58
forum_widget_with_locales.diff (24.6 KB) forum_widget_with_locales.diff Patch for forum widget (version 2) Daniel Felix, 2013-01-03 09:52
forum_widget_with_locales_v2.diff (24.6 KB) forum_widget_with_locales_v2.diff Daniel Felix, 2013-01-03 15:52
12664.diff (4.44 KB) 12664.diff Takenori TAKAKI, 2021-06-22 09:27
12664-without-content.patch (4.35 KB) 12664-without-content.patch Takenori TAKAKI, 2021-09-01 04:27

Related issues

Related to Redmine - Feature #964: Global Forums-overviewNew2008-03-31

Actions
Related to Redmine - Patch #1486: Highlight recent forum activityNew2008-06-17

Actions
Related to Redmine - Feature #3235: Watched topics on My pageNew2009-04-24

Actions
Related to Redmine - Feature #34336: Show latest messages on forums index pageNew

Actions
Actions #1

Updated by Jan Niggemann (redmine.org team member) almost 12 years ago

  • Category set to My page
Actions #2

Updated by Daniel Felix almost 12 years ago

Hi,

I added a new translation key and changed the my_controller to display the new block. Just see attached patch.

I tested this on my system and it worked as expected.

Best regards,
Daniel

Actions #3

Updated by Daniel Felix almost 12 years ago

I found a typo regarding the class definition.
Fixed in v2.

Actions #4

Updated by Jean-Philippe Lang almost 12 years ago

It raises a SQL error when the current user has no memberships. Another point is that Message.visible scope should used. And using parameters in the where condition is a prefered way to build queries.

Actions #5

Updated by Go MAEDA over 6 years ago

Actions #6

Updated by Go MAEDA about 4 years ago

  • Related to Feature #34336: Show latest messages on forums index page added
Actions #7

Updated by Takenori TAKAKI over 3 years ago

I think this proposal is useful as another way to realize the concept of #34336.

I made a patch that works on v4.2.1, and attach it.

Actions #8

Updated by Go MAEDA over 3 years ago

Takenori TAKAKI wrote:

I think this proposal is useful as another way to realize the concept of #34336.

Thank you for posting the patch. I think the patch needs some improvements:

  • Long content should be trimmed down to tens or hundreds characters. Displaying full content may break the layout when the content is very long
  • Left-aligning the content is preferred
Actions #9

Updated by Takenori TAKAKI over 3 years ago

Go MAEDA wrote:

Thank you for posting the patch. I think the patch needs some improvements:

  • Long content should be trimmed down to tens or hundreds characters. Displaying full content may break the layout when the content is very long
  • Left-aligning the content is preferred

Thanks for the feedback.
How about not showing content in the list at all?
The content of the message is not shown in the message list in the forum.

Actions #10

Updated by Takenori TAKAKI over 3 years ago

Takenori TAKAKI wrote:

How about not showing content in the list at all?
The content of the message is not shown in the message list in the forum.

I’v made a patch that does not show content and attache it.

Actions

Also available in: Atom PDF