Some small optimisation
This commit is contained in:
parent
aba7b8f8b1
commit
0e73eb6c41
@ -252,11 +252,11 @@ GEM
|
|||||||
ruby_parser (3.5.0)
|
ruby_parser (3.5.0)
|
||||||
sexp_processor (~> 4.1)
|
sexp_processor (~> 4.1)
|
||||||
sass (3.2.19)
|
sass (3.2.19)
|
||||||
sass-rails (4.0.3)
|
sass-rails (4.0.2)
|
||||||
railties (>= 4.0.0, < 5.0)
|
railties (>= 4.0.0, < 5.0)
|
||||||
sass (~> 3.2.0)
|
sass (~> 3.2.0)
|
||||||
sprockets (~> 2.8, <= 2.11.0)
|
sprockets (~> 2.8, <= 2.11.0)
|
||||||
sprockets-rails (~> 2.0)
|
sprockets-rails (~> 2.0.0)
|
||||||
sdoc (0.4.1)
|
sdoc (0.4.1)
|
||||||
json (~> 1.7, >= 1.7.7)
|
json (~> 1.7, >= 1.7.7)
|
||||||
rdoc (~> 4.0)
|
rdoc (~> 4.0)
|
||||||
@ -275,7 +275,7 @@ GEM
|
|||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
rack (~> 1.0)
|
rack (~> 1.0)
|
||||||
tilt (~> 1.1, != 1.3.0)
|
tilt (~> 1.1, != 1.3.0)
|
||||||
sprockets-rails (2.1.3)
|
sprockets-rails (2.0.1)
|
||||||
actionpack (>= 3.0)
|
actionpack (>= 3.0)
|
||||||
activesupport (>= 3.0)
|
activesupport (>= 3.0)
|
||||||
sprockets (~> 2.8)
|
sprockets (~> 2.8)
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
class TagsController < InheritedResources::Base
|
class TagsController < InheritedResources::Base
|
||||||
def index
|
def index
|
||||||
@tags = Event
|
@tags = Event
|
||||||
.pluck(:tags)
|
.pluck(:tags).map { |e| e.split }.flatten
|
||||||
.join(' ').split.group_by { |i| i }
|
.group_by { |i| i }
|
||||||
.reject { |_k, v| v.size < 2 }
|
|
||||||
.map { |k, v| [k, v.size] }
|
.map { |k, v| [k, v.size] }
|
||||||
|
.reject { |_k, v| v < 2 }
|
||||||
.sort
|
.sort
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
-# Seems necessary, for the time being, to ensure calendar is changing days correctly
|
-# Seems necessary, for the time being, to ensure calendar is changing days correctly
|
||||||
- Time.zone = 'Paris'
|
- Time.zone = 'Paris'
|
||||||
|
|
||||||
%nav.region_selector= render '/regions/selector'
|
= render '/regions/selector'
|
||||||
|
|
||||||
= render '/lugs/search'
|
= render '/lugs/search'
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
-# Display the currently selected region
|
%nav.region_selector
|
||||||
%h3
|
-# Display the currently selected region
|
||||||
|
%h3
|
||||||
- if params[:region]
|
- if params[:region]
|
||||||
= Region.find params[:region]
|
= Region.find params[:region]
|
||||||
%em.fa.fa-chevron-down
|
%em.fa.fa-chevron-down
|
||||||
@ -8,8 +9,8 @@
|
|||||||
=t '.all_regions'
|
=t '.all_regions'
|
||||||
%em.fa.fa-chevron-down
|
%em.fa.fa-chevron-down
|
||||||
|
|
||||||
-# Choose a region to filter events with
|
-# Choose a region to filter events with
|
||||||
%ul
|
%ul
|
||||||
%li
|
%li
|
||||||
= link_to t('.all_regions'), region: nil,
|
= link_to t('.all_regions'), region: nil,
|
||||||
start_date: params[:start_date],
|
start_date: params[:start_date],
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
\/
|
\/
|
||||||
= link_to :ical, events_url(format: :ics, tag: tag[0])
|
= link_to :ical, events_url(format: :ics, tag: tag[0])
|
||||||
|
|
||||||
%p Seuls les tags portants sur plus d'un évènement sont affichés dans cette liste.
|
%p=t '.limited'
|
||||||
|
@ -198,6 +198,7 @@ Exemple: `%{daylimit}`"
|
|||||||
tags:
|
tags:
|
||||||
index:
|
index:
|
||||||
title: Tags
|
title: Tags
|
||||||
|
limited: Seuls les tags portants sur plus d'un évènement sont affichés dans cette liste.
|
||||||
show:
|
show:
|
||||||
title: Les événements
|
title: Les événements
|
||||||
future:
|
future:
|
||||||
|
Loading…
Reference in New Issue
Block a user