Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
91ddfe83
Commit
91ddfe83
authored
Nov 13, 2018
by
Tugce Nur Tas
Browse files
sort semester_process_volunteers alphabetically
parent
7cc9a101
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/semester_process_volunteers_controller.rb
View file @
91ddfe83
...
...
@@ -37,6 +37,7 @@ class SemesterProcessVolunteersController < ApplicationController
authorize
SemesterProcessVolunteer
@spvs
=
SemesterProcessVolunteer
.
index
(
Semester
.
parse
(
params
[
:semester
])).
page
(
params
[
:page
])
@spvs_sorted
=
@spvs
.
sort
{
|
spv1
,
spv2
|
spv1
.
volunteer
.
contact
.
full_name
<=>
spv2
.
volunteer
.
contact
.
full_name
}
end
def
show
;
end
...
...
app/views/semester_process_volunteers/index.html.slim
View file @
91ddfe83
...
...
@@ -17,7 +17,7 @@ h1= t_title(:index)
th
Letzte
Bestätigung
tbody
-
@spvs
.
each
do
|
spv
|
-
@spvs
_sorted
.
each
do
|
spv
|
tr
td
.index-action-cell.hidden-print
=
button_link
icon_span
(
:edit
),
review_semester_semester_process_volunteer_path
(
spv
),
title:
'Bearbeiten'
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment