X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9429158c8ecf253a700c7eb4f87ad142a8e1522c..d3a9348beaefdd355a0a88ac9f43ad243ae2603d:/apps/workbench/app/helpers/application_helper.rb diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index 786716eb33..697c469b56 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -176,7 +176,7 @@ module ApplicationHelper raw(link_name) else controller_class = resource_class.to_s.tableize - if controller_class.eql?('groups') and object.andand.group_class.eql?('project') + if controller_class.eql?('groups') and (object.andand.group_class.eql?('project') or object.andand.group_class.eql?('filter')) controller_class = 'projects' end (link_to raw(link_name), { controller: controller_class, action: 'show', id: ((opts[:name_link].andand.uuid) || link_uuid) }, style_opts) + raw(tags) @@ -564,7 +564,7 @@ module ApplicationHelper "data-emptytext" => "none", "data-placement" => "bottom", "data-type" => "select", - "data-source" => (opt_empty_selection + primary_type[:symbols].map {|i| {:value => i, :text => i} }).to_json, + "data-source" => (opt_empty_selection + primary_type[:symbols].map {|i| {:value => cwl_shortname(i), :text => cwl_shortname(i)} }).to_json, "data-url" => url_for(action: "update", id: object.uuid, controller: object.class.to_s.pluralize.underscore, merge: true), "data-title" => "Set value for #{cwl_shortname(input_schema[:id])}", "data-name" => dn,