Merge branch 'dev_trustie' into dev_chain
This commit is contained in:
commit
f6739a9502
|
@ -132,8 +132,8 @@ class RepositoriesController < ApplicationController
|
|||
@tags_count = Gitea::Repository::Tags::ListService.new(current_user&.gitea_token, @project.owner.login, @project.identifier).call&.size
|
||||
|
||||
latest_commit = get_latest_commit
|
||||
@latest_commit = latest_commit[:body][0]
|
||||
@commits_count = latest_commit[:total_count]
|
||||
@latest_commit = latest_commit[:body][0] if latest_commit.present?
|
||||
@commits_count = latest_commit[:total_count] if latest_commit.present?
|
||||
end
|
||||
|
||||
def get_ref
|
||||
|
|
|
@ -35,6 +35,7 @@ module ProjectsHelper
|
|||
tmp_json = tmp_json.merge({
|
||||
mirror_status: repo.mirror_status,
|
||||
mirror_num: repo.mirror_num,
|
||||
mirror_url: repo.mirror_url,
|
||||
first_sync: repo.first_sync?
|
||||
})
|
||||
end
|
||||
|
@ -43,6 +44,7 @@ module ProjectsHelper
|
|||
identifier: project.identifier,
|
||||
name: project.name,
|
||||
id: project.id,
|
||||
type: project.numerical_for_project_type,
|
||||
author: {
|
||||
login: project.owner.login,
|
||||
name: project.owner.real_name,
|
||||
|
|
Loading…
Reference in New Issue