diff options
author | rhenium <rhenium@rhe.jp> | 2014-07-14 05:43:47 +0900 |
---|---|---|
committer | rhenium <rhenium@rhe.jp> | 2014-07-14 05:43:47 +0900 |
commit | f55fcd3eb11022121468496ccbc76f022f27a13c (patch) | |
tree | 658625c1d7c17f69bb6a21fc47f1b343431947e3 /app/helpers/application_helper.rb | |
parent | aea3df8df6afaf1ba869306a41e2c8c5fc595981 (diff) | |
download | aclog-f55fcd3eb11022121468496ccbc76f022f27a13c.tar.gz |
web: refactor views (use helper to render loading animation)
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 197b6d7..5fe6350 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -25,6 +25,14 @@ module ApplicationHelper end end + def loading_tag + capture_haml do + haml_tag(".loading") do + haml_concat image_tag "loading.gif", width: 16, height: 16, alt: "Loading..." + end + end + end + # utf8, form def utf8_enforcer_tag; raw "" end end |