summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-02 07:34:36 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-02 07:34:36 +0000
commit8dd6874a6aedc8b85e8420e1979fe964f4fd04ce (patch)
tree4570bf255e04183f18e19368a86cb7b5424bbe72 /app/helpers
parent05289f600296b8c72ae74a5397a6c14d049d5979 (diff)
downloadredmine-8dd6874a6aedc8b85e8420e1979fe964f4fd04ce.tar.gz
redmine-8dd6874a6aedc8b85e8420e1979fe964f4fd04ce.zip
Moves some action links on the wiki page to a dropdown menu (#26575).
git-svn-id: http://svn.redmine.org/redmine/trunk@17678 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 864a9d094..e250c20ee 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -623,6 +623,17 @@ module ApplicationHelper
end
end
+ def actions_dropdown(&block)
+ content = capture(&block)
+ if content.present?
+ trigger = content_tag('span', l(:button_actions), :class => 'icon-only icon-actions', :title => l(:button_actions))
+ trigger = content_tag('span', trigger, :class => 'drdn-trigger')
+ content = content_tag('div', content, :class => 'drdn-items')
+ content = content_tag('div', content, :class => 'drdn-content')
+ content_tag('span', trigger + content, :class => 'drdn')
+ end
+ end
+
# Returns the theme, controller name, and action as css classes for the
# HTML body.
def body_css_classes