Merge branch 'develop' into standalone_develop
This commit is contained in:
commit
6dc06fc088
|
@ -7,7 +7,7 @@ class IssueTagsController < ApplicationController
|
|||
|
||||
|
||||
def index
|
||||
issue_tags = @project.issue_tags.reorder("#{order_name} #{order_type}")
|
||||
issue_tags = @project.issue_tags.includes(:issues).reorder("issue_tags.#{order_name} #{order_type}")
|
||||
@user_admin_or_member = current_user.present? && (current_user.admin || @project.member?(current_user))
|
||||
@page = params[:page] || 1
|
||||
@limit = params[:limit] || 15
|
||||
|
|
|
@ -4,6 +4,7 @@ json.user_admin_or_member @user_admin_or_member
|
|||
json.issue_tags do
|
||||
|
||||
json.array! @issue_tags.each.to_a do |tag|
|
||||
json.extract! tag, :id, :name, :description, :color, :issues_count, :project_id, :gid, :gitea_url
|
||||
json.extract! tag, :id, :name, :description, :color, :project_id, :gid, :gitea_url
|
||||
json.issues_count tag.issues_count - tag.issues.closed.size
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue