projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include first link of a given type even on reruns of the setup method.
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
virtual_machine.rb
diff --git
a/apps/workbench/app/models/virtual_machine.rb
b/apps/workbench/app/models/virtual_machine.rb
index 31ee9122f71ce48163ac6f3512d6b0bddcd5b6e3..5ff7798a959162eb27d27cf9c35fd41748bd35ac 100644
(file)
--- a/
apps/workbench/app/models/virtual_machine.rb
+++ b/
apps/workbench/app/models/virtual_machine.rb
@@
-4,7
+4,6
@@
class VirtualMachine < ArvadosBase
current_user.andand.is_admin
end
def attributes_for_display
current_user.andand.is_admin
end
def attributes_for_display
- logger.debug super.append ['current_user_logins', @current_user_logins]
super.append ['current_user_logins', @current_user_logins]
end
def attribute_editable?(attr)
super.append ['current_user_logins', @current_user_logins]
end
def attribute_editable?(attr)
@@
-16,4
+15,7
@@
class VirtualMachine < ArvadosBase
{current_user_logins: {column_heading: "logins", type: 'array'}},
super]
end
{current_user_logins: {column_heading: "logins", type: 'array'}},
super]
end
+ def friendly_link_name
+ (hostname && !hostname.empty?) ? hostname : uuid
+ end
end
end