##// END OF EJS Templates
Adds filters for custom fields related to the project and user of time entries (#10191)....
Jean-Philippe Lang -
r10744:60088ed5a304
parent child
Show More
@@ -88,6 +88,7 class TimeEntryQuery < Query
88 } unless activities.empty?
88 } unless activities.empty?
89
89
90 add_custom_fields_filters(TimeEntryCustomField.where(:is_filter => true).all)
90 add_custom_fields_filters(TimeEntryCustomField.where(:is_filter => true).all)
91 add_associations_custom_fields_filters :project, :user
91
92
92 @available_filters.each do |field, options|
93 @available_filters.each do |field, options|
93 options[:name] ||= l(options[:label] || "field_#{field}".gsub(/_id$/, ''))
94 options[:name] ||= l(options[:label] || "field_#{field}".gsub(/_id$/, ''))
@@ -1081,3 +1081,4 ar:
1081 setting_non_working_week_days: Non-working days
1081 setting_non_working_week_days: Non-working days
1082 label_in_the_next_days: in the next
1082 label_in_the_next_days: in the next
1083 label_in_the_past_days: in the past
1083 label_in_the_past_days: in the past
1084 label_attribute_of_user: User's %{name}
@@ -1079,3 +1079,4 bg:
1079 description_date_from: Въведете начална дата
1079 description_date_from: Въведете начална дата
1080 description_date_to: Въведете крайна дата
1080 description_date_to: Въведете крайна дата
1081 text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
1081 text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
1082 label_attribute_of_user: User's %{name}
@@ -1094,3 +1094,4 bs:
1094 setting_non_working_week_days: Non-working days
1094 setting_non_working_week_days: Non-working days
1095 label_in_the_next_days: in the next
1095 label_in_the_next_days: in the next
1096 label_in_the_past_days: in the past
1096 label_in_the_past_days: in the past
1097 label_attribute_of_user: User's %{name}
@@ -1083,3 +1083,4 ca:
1083 setting_non_working_week_days: Non-working days
1083 setting_non_working_week_days: Non-working days
1084 label_in_the_next_days: in the next
1084 label_in_the_next_days: in the next
1085 label_in_the_past_days: in the past
1085 label_in_the_past_days: in the past
1086 label_attribute_of_user: User's %{name}
@@ -1084,3 +1084,4 cs:
1084 setting_non_working_week_days: Non-working days
1084 setting_non_working_week_days: Non-working days
1085 label_in_the_next_days: in the next
1085 label_in_the_next_days: in the next
1086 label_in_the_past_days: in the past
1086 label_in_the_past_days: in the past
1087 label_attribute_of_user: User's %{name}
@@ -1098,3 +1098,4 da:
1098 setting_non_working_week_days: Non-working days
1098 setting_non_working_week_days: Non-working days
1099 label_in_the_next_days: in the next
1099 label_in_the_next_days: in the next
1100 label_in_the_past_days: in the past
1100 label_in_the_past_days: in the past
1101 label_attribute_of_user: User's %{name}
@@ -1097,3 +1097,4 de:
1097 setting_non_working_week_days: Arbeitsfreie Tage
1097 setting_non_working_week_days: Arbeitsfreie Tage
1098 label_in_the_next_days: in den nächsten
1098 label_in_the_next_days: in den nächsten
1099 label_in_the_past_days: in den letzten
1099 label_in_the_past_days: in den letzten
1100 label_attribute_of_user: User's %{name}
@@ -1081,3 +1081,4 el:
1081 setting_non_working_week_days: Non-working days
1081 setting_non_working_week_days: Non-working days
1082 label_in_the_next_days: in the next
1082 label_in_the_next_days: in the next
1083 label_in_the_past_days: in the past
1083 label_in_the_past_days: in the past
1084 label_attribute_of_user: User's %{name}
@@ -1083,3 +1083,4 en-GB:
1083 setting_non_working_week_days: Non-working days
1083 setting_non_working_week_days: Non-working days
1084 label_in_the_next_days: in the next
1084 label_in_the_next_days: in the next
1085 label_in_the_past_days: in the past
1085 label_in_the_past_days: in the past
1086 label_attribute_of_user: User's %{name}
@@ -884,6 +884,7 en:
884 label_attribute_of_project: "Project's %{name}"
884 label_attribute_of_project: "Project's %{name}"
885 label_attribute_of_author: "Author's %{name}"
885 label_attribute_of_author: "Author's %{name}"
886 label_attribute_of_assigned_to: "Assignee's %{name}"
886 label_attribute_of_assigned_to: "Assignee's %{name}"
887 label_attribute_of_user: "User's %{name}"
887 label_attribute_of_fixed_version: "Target version's %{name}"
888 label_attribute_of_fixed_version: "Target version's %{name}"
888 label_cross_project_descendants: With subprojects
889 label_cross_project_descendants: With subprojects
889 label_cross_project_tree: With project tree
890 label_cross_project_tree: With project tree
@@ -1118,3 +1118,4 es:
1118 setting_non_working_week_days: Non-working days
1118 setting_non_working_week_days: Non-working days
1119 label_in_the_next_days: in the next
1119 label_in_the_next_days: in the next
1120 label_in_the_past_days: in the past
1120 label_in_the_past_days: in the past
1121 label_attribute_of_user: User's %{name}
@@ -1094,3 +1094,4 et:
1094 setting_non_working_week_days: Non-working days
1094 setting_non_working_week_days: Non-working days
1095 label_in_the_next_days: in the next
1095 label_in_the_next_days: in the next
1096 label_in_the_past_days: in the past
1096 label_in_the_past_days: in the past
1097 label_attribute_of_user: User's %{name}
@@ -1082,3 +1082,4 eu:
1082 setting_non_working_week_days: Non-working days
1082 setting_non_working_week_days: Non-working days
1083 label_in_the_next_days: in the next
1083 label_in_the_next_days: in the next
1084 label_in_the_past_days: in the past
1084 label_in_the_past_days: in the past
1085 label_attribute_of_user: User's %{name}
@@ -1083,3 +1083,4 fa:
1083 setting_non_working_week_days: Non-working days
1083 setting_non_working_week_days: Non-working days
1084 label_in_the_next_days: in the next
1084 label_in_the_next_days: in the next
1085 label_in_the_past_days: in the past
1085 label_in_the_past_days: in the past
1086 label_attribute_of_user: User's %{name}
@@ -1102,3 +1102,4 fi:
1102 setting_non_working_week_days: Non-working days
1102 setting_non_working_week_days: Non-working days
1103 label_in_the_next_days: in the next
1103 label_in_the_next_days: in the next
1104 label_in_the_past_days: in the past
1104 label_in_the_past_days: in the past
1105 label_attribute_of_user: User's %{name}
@@ -859,6 +859,7 fr:
859 label_attribute_of_project: "%{name} du projet"
859 label_attribute_of_project: "%{name} du projet"
860 label_attribute_of_author: "%{name} de l'auteur"
860 label_attribute_of_author: "%{name} de l'auteur"
861 label_attribute_of_assigned_to: "%{name} de l'assigné"
861 label_attribute_of_assigned_to: "%{name} de l'assigné"
862 label_attribute_of_user: "%{name} de l'utilisateur"
862 label_attribute_of_fixed_version: "%{name} de la version cible"
863 label_attribute_of_fixed_version: "%{name} de la version cible"
863 label_cross_project_descendants: Avec les sous-projets
864 label_cross_project_descendants: Avec les sous-projets
864 label_cross_project_tree: Avec tout l'arbre
865 label_cross_project_tree: Avec tout l'arbre
@@ -1092,3 +1092,4 gl:
1092 setting_non_working_week_days: Non-working days
1092 setting_non_working_week_days: Non-working days
1093 label_in_the_next_days: in the next
1093 label_in_the_next_days: in the next
1094 label_in_the_past_days: in the past
1094 label_in_the_past_days: in the past
1095 label_attribute_of_user: User's %{name}
@@ -1086,3 +1086,4 he:
1086 setting_non_working_week_days: Non-working days
1086 setting_non_working_week_days: Non-working days
1087 label_in_the_next_days: in the next
1087 label_in_the_next_days: in the next
1088 label_in_the_past_days: in the past
1088 label_in_the_past_days: in the past
1089 label_attribute_of_user: User's %{name}
@@ -1082,3 +1082,4 hr:
1082 setting_non_working_week_days: Non-working days
1082 setting_non_working_week_days: Non-working days
1083 label_in_the_next_days: in the next
1083 label_in_the_next_days: in the next
1084 label_in_the_past_days: in the past
1084 label_in_the_past_days: in the past
1085 label_attribute_of_user: User's %{name}
@@ -1100,3 +1100,4
1100 setting_non_working_week_days: Non-working days
1100 setting_non_working_week_days: Non-working days
1101 label_in_the_next_days: in the next
1101 label_in_the_next_days: in the next
1102 label_in_the_past_days: in the past
1102 label_in_the_past_days: in the past
1103 label_attribute_of_user: User's %{name}
@@ -1085,3 +1085,4 id:
1085 setting_non_working_week_days: Non-working days
1085 setting_non_working_week_days: Non-working days
1086 label_in_the_next_days: in the next
1086 label_in_the_next_days: in the next
1087 label_in_the_past_days: in the past
1087 label_in_the_past_days: in the past
1088 label_attribute_of_user: User's %{name}
@@ -1082,3 +1082,4 it:
1082 setting_non_working_week_days: Non-working days
1082 setting_non_working_week_days: Non-working days
1083 label_in_the_next_days: in the next
1083 label_in_the_next_days: in the next
1084 label_in_the_past_days: in the past
1084 label_in_the_past_days: in the past
1085 label_attribute_of_user: User's %{name}
@@ -1111,3 +1111,4 ja:
1111 setting_non_working_week_days: 休業日
1111 setting_non_working_week_days: 休業日
1112 label_in_the_next_days: 今後○日
1112 label_in_the_next_days: 今後○日
1113 label_in_the_past_days: 過去○日
1113 label_in_the_past_days: 過去○日
1114 label_attribute_of_user: User's %{name}
@@ -1131,3 +1131,4 ko:
1131 setting_non_working_week_days: Non-working days
1131 setting_non_working_week_days: Non-working days
1132 label_in_the_next_days: in the next
1132 label_in_the_next_days: in the next
1133 label_in_the_past_days: in the past
1133 label_in_the_past_days: in the past
1134 label_attribute_of_user: User's %{name}
@@ -1140,3 +1140,4 lt:
1140 setting_non_working_week_days: Nedarbo dienos
1140 setting_non_working_week_days: Nedarbo dienos
1141 label_in_the_next_days: per ateinančias
1141 label_in_the_next_days: per ateinančias
1142 label_in_the_past_days: per paskutines
1142 label_in_the_past_days: per paskutines
1143 label_attribute_of_user: User's %{name}
@@ -1075,3 +1075,4 lv:
1075 setting_non_working_week_days: Non-working days
1075 setting_non_working_week_days: Non-working days
1076 label_in_the_next_days: in the next
1076 label_in_the_next_days: in the next
1077 label_in_the_past_days: in the past
1077 label_in_the_past_days: in the past
1078 label_attribute_of_user: User's %{name}
@@ -1081,3 +1081,4 mk:
1081 setting_non_working_week_days: Non-working days
1081 setting_non_working_week_days: Non-working days
1082 label_in_the_next_days: in the next
1082 label_in_the_next_days: in the next
1083 label_in_the_past_days: in the past
1083 label_in_the_past_days: in the past
1084 label_attribute_of_user: User's %{name}
@@ -1082,3 +1082,4 mn:
1082 setting_non_working_week_days: Non-working days
1082 setting_non_working_week_days: Non-working days
1083 label_in_the_next_days: in the next
1083 label_in_the_next_days: in the next
1084 label_in_the_past_days: in the past
1084 label_in_the_past_days: in the past
1085 label_attribute_of_user: User's %{name}
@@ -1063,3 +1063,4 nl:
1063 setting_non_working_week_days: Non-working days
1063 setting_non_working_week_days: Non-working days
1064 label_in_the_next_days: in the next
1064 label_in_the_next_days: in the next
1065 label_in_the_past_days: in the past
1065 label_in_the_past_days: in the past
1066 label_attribute_of_user: User's %{name}
@@ -1071,3 +1071,4
1071 setting_non_working_week_days: Non-working days
1071 setting_non_working_week_days: Non-working days
1072 label_in_the_next_days: in the next
1072 label_in_the_next_days: in the next
1073 label_in_the_past_days: in the past
1073 label_in_the_past_days: in the past
1074 label_attribute_of_user: User's %{name}
@@ -1098,3 +1098,4 pl:
1098 setting_non_working_week_days: Non-working days
1098 setting_non_working_week_days: Non-working days
1099 label_in_the_next_days: in the next
1099 label_in_the_next_days: in the next
1100 label_in_the_past_days: in the past
1100 label_in_the_past_days: in the past
1101 label_attribute_of_user: User's %{name}
@@ -1102,3 +1102,4 pt-BR:
1102 setting_non_working_week_days: Non-working days
1102 setting_non_working_week_days: Non-working days
1103 label_in_the_next_days: in the next
1103 label_in_the_next_days: in the next
1104 label_in_the_past_days: in the past
1104 label_in_the_past_days: in the past
1105 label_attribute_of_user: User's %{name}
@@ -1086,3 +1086,4 pt:
1086 setting_non_working_week_days: Non-working days
1086 setting_non_working_week_days: Non-working days
1087 label_in_the_next_days: in the next
1087 label_in_the_next_days: in the next
1088 label_in_the_past_days: in the past
1088 label_in_the_past_days: in the past
1089 label_attribute_of_user: User's %{name}
@@ -1078,3 +1078,4 ro:
1078 setting_non_working_week_days: Non-working days
1078 setting_non_working_week_days: Non-working days
1079 label_in_the_next_days: in the next
1079 label_in_the_next_days: in the next
1080 label_in_the_past_days: in the past
1080 label_in_the_past_days: in the past
1081 label_attribute_of_user: User's %{name}
@@ -1194,3 +1194,4 ru:
1194 setting_non_working_week_days: Non-working days
1194 setting_non_working_week_days: Non-working days
1195 label_in_the_next_days: in the next
1195 label_in_the_next_days: in the next
1196 label_in_the_past_days: in the past
1196 label_in_the_past_days: in the past
1197 label_attribute_of_user: User's %{name}
@@ -1081,3 +1081,4 sk:
1081 setting_non_working_week_days: Non-working days
1081 setting_non_working_week_days: Non-working days
1082 label_in_the_next_days: in the next
1082 label_in_the_next_days: in the next
1083 label_in_the_past_days: in the past
1083 label_in_the_past_days: in the past
1084 label_attribute_of_user: User's %{name}
@@ -1081,3 +1081,4 sl:
1081 setting_non_working_week_days: Non-working days
1081 setting_non_working_week_days: Non-working days
1082 label_in_the_next_days: in the next
1082 label_in_the_next_days: in the next
1083 label_in_the_past_days: in the past
1083 label_in_the_past_days: in the past
1084 label_attribute_of_user: User's %{name}
@@ -1077,3 +1077,4 sq:
1077 setting_non_working_week_days: Non-working days
1077 setting_non_working_week_days: Non-working days
1078 label_in_the_next_days: in the next
1078 label_in_the_next_days: in the next
1079 label_in_the_past_days: in the past
1079 label_in_the_past_days: in the past
1080 label_attribute_of_user: User's %{name}
@@ -1083,3 +1083,4 sr-YU:
1083 setting_non_working_week_days: Non-working days
1083 setting_non_working_week_days: Non-working days
1084 label_in_the_next_days: in the next
1084 label_in_the_next_days: in the next
1085 label_in_the_past_days: in the past
1085 label_in_the_past_days: in the past
1086 label_attribute_of_user: User's %{name}
@@ -1082,3 +1082,4 sr:
1082 setting_non_working_week_days: Non-working days
1082 setting_non_working_week_days: Non-working days
1083 label_in_the_next_days: in the next
1083 label_in_the_next_days: in the next
1084 label_in_the_past_days: in the past
1084 label_in_the_past_days: in the past
1085 label_attribute_of_user: User's %{name}
@@ -1119,3 +1119,4 sv:
1119 setting_non_working_week_days: Non-working days
1119 setting_non_working_week_days: Non-working days
1120 label_in_the_next_days: in the next
1120 label_in_the_next_days: in the next
1121 label_in_the_past_days: in the past
1121 label_in_the_past_days: in the past
1122 label_attribute_of_user: User's %{name}
@@ -1078,3 +1078,4 th:
1078 setting_non_working_week_days: Non-working days
1078 setting_non_working_week_days: Non-working days
1079 label_in_the_next_days: in the next
1079 label_in_the_next_days: in the next
1080 label_in_the_past_days: in the past
1080 label_in_the_past_days: in the past
1081 label_attribute_of_user: User's %{name}
@@ -1100,3 +1100,4 tr:
1100 setting_non_working_week_days: Non-working days
1100 setting_non_working_week_days: Non-working days
1101 label_in_the_next_days: in the next
1101 label_in_the_next_days: in the next
1102 label_in_the_past_days: in the past
1102 label_in_the_past_days: in the past
1103 label_attribute_of_user: User's %{name}
@@ -1076,3 +1076,4 uk:
1076 setting_non_working_week_days: Non-working days
1076 setting_non_working_week_days: Non-working days
1077 label_in_the_next_days: in the next
1077 label_in_the_next_days: in the next
1078 label_in_the_past_days: in the past
1078 label_in_the_past_days: in the past
1079 label_attribute_of_user: User's %{name}
@@ -1132,3 +1132,4 vi:
1132 setting_non_working_week_days: Non-working days
1132 setting_non_working_week_days: Non-working days
1133 label_in_the_next_days: in the next
1133 label_in_the_next_days: in the next
1134 label_in_the_past_days: in the past
1134 label_in_the_past_days: in the past
1135 label_attribute_of_user: User's %{name}
@@ -1162,3 +1162,4
1162 description_date_from: 輸入起始日期
1162 description_date_from: 輸入起始日期
1163 description_date_to: 輸入結束日期
1163 description_date_to: 輸入結束日期
1164 text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
1164 text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
1165 label_attribute_of_user: User's %{name}
@@ -1085,3 +1085,4 zh:
1085 setting_non_working_week_days: Non-working days
1085 setting_non_working_week_days: Non-working days
1086 label_in_the_next_days: in the next
1086 label_in_the_next_days: in the next
1087 label_in_the_past_days: in the past
1087 label_in_the_past_days: in the past
1088 label_attribute_of_user: User's %{name}
General Comments 0
You need to be logged in to leave comments. Login now