/redmine_smile_three_sortings

Redmine plugin that adds a second and third possible sort, and a remove sort link

Primary LanguageRubyGNU General Public License v2.0GPL-2.0

redmine_smile_three_sortings

Redmine plugin that adds a second and third possible sort, and a remove sort link

How it works

  • REWRITES QueryHelper.column_header
  • REWRITES SortHelper.sort_link
  • New methods added to Redmine::SortCriteria :
    • second_key, second_asc?
    • third_key, third_asc?
    • delete!, delete
  • New Application Helper needs_sort_css? to determine if the css file for sorts is necessary
  • Hook call to include css file in layout (view_layouts_base_html_head)

Views where three sorts can be used :

  • Issues list (issues/_list)
  • Time entries list (timelog/_list)
  • My page issues blocks (my/blocks/_issues)
  • Board (boards/show)
  • Files list (files/index)
  • Users list (users/index)
  • Smile specific (used in Smile plugin) : ** Journals history list (journals_history/index) ** Weekly history list (weekly_history/index) ** Version workloads list (version_workloads/index)

Changelog

  • V1.0.2 Compatibility with RM V4.1+ #31433 of RM.org for RM > 4.1

Enjoy !