fix
This commit is contained in:
commit
06e60fc853
|
@ -2448,7 +2448,7 @@ class UsersController < ApplicationController
|
|||
|
||||
scope = scope.like(@search).by_language_id(@language)
|
||||
.includes(:project_language, :members, owner: :user_extensions)
|
||||
.select("id, name, user_id, description, updated_on, visits, project_language_id")
|
||||
.select("id, name, user_id, description, created_on, visits, project_language_id")
|
||||
|
||||
scope = scope.visible if @user != current_user
|
||||
scope = filter_with_status(@project_status, scope)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<div>
|
||||
<p class="lh25 mb10 clearfix">
|
||||
<span class="mr20 f16 color-grey3"><%= link_to project.name, project_path(project) %></span>
|
||||
<span class="fontGrey4 f12"><%= time_from_now(project.updated_on) %></span>
|
||||
<span class="fontGrey4 f12"><%= time_from_now(project.created_on) %></span>
|
||||
<span class="fr">
|
||||
<span class="mr30 fontGrey4 fl mt7">浏览量:<%= project.visits %></span>
|
||||
<span class="typeTag"><%= project.project_language&.name %></span>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
<div class="clearfix r_list_search">
|
||||
<span class="fl r_list_action">
|
||||
<a href="<%= user_project_community_path(:project_status => @project_status,
|
||||
:language => @language, :order => 'updated_on') %>" data-remote="true" class="<%= @order == 'updated_on'? 'active' : '' %>">最新</a>
|
||||
:language => @language, :order => 'created_on') %>" data-remote="true" class="<%= @order == 'created_on'? 'active' : '' %>">最新</a>
|
||||
<a href="<%= user_project_community_path(:project_status => @project_status,
|
||||
:language => @language, :order => 'member_count') %>" data-remote="true" class="<%= @order == 'member_count'? 'active' : '' %>">最热</a>
|
||||
</span>
|
||||
|
|
Loading…
Reference in New Issue