From 7a1cf9f269765fed79210cc52c790a68dbf22709 Mon Sep 17 00:00:00 2001 From: Heiko Bernloehr Date: Wed, 8 Mar 2017 15:04:13 +0100 Subject: [PATCH] Fixed Action link in participant view list template. --- app/views/admin/participants/list.html.haml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/admin/participants/list.html.haml b/app/views/admin/participants/list.html.haml index 0bf37db..01d4c5b 100644 --- a/app/views/admin/participants/list.html.haml +++ b/app/views/admin/participants/list.html.haml @@ -1,23 +1,23 @@ -# Copyright (C) 2007, 2013 Heiko Bernloehr (FreeIT.de). - + This file is part of ECS. - + ECS is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + ECS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with ECS. If not, see . - -%h1.box1 Listing Participants (#{@list_participants_count.to_s}) + +%h1.box1 Listing Participants (#{@list_participants_count.to_s}) .text-link= link_to 'New participant', new_admin_participant_path - if @list_anonymous @@ -34,10 +34,10 @@ %th.box2 Description (optional): %th.box2 Self-
routing: %th.box2 Events: - %th.box2(align="center")= "Links, Actions(#{link_to_actions_toggle_on_off(@list_anonymous, @action_buttons)})" + %th.box2(align="center")= "Links, Actions (#{link_to_actions_toggle_on_off(@list_anonymous, @action_buttons)})".html_safe %tr - - @participants.group_by(&:organization_id).sort{|x,y| Organization.find(x[0]).abrev.downcase <=> Organization.find(y[0]).abrev.downcase}.each do |orgid,participants| + - @participants.group_by(&:organization_id).sort{|x,y| Organization.find(x[0]).abrev.downcase <=> Organization.find(y[0]).abrev.downcase}.each do |orgid,participants| - org_printed= false - participants.sort{|x,y| x.name.downcase <=> y.name.downcase}.each do |participant| %tr{:class => [cycle('list-line-odd', 'list-line-even')]} -- 2.11.4.GIT