mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
update issue index render
This commit is contained in:
@@ -75,9 +75,8 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
|||||||
render "api/v1/issues/statues/index"
|
render "api/v1/issues/statues/index"
|
||||||
end
|
end
|
||||||
|
|
||||||
def pm_index
|
def count
|
||||||
@issue_tags = IssueTag.init_mp_issues_tags
|
|
||||||
render_ok(@issue_tags)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
|||||||
@@ -9,6 +9,12 @@ json.status_name issue.issue_status&.name
|
|||||||
json.priority_name issue.priority&.name
|
json.priority_name issue.priority&.name
|
||||||
json.milestone_name issue.version&.name
|
json.milestone_name issue.version&.name
|
||||||
json.milestone_id issue.fixed_version_id
|
json.milestone_id issue.fixed_version_id
|
||||||
|
json.parent_id issue.parent_id
|
||||||
|
json.pm_issue_type issue.pm_issue_type
|
||||||
|
json.pm_sprint_id issue.pm_sprint_id
|
||||||
|
json.pm_project_id issue.pm_project_id
|
||||||
|
json.time_scale issue.time_scale
|
||||||
|
|
||||||
json.author do
|
json.author do
|
||||||
if issue.user.present?
|
if issue.user.present?
|
||||||
json.partial! "api/v1/users/simple_user", locals: {user: issue.user}
|
json.partial! "api/v1/users/simple_user", locals: {user: issue.user}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ defaults format: :json do
|
|||||||
get :priorities
|
get :priorities
|
||||||
get :tags
|
get :tags
|
||||||
get :statues
|
get :statues
|
||||||
|
get :count
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :journals do
|
resources :journals do
|
||||||
|
|||||||
Reference in New Issue
Block a user