Skip to content

Commit aedc8c4

Browse files
authored
Merge pull request #8763 from kbrock/chargeback_dates
Give chargeback users sorting by date and project
2 parents 2445219 + b1c5ddb commit aedc8c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/report/_form_filter_chargeback.html.haml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@
156156
%label.control-label.col-md-2
157157
= _('Group by')
158158
.col-md-8
159-
- opts = [[(_("Date and %{chargeback_model}") % {:chargeback_model => @edit[:new][:cb_model]} ), "date"], ["#{_('Date Only')}", "date-only"]]
159+
- opts = [[(_("%{chargeback_model} and Date") % {:chargeback_model => @edit[:new][:cb_model]} ), "date"]]
160+
- opts += [[(_("Date and %{chargeback_model}") % {:chargeback_model => @edit[:new][:cb_model]} ), "date-first"]]
161+
- opts += [["#{_('Date Only')}", "date-only"]]
160162
- opts += [["#{_('Tag')}", "tag"]] unless @edit[:new][:model] == "ChargebackContainerImage" || @edit[:new][:model] == "MeteringContainerImage"
161163
- opts += [["#{_('Project')}", "project"], [_('Label'), 'label'], ["#{_('Tag')}", "tag"]] if @edit[:new][:model] == "ChargebackContainerImage" || @edit[:new][:model] == "MeteringContainerImage"
162164
- opts += [["#{_('Tenant')}", "tenant"]] if %w(ChargebackVm MeteringVm).include?(@edit[:new][:model])

0 commit comments

Comments
 (0)