[ARVADOS] updated: ca111ab9aa86c7c25e547a44a46be71f3977c649

git at public.curoverse.com git at public.curoverse.com
Sun Mar 8 19:37:23 EDT 2015


Summary of changes:
 apps/workbench/app/helpers/application_helper.rb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  ca111ab9aa86c7c25e547a44a46be71f3977c649 (commit)
      from  fcad01c98cfc6bab6af9c6d461692c28bfba6de8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ca111ab9aa86c7c25e547a44a46be71f3977c649
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Sun Mar 8 19:36:01 2015 -0400

    5190: tell user to not use hyphens in tooltip for repository name editable attribute

diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb
index ef2830c..a11592b 100644
--- a/apps/workbench/app/helpers/application_helper.rb
+++ b/apps/workbench/app/helpers/application_helper.rb
@@ -200,7 +200,9 @@ module ApplicationHelper
       "id" => span_id,
       :class => "editable #{is_textile?( object, attr ) ? 'editable-textile' : ''}"
     }.merge(htmloptions).merge(ajax_options)
-    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') + '"><i class="fa fa-fw fa-pencil"></i></a>')
+    edit_tiptitle = 'edit'
+    edit_tiptitle = 'please do not use hyphens in repository name' 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
     else

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list