From 6bcbd5c9359e32e9bfa4a43837c515bf60b236a0 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Sun, 10 Feb 2013 12:14:10 -0500 Subject: [PATCH] emphasize local part of uuid --- app/views/application/_orvos_object_attr.html.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/views/application/_orvos_object_attr.html.erb b/app/views/application/_orvos_object_attr.html.erb index 3778e2e4eb..9ab7e9f018 100644 --- a/app/views/application/_orvos_object_attr.html.erb +++ b/app/views/application/_orvos_object_attr.html.erb @@ -17,6 +17,10 @@ <% elsif attrvalue.is_a? String or attrvalue.respond_to? :to_s %> <%= attr %> + <% if attr == 'uuid' and (uuid = attrvalue.split('-')).size == 3 %> + <%= uuid[0..-2].join('-') %>-<%= uuid[-1] %> + <% else %> <%= link_to_if_orvos_object attrvalue, {referring_attr: attr, referring_object: @object, with_prefixes: true, with_class_name: true} %> + <% end %> <% end %> -- 2.30.2