Feature #20134 » redmine.diff
| app/models/issue_query.rb | ||
|---|---|---|
|
project_values = []
|
||
|
if User.current.logged? && User.current.memberships.any?
|
||
|
project_values << ["<< #{l(:label_my_projects).downcase} >>", "mine"]
|
||
|
project_values << ["<< #{l(:label_opened_projects).downcase} >>", "opened"]
|
||
|
end
|
||
|
project_values += all_projects_values
|
||
|
add_available_filter("project_id",
|
||
| app/models/query.rb | ||
|---|---|---|
|
if v.delete('mine')
|
||
|
v += User.current.memberships.map(&:project_id).map(&:to_s)
|
||
|
end
|
||
|
if v.delete('opened')
|
||
|
v += User.current.memberships.joins(:project).
|
||
|
where(projects: { status: Project::STATUS_ACTIVE }).
|
||
|
map(&:project_id).
|
||
|
map(&:to_s)
|
||
|
end
|
||
|
end
|
||
|
if field =~ /cf_(\d+)$/
|
||
| config/locales/en.yml | ||
|---|---|---|
|
label_my_page: My page
|
||
|
label_my_account: My account
|
||
|
label_my_projects: My projects
|
||
|
label_opened_projects: My Opened projects
|
||
|
label_my_page_block: My page block
|
||
|
label_administration: Administration
|
||
|
label_login: Sign in
|
||
| config/locales/pl.yml | ||
|---|---|---|
|
label_my_account: Moje konto
|
||
|
label_my_page: Moja strona
|
||
|
label_my_projects: Moje projekty
|
||
|
label_opened_projects: Moje Otwarte Projekty
|
||
|
label_new: Nowy
|
||
|
label_new_statuses_allowed: Uprawnione nowe statusy
|
||
|
label_news: Komunikat
|
||