5190: updated tooltip
authorRadhika Chippada <radhika@curoverse.com>
Mon, 9 Mar 2015 19:02:14 +0000 (15:02 -0400)
committerRadhika Chippada <radhika@curoverse.com>
Mon, 9 Mar 2015 19:02:14 +0000 (15:02 -0400)
apps/workbench/app/helpers/application_helper.rb

index a11592b68b90b51ad9eab3b024a4639201619f23..d02d058e3aef2601ba5398247e313d8de083feea 100644 (file)
@@ -201,7 +201,7 @@ module ApplicationHelper
       :class => "editable #{is_textile?( object, attr ) ? 'editable-textile' : ''}"
     }.merge(htmloptions).merge(ajax_options)
     edit_tiptitle = 'edit'
-    edit_tiptitle = 'please do not use hyphens in repository name' if (object.class.to_s == 'Repository' and attr == 'name')
+    edit_tiptitle = 'Warning: do not use hyphens in the repository name as they will be stripped' if (object.class.to_s == 'Repository' and attr == 'name')
     edit_button = raw('<a href="#" class="btn btn-xs btn-default btn-nodecorate" data-toggle="x-editable tooltip" data-toggle-selector="#' + span_id + '" data-placement="top" title="' + (htmloptions[:tiptitle] || edit_tiptitle) + '"><i class="fa fa-fw fa-pencil"></i></a>')
     if htmloptions[:btnplacement] == :left
       edit_button + ' ' + span_tag