This commit is contained in:
caishi 2019-11-11 15:40:45 +08:00
commit 06e60fc853
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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>