Project

General

Profile

Feature #21427 » add_block_my_page_issues_assigned_to_my_groups.patch

Helder Manuel Torres Vieira, 2015-12-04 17:18

View differences:

app/controllers/my_controller.rb (copia de trabajo)
33 33
             'news' => :label_news_latest,
34 34
             'calendar' => :label_calendar,
35 35
             'documents' => :label_document_plural,
36
             'timelog' => :label_spent_time
36
             'timelog' => :label_spent_time,
37
             'issuesassignedtomygroups' => :label_assigned_to_my_groups_issues
37 38
           }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze
38 39

  
39 40
  DEFAULT_LAYOUT = {  'left' => ['issuesassignedtome'],
app/helpers/my_helper.rb (copia de trabajo)
34 34
  def issuesassignedtome_items
35 35
    Issue.visible.open.
36 36
      assigned_to(User.current).
37
      where.not(assigned_to: User.current.groups).
37 38
      limit(10).
38 39
      includes(:status, :project, :tracker, :priority).
39 40
      references(:status, :project, :tracker, :priority).
40 41
      order("#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC")
41 42
  end
42 43

  
44
  def issuesassignedtomygroups_items
45
    Issue.visible.open.
46
      assigned_to(User.current).
47
      where.not(assigned_to: User.current).
48
      limit(10).
49
      includes(:status, :project, :tracker, :priority).
50
      references(:status, :project, :tracker, :priority).
51
      order("#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC")
52
  end
53

  
43 54
  def issuesreportedbyme_items
44 55
    Issue.visible.
45 56
      where(:author_id => User.current.id).
app/views/my/blocks/_issuesassignedtomygroups.html.erb (copia de trabajo)
1
<% assigned_issues = issuesassignedtomygroups_items %>
2
<h3>
3
  <%= link_to l(:label_assigned_to_my_groups_issues),
4
        issues_path(:set_filter => 1, :assigned_to_id => 'me', :sort => 'priority:desc,updated_on:desc') %>
5
  (<%= assigned_issues.limit(nil).count %>)
6
</h3>
7

  
8
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues.to_a } %>
9

  
10
<% content_for :header_tags do %>
11
<%= auto_discovery_link_tag(:atom,
12
                            {:controller => 'issues', :action => 'index', :set_filter => 1,
13
                             :assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key},
14
                            {:title => l(:label_assigned_to_my_groups_issues)}) %>
15
<% end %>
config/locales/ar.yml (copia de trabajo)
1180 1180
  setting_attachment_extensions_denied: Disallowed extensions
1181 1181
  label_any_open_issues: any open issues
1182 1182
  label_no_open_issues: no open issues
1183
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/az.yml (copia de trabajo)
1275 1275
  setting_attachment_extensions_denied: Disallowed extensions
1276 1276
  label_any_open_issues: any open issues
1277 1277
  label_no_open_issues: no open issues
1278
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/bg.yml (copia de trabajo)
1171 1171
  description_date_from: Въведете начална дата
1172 1172
  description_date_to: Въведете крайна дата
1173 1173
  text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
1174
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/bs.yml (copia de trabajo)
1193 1193
  setting_attachment_extensions_denied: Disallowed extensions
1194 1194
  label_any_open_issues: any open issues
1195 1195
  label_no_open_issues: no open issues
1196
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/ca.yml (copia de trabajo)
1182 1182
  setting_attachment_extensions_denied: Disallowed extensions
1183 1183
  label_any_open_issues: any open issues
1184 1184
  label_no_open_issues: no open issues
1185
  label_assigned_to_my_groups_issues: Assumptes assignats als meus grups
config/locales/cs.yml (copia de trabajo)
1181 1181
  setting_attachment_extensions_denied: Disallowed extensions
1182 1182
  label_any_open_issues: any open issues
1183 1183
  label_no_open_issues: no open issues
1184
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/da.yml (copia de trabajo)
1197 1197
  setting_attachment_extensions_denied: Disallowed extensions
1198 1198
  label_any_open_issues: any open issues
1199 1199
  label_no_open_issues: no open issues
1200
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/de.yml (copia de trabajo)
1189 1189
  setting_attachment_extensions_denied: Disallowed extensions
1190 1190
  label_any_open_issues: any open issues
1191 1191
  label_no_open_issues: no open issues
1192
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/el.yml (copia de trabajo)
1180 1180
  setting_attachment_extensions_denied: Disallowed extensions
1181 1181
  label_any_open_issues: any open issues
1182 1182
  label_no_open_issues: no open issues
1183
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/en-GB.yml (copia de trabajo)
1182 1182
  error_attachment_extension_not_allowed: Attachment extension %{extension} is not allowed
1183 1183
  setting_attachment_extensions_allowed: Allowed extensions
1184 1184
  setting_attachment_extensions_denied: Disallowed extensions
1185
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/en.yml (copia de trabajo)
1167 1167
  description_date_from: Enter start date
1168 1168
  description_date_to: Enter end date
1169 1169
  text_repository_identifier_info: 'Only lower case letters (a-z), numbers, dashes and underscores are allowed.<br />Once saved, the identifier cannot be changed.'
1170
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/es-PA.yml (copia de trabajo)
1214 1214
  setting_attachment_extensions_denied: Disallowed extensions
1215 1215
  label_any_open_issues: any open issues
1216 1216
  label_no_open_issues: no open issues
1217
  label_assigned_to_my_groups_issues: Peticiones que están asignadas a mis grupos
config/locales/es.yml (copia de trabajo)
1212 1212
  setting_attachment_extensions_denied: Disallowed extensions
1213 1213
  label_any_open_issues: any open issues
1214 1214
  label_no_open_issues: no open issues
1215
  label_assigned_to_my_groups_issues: Peticiones que están asignadas a mis grupos
config/locales/et.yml (copia de trabajo)
1193 1193
  setting_attachment_extensions_denied: Disallowed extensions
1194 1194
  label_any_open_issues: any open issues
1195 1195
  label_no_open_issues: no open issues
1196
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/eu.yml (copia de trabajo)
1181 1181
  setting_attachment_extensions_denied: Disallowed extensions
1182 1182
  label_any_open_issues: any open issues
1183 1183
  label_no_open_issues: no open issues
1184
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/fa.yml (copia de trabajo)
1181 1181
  setting_attachment_extensions_denied: Disallowed extensions
1182 1182
  label_any_open_issues: any open issues
1183 1183
  label_no_open_issues: no open issues
1184
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/fi.yml (copia de trabajo)
1201 1201
  setting_attachment_extensions_denied: Disallowed extensions
1202 1202
  label_any_open_issues: any open issues
1203 1203
  label_no_open_issues: no open issues
1204
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/fr.yml (copia de trabajo)
1187 1187
  text_repository_identifier_info: 'Seuls les lettres minuscules (a-z), chiffres, tirets et tirets bas sont autorisés.<br />Un fois sauvegardé, l''identifiant ne pourra plus être modifié.'
1188 1188
  label_parent_task_attributes_derived: Calculated from subtasks
1189 1189
  label_parent_task_attributes_independent: Independent of subtasks
1190
  label_assigned_to_my_groups_issues: Demandes assignées a mes groupes
config/locales/gl.yml (copia de trabajo)
1188 1188
  setting_attachment_extensions_denied: Disallowed extensions
1189 1189
  label_any_open_issues: any open issues
1190 1190
  label_no_open_issues: no open issues
1191
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/he.yml (copia de trabajo)
1185 1185
  setting_attachment_extensions_denied: Disallowed extensions
1186 1186
  label_any_open_issues: any open issues
1187 1187
  label_no_open_issues: no open issues
1188
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/hr.yml (copia de trabajo)
1179 1179
  setting_attachment_extensions_denied: Disallowed extensions
1180 1180
  label_any_open_issues: any open issues
1181 1181
  label_no_open_issues: no open issues
1182
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/hu.yml (copia de trabajo)
1199 1199
  setting_attachment_extensions_denied: Disallowed extensions
1200 1200
  label_any_open_issues: any open issues
1201 1201
  label_no_open_issues: no open issues
1202
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/id.yml (copia de trabajo)
1184 1184
  setting_attachment_extensions_denied: Disallowed extensions
1185 1185
  label_any_open_issues: any open issues
1186 1186
  label_no_open_issues: no open issues
1187
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/it.yml (copia de trabajo)
1175 1175
  setting_attachment_extensions_denied: Disallowed extensions
1176 1176
  label_any_open_issues: any open issues
1177 1177
  label_no_open_issues: no open issues
1178
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/ja.yml (copia de trabajo)
1193 1193
  setting_attachment_extensions_denied: 禁止する拡張子
1194 1194
  label_any_open_issues: 未完了のチケット
1195 1195
  label_no_open_issues: なし または完了したチケット
1196
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/ko.yml (copia de trabajo)
1224 1224
  setting_attachment_extensions_denied: Disallowed extensions
1225 1225
  label_any_open_issues: any open issues
1226 1226
  label_no_open_issues: no open issues
1227
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/lt.yml (copia de trabajo)
1239 1239
  setting_attachment_extensions_denied: Disallowed extensions
1240 1240
  label_any_open_issues: any open issues
1241 1241
  label_no_open_issues: no open issues
1242
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/lv.yml (copia de trabajo)
1174 1174
  setting_attachment_extensions_denied: Disallowed extensions
1175 1175
  label_any_open_issues: any open issues
1176 1176
  label_no_open_issues: no open issues
1177
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/mk.yml (copia de trabajo)
1180 1180
  setting_attachment_extensions_denied: Disallowed extensions
1181 1181
  label_any_open_issues: any open issues
1182 1182
  label_no_open_issues: no open issues
1183
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/mn.yml (copia de trabajo)
1181 1181
  setting_attachment_extensions_denied: Disallowed extensions
1182 1182
  label_any_open_issues: any open issues
1183 1183
  label_no_open_issues: no open issues
1184
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/nl.yml (copia de trabajo)
1159 1159
  setting_attachment_extensions_denied: Disallowed extensions
1160 1160
  label_any_open_issues: any open issues
1161 1161
  label_no_open_issues: no open issues
1162
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/no.yml (copia de trabajo)
1170 1170
  setting_attachment_extensions_denied: Disallowed extensions
1171 1171
  label_any_open_issues: any open issues
1172 1172
  label_no_open_issues: no open issues
1173
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/pl.yml (copia de trabajo)
1195 1195
  setting_attachment_extensions_denied: Disallowed extensions
1196 1196
  label_any_open_issues: any open issues
1197 1197
  label_no_open_issues: no open issues
1198
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/pt-BR.yml (copia de trabajo)
1199 1199
  setting_attachment_extensions_denied: Disallowed extensions
1200 1200
  label_any_open_issues: any open issues
1201 1201
  label_no_open_issues: no open issues
1202
  label_assigned_to_my_groups_issues: Tarefas atribuídas aus meus grupos
config/locales/pt.yml (copia de trabajo)
1182 1182
  setting_attachment_extensions_denied: Disallowed extensions
1183 1183
  label_any_open_issues: any open issues
1184 1184
  label_no_open_issues: no open issues
1185
  label_assigned_to_my_groups_issues: Tarefas atribuídas aus meus grupos
config/locales/ro.yml (copia de trabajo)
1175 1175
  setting_attachment_extensions_denied: Disallowed extensions
1176 1176
  label_any_open_issues: any open issues
1177 1177
  label_no_open_issues: no open issues
1178
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/ru.yml (copia de trabajo)
1283 1283
  setting_attachment_extensions_denied: Disallowed extensions
1284 1284
  label_any_open_issues: any open issues
1285 1285
  label_no_open_issues: no open issues
1286
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/sk.yml (copia de trabajo)
1170 1170
  setting_attachment_extensions_denied: Disallowed extensions
1171 1171
  label_any_open_issues: any open issues
1172 1172
  label_no_open_issues: no open issues
1173
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/sl.yml (copia de trabajo)
1180 1180
  setting_attachment_extensions_denied: Disallowed extensions
1181 1181
  label_any_open_issues: any open issues
1182 1182
  label_no_open_issues: no open issues
1183
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/sq.yml (copia de trabajo)
1176 1176
  setting_attachment_extensions_denied: Disallowed extensions
1177 1177
  label_any_open_issues: any open issues
1178 1178
  label_no_open_issues: no open issues
1179
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/sr-YU.yml (copia de trabajo)
1182 1182
  setting_attachment_extensions_denied: Disallowed extensions
1183 1183
  label_any_open_issues: any open issues
1184 1184
  label_no_open_issues: no open issues
1185
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/sr.yml (copia de trabajo)
1181 1181
  setting_attachment_extensions_denied: Disallowed extensions
1182 1182
  label_any_open_issues: any open issues
1183 1183
  label_no_open_issues: no open issues
1184
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/sv.yml (copia de trabajo)
1213 1213
  setting_attachment_extensions_denied: Disallowed extensions
1214 1214
  label_any_open_issues: any open issues
1215 1215
  label_no_open_issues: no open issues
1216
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/th.yml (copia de trabajo)
1177 1177
  setting_attachment_extensions_denied: Disallowed extensions
1178 1178
  label_any_open_issues: any open issues
1179 1179
  label_no_open_issues: no open issues
1180
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/tr.yml (copia de trabajo)
1189 1189
  setting_attachment_extensions_denied: Disallowed extensions
1190 1190
  label_any_open_issues: any open issues
1191 1191
  label_no_open_issues: no open issues
1192
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/uk.yml (copia de trabajo)
1175 1175
  setting_attachment_extensions_denied: Disallowed extensions
1176 1176
  label_any_open_issues: any open issues
1177 1177
  label_no_open_issues: no open issues
1178
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/vi.yml (copia de trabajo)
1233 1233
  setting_attachment_extensions_denied: Disallowed extensions
1234 1234
  label_any_open_issues: any open issues
1235 1235
  label_no_open_issues: no open issues
1236
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/zh-TW.yml (copia de trabajo)
1254 1254
  description_date_from: 輸入起始日期
1255 1255
  description_date_to: 輸入結束日期
1256 1256
  text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
1257
  label_assigned_to_my_groups_issues: Issues assigned to my groups
config/locales/zh.yml (copia de trabajo)
1181 1181
  setting_attachment_extensions_denied: Disallowed extensions
1182 1182
  label_any_open_issues: any open issues
1183 1183
  label_no_open_issues: no open issues
1184
  label_assigned_to_my_groups_issues: Issues assigned to my groups
(1-1/2)