プロジェクト

全般

プロフィール

Vote #67388

未完了

My page - blocks

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

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

0%

予定工数:
category_id:
10
version_id:
0
issue_org_id:
5653
author_id:
13730
assigned_to_id:
0
comments:
6
status_id:
8
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Reopend]

説明

Hi guys,

Why my page uses <%= render :partial => "my/blocks/#{b}", :locals => { :user => @user } %> and every my/block/.. ignores the user variable? Why is passed? If I want to see my page of another user I have to rewrite all my blocks to use passed "user" variable and not "Issue.visible, @user, etc.". Thanks in advance. Petr


journals

There is a example of one block - timelog. The modification is easy - just delete "@" before "user". Do it at all :o).
--------------------------------------------------------------------------------
trunk is affected too.
--------------------------------------------------------------------------------
As the name says: it's _My_ Page, where you can see information pertaining to _your_self, if you want to see other things, use user-defined queries.
--------------------------------------------------------------------------------
so it is feature :(. So why @user is passed? Because it is my page?

"if you want to see other things, use user-defined queries." What? I am in admin role. I am using LDAP auth. How I can see what the user has on the my page?

--------------------------------------------------------------------------------
If it were written the way it was meant, so there would not be a problem to write my own plugin to switch "current identity" for my page. You said - yes we are sending a user variable to block, but we don't use it. And of course, it is not a bug, it is a feature. It is a Microsoft way.
--------------------------------------------------------------------------------

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

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

  • カテゴリUI_10 にセット

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

いいね!0
いいね!0