更改:创建项目错误返回-1以及项目活跃度排行榜排名改为全局排名
This commit is contained in:
parent
26263ba5bb
commit
4d4a98c3b7
|
@ -64,7 +64,8 @@ class ProjectsController < ApplicationController
|
|||
end
|
||||
rescue Gitea::Api::ServerError => ex
|
||||
uid_logger_error(ex.message)
|
||||
tip_exception(ex.http_code, ex.message)
|
||||
# tip_exception(ex.http_code, ex.message)
|
||||
tip_exception(ex.message)
|
||||
rescue ApplicationService::Error => e
|
||||
uid_logger_error(e.message)
|
||||
tip_exception(e.message)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<tbody>
|
||||
<% statistics.each_with_index do |item, index| %>
|
||||
<tr class="">
|
||||
<td><%= index + 1%></td>
|
||||
<td><%= list_index_no((params[:page] || 1).to_i, index) %></td>
|
||||
<td>
|
||||
<a target="_blank" href="<%= "/#{item&.project&.owner&.login}/#{item&.project&.identifier}"%>">
|
||||
<%= "#{item&.project&.owner&.real_name}/#{item&.project&.name}" %>
|
||||
|
|
Loading…
Reference in New Issue