From 3bd46df870a0e515a9c899645011bfced624efda Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Mon, 25 Mar 2013 11:44:06 -0700 Subject: [PATCH] tweak generic object display --- app/models/orvos_base.rb | 1 + app/views/application/_orvos_object_attr.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/orvos_base.rb b/app/models/orvos_base.rb index 8ede44cd0d..8e04ea7fe8 100644 --- a/app/models/orvos_base.rb +++ b/app/models/orvos_base.rb @@ -30,6 +30,7 @@ class OrvosBase < ActiveRecord::Base 'modified_at' => '003', 'modified_by_user' => '004', 'modified_by_client' => '005', + 'name' => '050', 'tail_kind' => '100', 'tail_uuid' => '100', 'head_kind' => '101', diff --git a/app/views/application/_orvos_object_attr.html.erb b/app/views/application/_orvos_object_attr.html.erb index 1351c0b742..e8d2a999f0 100644 --- a/app/views/application/_orvos_object_attr.html.erb +++ b/app/views/application/_orvos_object_attr.html.erb @@ -1,5 +1,5 @@ <% if attrvalue.is_a? Hash then attrvalue.each do |infokey, infocontent| %> - + <%= attr %>[<%= infokey %>] @@ -15,7 +15,7 @@ <% end %> <% 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] %> -- 2.30.2