プロジェクト

全般

プロフィール

Vote #73001

未完了

MyPage block for latest forum posts

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
My page_42
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
42
version_id:
0
issue_org_id:
12664
author_id:
55460
assigned_to_id:
0
comments:
10
status_id:
1
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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?


journals

--------------------------------------------------------------------------------
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
--------------------------------------------------------------------------------
I found a typo regarding the class definition.
Fixed in v2.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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

--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------


related_issues

relates,New,964,Global Forums-overview
relates,New,1486,Highlight recent forum activity
relates,New,3235,Watched topics on My page
relates,New,34336,Show latest messages on forums index page

Admin Redmine さんが約4年前に更新

  • カテゴリMy page_42 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0