styling changes
This commit is contained in:
@@ -97,4 +97,16 @@ module ApplicationHelper
|
||||
render(template, handlers: [:mustache])
|
||||
end
|
||||
|
||||
def top_bar(options = {}, &block)
|
||||
title = options[:title]
|
||||
title = title.present? ? content_tag(:h3, t("user.#{title}"), class: 'title', data: {t: title}) : ''
|
||||
content_tag :div, class: 'top-button-bar' do
|
||||
content_tag :div, class: 'button-bar-inner' do
|
||||
content_tag :div, class: 'button-bar-content' do
|
||||
(title + capture(&block)).html_safe
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user