1# frozen_string_literal: true
2
3module SortingTitlesValuesHelper
4  # Titles.
5  def sort_title_created_date
6    s_('SortOptions|Created date')
7  end
8
9  def sort_title_downvotes
10    s_('SortOptions|Least popular')
11  end
12
13  def sort_title_due_date
14    s_('SortOptions|Due date')
15  end
16
17  def sort_title_due_date_later
18    s_('SortOptions|Due later')
19  end
20
21  def sort_title_due_date_soon
22    s_('SortOptions|Due soon')
23  end
24
25  def sort_title_label_priority
26    s_('SortOptions|Label priority')
27  end
28
29  def sort_title_merged_date
30    s_('SortOptions|Merged date')
31  end
32
33  def sort_title_merged_recently
34    s_('SortOptions|Merged recently')
35  end
36
37  def sort_title_merged_earlier
38    s_('SortOptions|Merged earlier')
39  end
40
41  def sort_title_closed_date
42    s_('SortOptions|Closed date')
43  end
44
45  def sort_title_closed_recently
46    s_('SortOptions|Closed recently')
47  end
48
49  def sort_title_closed_earlier
50    s_('SortOptions|Closed earlier')
51  end
52
53  def sort_title_largest_group
54    s_('SortOptions|Largest group')
55  end
56
57  def sort_title_largest_repo
58    s_('SortOptions|Largest repository')
59  end
60
61  def sort_title_latest_activity
62    s_('SortOptions|Last updated')
63  end
64
65  def sort_title_milestone
66    s_('SortOptions|Milestone due date')
67  end
68
69  def sort_title_milestone_later
70    s_('SortOptions|Milestone due later')
71  end
72
73  def sort_title_milestone_soon
74    s_('SortOptions|Milestone due soon')
75  end
76
77  def sort_title_name
78    s_('SortOptions|Name')
79  end
80
81  def sort_title_name_asc
82    s_('SortOptions|Name, ascending')
83  end
84
85  def sort_title_name_desc
86    s_('SortOptions|Name, descending')
87  end
88
89  def sort_title_oldest_activity
90    s_('SortOptions|Oldest updated')
91  end
92
93  def sort_title_oldest_created
94    s_('SortOptions|Oldest created')
95  end
96
97  def sort_title_oldest_signin
98    s_('SortOptions|Oldest sign in')
99  end
100
101  def sort_title_oldest_starred
102    s_('SortOptions|Oldest starred')
103  end
104
105  def sort_title_oldest_updated
106    s_('SortOptions|Oldest updated')
107  end
108
109  def sort_title_popularity
110    s_('SortOptions|Popularity')
111  end
112
113  def sort_title_priority
114    s_('SortOptions|Priority')
115  end
116
117  def sort_title_recently_created
118    s_('SortOptions|Last created')
119  end
120
121  def sort_title_recently_signin
122    s_('SortOptions|Recent sign in')
123  end
124
125  def sort_title_recently_starred
126    s_('SortOptions|Recently starred')
127  end
128
129  def sort_title_recently_updated
130    s_('SortOptions|Last updated')
131  end
132
133  def sort_title_start_date_later
134    s_('SortOptions|Start later')
135  end
136
137  def sort_title_start_date_soon
138    s_('SortOptions|Start soon')
139  end
140
141  def sort_title_title
142    s_('SortOptions|Title')
143  end
144
145  def sort_title_upvotes
146    s_('SortOptions|Most popular')
147  end
148
149  def sort_title_contacted_date
150    s_('SortOptions|Last Contact')
151  end
152
153  def sort_title_most_stars
154    s_('SortOptions|Most stars')
155  end
156
157  def sort_title_stars
158    s_('SortOptions|Stars')
159  end
160
161  def sort_title_oldest_last_activity
162    s_('SortOptions|Oldest last activity')
163  end
164
165  def sort_title_recently_last_activity
166    s_('SortOptions|Recent last activity')
167  end
168
169  def sort_title_relative_position
170    s_('SortOptions|Manual')
171  end
172
173  def sort_title_size
174    s_('SortOptions|Size')
175  end
176
177  def sort_title_expire_date
178    s_('SortOptions|Expired date')
179  end
180
181  # Values.
182  def sort_value_created_date
183    'created_date'
184  end
185
186  def sort_value_downvotes
187    'downvotes_desc'
188  end
189
190  def sort_value_due_date
191    'due_date'
192  end
193
194  def sort_value_due_date_later
195    'due_date_desc'
196  end
197
198  def sort_value_due_date_soon
199    'due_date_asc'
200  end
201
202  def sort_value_label_priority
203    'label_priority'
204  end
205
206  def sort_value_merged_date
207    'merged_at'
208  end
209
210  def sort_value_merged_recently
211    'merged_at_desc'
212  end
213
214  def sort_value_merged_earlier
215    'merged_at_asc'
216  end
217
218  def sort_value_closed_date
219    'closed_at'
220  end
221
222  def sort_value_closed_recently
223    'closed_at_desc'
224  end
225
226  def sort_value_closed_earlier
227    'closed_at_asc'
228  end
229
230  def sort_value_largest_group
231    'storage_size_desc'
232  end
233
234  def sort_value_largest_repo
235    'storage_size_desc'
236  end
237
238  def sort_value_latest_activity
239    'latest_activity_desc'
240  end
241
242  def sort_value_milestone
243    'milestone'
244  end
245
246  def sort_value_milestone_later
247    'milestone_due_desc'
248  end
249
250  def sort_value_milestone_soon
251    'milestone_due_asc'
252  end
253
254  def sort_value_name
255    'name_asc'
256  end
257
258  def sort_value_name_desc
259    'name_desc'
260  end
261
262  def sort_value_oldest_activity
263    'latest_activity_asc'
264  end
265
266  def sort_value_oldest_created
267    'created_asc'
268  end
269
270  def sort_value_oldest_signin
271    'oldest_sign_in'
272  end
273
274  def sort_value_oldest_updated
275    'updated_asc'
276  end
277
278  def sort_value_popularity
279    'popularity'
280  end
281
282  def sort_value_most_popular
283    'popularity_desc'
284  end
285
286  def sort_value_least_popular
287    'popularity_asc'
288  end
289
290  def sort_value_priority
291    'priority'
292  end
293
294  def sort_value_recently_created
295    'created_desc'
296  end
297
298  def sort_value_recently_signin
299    'recent_sign_in'
300  end
301
302  def sort_value_recently_updated
303    'updated_desc'
304  end
305
306  def sort_value_start_date_later
307    'start_date_desc'
308  end
309
310  def sort_value_start_date_soon
311    'start_date_asc'
312  end
313
314  def sort_value_title
315    'title_asc'
316  end
317
318  def sort_value_title_desc
319    'title_desc'
320  end
321
322  def sort_value_upvotes
323    'upvotes_desc'
324  end
325
326  def sort_value_contacted_date
327    'contacted_asc'
328  end
329
330  def sort_value_stars_desc
331    'stars_desc'
332  end
333
334  def sort_value_stars_asc
335    'stars_asc'
336  end
337
338  def sort_value_oldest_last_activity
339    'last_activity_on_asc'
340  end
341
342  def sort_value_recently_last_activity
343    'last_activity_on_desc'
344  end
345
346  def sort_value_relative_position
347    'relative_position'
348  end
349
350  def sort_value_size
351    'size_desc'
352  end
353
354  def sort_value_expire_date
355    'expired_asc'
356  end
357end
358
359SortingHelper.include_mod_with('SortingTitlesValuesHelper')
360