プロジェクト

全般

プロフィール

Vote #79926

完了

Show projects using a table instead of an unordered list in the user profile page

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
10
version_id:
127
issue_org_id:
31066
author_id:
145727
assigned_to_id:
332
comments:
11
status_id:
5
tracker_id:
3
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I felt that the project list on the Profile page looks better 'table' style than 'ul' style. Especially on users with a large number of registered projects.

| 'ul' style|| 'table' style |
|!users-memberships-ul.png!| ==> |!users-memberships-table.png!|


journals

I made a patch and attached it.
--------------------------------------------------------------------------------
+1 Looks very clean.
I'll test it when I find a free time slot.
--------------------------------------------------------------------------------
Thank you for submitting the patch.

Takenori Takaki, I think it will be even better if subprojects are indented like admin/projects page. Is it possible?

!{width: 608px; border: 1px solid #ccc;}.projects-indented@2x.png!
--------------------------------------------------------------------------------
Maeda-san, Thank you for your feedback!
I also think that indented lists are better to see.
It is possible to indent in subprojects, by changing like the attached patch.

!users-memberships-indented-table.png!
--------------------------------------------------------------------------------
Thank you for the really nice improvement! But I encountered the following error while running test suites. Could you look into this?

<pre>
Failure:
UsersControllerTest#test_show_displays_memberships_based_on_project_visibility [/Users/maeda/redmines/redmine-trunk/test/functional/users_controller_test.rb:176]:
Expected at least 1 element matching "td:nth-of-type(1)>a", found 0..
Expected 0 to be >= 1.

bin/rails test test/functional/users_controller_test.rb:171
</pre>
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Thank you for the really nice improvement! But I encountered the following error while running test suites. Could you look into this?
>
Oops...Sorry...I could't notice the test broken.
I repaired the broken tests.

--------------------------------------------------------------------------------
LGTM. Setting the target version to 4.1.0.
--------------------------------------------------------------------------------
I have slightly changed 31066-fix-broken-tests.patch.

* Use @Enumerable#group_by@ outside the loop in order to avoid using @Enumerable#select@ inside the loop. Maybe this is more efficient
* Remove "members" class from the table because "width: 45%" for td.roles looks too wide
--------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------
Committed. Thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリUI_10 にセット
  • 対象バージョン4.1.0_127 にセット

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

いいね!0
いいね!0