change repository images error

This commit is contained in:
sylor_huang@126.com
2020-06-23 14:56:53 +08:00
parent 3e64f4ae97
commit 4facaf7076
3 changed files with 34 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ class RepositoriesController < ApplicationController
@project_owner = @project.owner
@entries = Gitea::Repository::Entries::ListService.new(@project_owner, @project.identifier, ref: @ref).call
@entries = @entries.sort_by{ |hash| hash['type'] }
@path = Gitea.gitea_config[:domain]+"/#{@project.owner.login}/#{@project.identifier}/raw/branch/#{@ref}/"
end
def sub_entries