Commit graph

6 commits

Author SHA1 Message Date
winniehell
ae9f0ca818 Add failing test for #20462 2016-08-02 03:32:28 +02:00
Rémy Coutable
fe25d1d5cf Fix specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-08-01 13:24:06 +02:00
Herminio Torres
94e6d51ec0
Fix the title of the toggle dropdown button
Before when you choose the way of `sort` instead it display the title correctly it was just apply the humanize helper in sort value.

E.g.

When you choose `Last updated` it should display the title `Last updated` instead of `Recently updated`. This fix makes this correctly displays the title.

Change the implementation of the `link_to` `filter_branches_path`

- Change the value of the `params[:sort]` in `link_to`. E.g. instead of using `'recently_updated'` is now using `sort_value_recently_updated`.

- Change the values of the case in the `branches_sorted_by` method for the values it receives in the `params[:sort]` that are: `nil`, `'name'`, `'updated_desc'`, `'updated_asc'`.
2016-07-28 12:20:57 -03:00
Rémy Coutable
939436480c Ensure relative paths for video are rewritten as we do for images
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-26 10:22:17 +02:00
tiagonbotelho
1c39395964 refactors the search to enable users to filter and sort branches at the
same time and writes tests accordingly

changes schema.db

removes duplicate field inside CHANGELOG

fix db/schema
2016-07-19 19:30:10 +01:00
tiagonbotelho
766f9cf220 implements the basic filter functionality 2016-07-19 19:30:10 +01:00