mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Teams ordering fixed
This commit is contained in:
parent
9a9088a0da
commit
1bb54d20cf
2 changed files with 5 additions and 5 deletions
|
@ -69,7 +69,7 @@ class GlobalActivitiesController < ApplicationController
|
|||
end
|
||||
|
||||
def team_filter
|
||||
render json: current_user.teams.global_activity_filter(activity_filters, params[:query])
|
||||
render json: current_user.teams.order('LOWER(name)').global_activity_filter(activity_filters, params[:query])
|
||||
end
|
||||
|
||||
def user_filter
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<%= hidden_field(:user, :current_team_id) %>
|
||||
<div class="dropdown-header"><%= t('nav.team_switch_title') %></div>
|
||||
<div class="team-container">
|
||||
<% current_user.teams.each do |team| %>
|
||||
<% current_user.teams.order('LOWER(name)').each do |team| %>
|
||||
<li class="team-name-item">
|
||||
<a href="#"
|
||||
data-id="<%= team.id %>"
|
||||
|
@ -191,9 +191,9 @@
|
|||
</li>
|
||||
<li>
|
||||
<%= link_to Constants::ACADEMY_TR_LINK,
|
||||
class: "academy-link flag",
|
||||
title: I18n.t('nav.academy_tooltip'),
|
||||
target: :_blank do
|
||||
class: "academy-link flag",
|
||||
title: I18n.t('nav.academy_tooltip'),
|
||||
target: :_blank do
|
||||
%>
|
||||
<div class="icon-container">
|
||||
<span class="fas fa-graduation-cap"></span>
|
||||
|
|
Loading…
Reference in a new issue