styling changes

This commit is contained in:
2012-12-10 08:43:38 +01:00
parent b5ddd448b2
commit 7d0afde69f
22 changed files with 176 additions and 73 deletions
+12
View File
@@ -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